Releases: bugsnag/bugsnag-unity
v5.4.0
5.4.0 (2021-09-27)
Enhancements
-
Update bugsnag-cocoa to v6.12.2
-
Stop dropping breadcrumbs when provided invalid metadata (that is not JSON convertible.)
bugsnag-cocoa#1187 -
Fix Swift fatal error parsing for messages with no filename.
bugsnag-cocoa#1186 -
Events now include a
thermalStateproperty in thedevicetab, and unexpected app terminations that occur
when the thermal state is critical will now be reported as a "Thermal Kill" rather than Out Of Memory error.
bugsnag-cocoa#1171 -
Fix a regression where the session was not captured at launch if Bugsnag was started before
willFinishLaunchingWithOptionsin iOS apps that do not adopt the UIScene life-cycle.
bugsnag-cocoa#1180 -
Fatal app hangs will no longer be reported if the
willTerminateNotificationis received.
bugsnag-cocoa#1176
-
-
Update bugsnag-android to v5.13.0
- The
app.lowMemoryvalue always report the most recentonTrimMemory/onLowMemorystatus bugsnag-android#1342 - Added the
app.memoryTrimLevelmetadata to report a description of the latestonTrimMemorystatus bugsnag-android#1344 - Added
STATEBreadcrumbs foronTrimMemoryevents bugsnag-android#1345 - Capture breadcrumbs for OkHttp network requests
bugsnag-android#1358
bugsnag-android#1361
bugsnag-android#1363
bugsnag-android#1379 - Update project to build using Gradle/AGP 7
bugsnag-android#1354 - Increased default breadcrumb collection limit to 50
bugsnag-android#1366 - Support integer values in buildUuid
bugsnag-android#1375 - Use SystemClock.elapsedRealtime to track
app.durationInForeground
bugsnag-android#1375
- The
-
Add new automatically collected Device data to Windows, WebGL and Unity Editor events:
batteryLevel, charging, id, model, screenDensity, screenResolution, totalMemory#390 -
Add new automatically collected App data to Windows, WebGL and Unity Editor events:
duration, id, isLaunching, lowMemory#390 -
Add new Bugsnag.Notify overloads:
Notify(exception, stacktrace)Notify(exception, stacktrace, callback)Notify(name, message, stacktrace)Notify(name, message, stacktrace, callback)#380 -
Add
Bugsnag.GetLastRunInfo()To get relevant crash information regarding the last run of the application #379 -
Add
Configuration.SendLaunchCrashesSynchronouslyconfig option to set the native Android option and the native Cocoa option #379 -
Add
Configuration.LaunchDurationMillisconfig option to set the native Android option and the native Cocoa option #379
Deprecated
Bugsnag.StopSessionhas been deprecated in favour ofBugsnag.PauseSessionand will be removed in the next major release.
Bug fixes
- Fixed an issue where app.type was not sent in native Cocoa crash reports
#395
v5.3.0
5.3.0 (2021-09-01)
Enhancements
-
Add
Configuration.VersionCodeconfig option to set the native Android option #373 -
Add
Configuration.PersistenceDirectoryto set the native Android option #368 -
Add
Configuration.SendThreadsconfig option to set the native Android option and the native Cocoa option #375 -
Add
Configuration.PersistUserconfig option to set the native Android option and the native Cocoa option #372 -
Add
Configuration.MaxPersistedEventsconfig option to set the native Android option and the native Cocoa option #371 -
Add
Configuration.RedactedKeysconfiguration option to enable redacting specific keys in metadata #367 -
Add
Configuration.Endpointsto enable setting custom endpoints for events and sessions #366 -
Add
Configuration.ProjectPackagesconfig option to set the native Android option #364 -
Add
Configuration.BundleVersionconfig option to set the native Cocoa option #359 -
Add
Configuration.AppTypeconfiguration option to enable setting a custom value for the app.type field in an event #363 -
Update bugsnag-cocoa to v6.11.0
-
Add
DiscardClassesconfiguration option to disable sending events that contain user defined error classes. #361 -
Update bugsnag-android to v5.11.0:
Deprecated
-
Bugsnag.SetContext(string context)has been deprecated in favour of the newBugsnag.Contextproperty and will be removed in the next major release. -
Configuration.Endpointhas been deprecated in favour of the newConfiguration.Endpointsclass and will be removed in the next major release. -
Configuration.SessionEndpointhas been deprecated in favour of the newConfiguration.Endpointsclass and will be removed in the next major release. -
Configuration.NotifyReleaseStageshas been deprecated in favour ofConfiguration.EnabledReleaseStagesand will be removed in the next major release.
v5.2.0
5.2.0 (2021-08-05)
Enhancements
-
Add
AppHangThresholdMillisto set the native Cocoa option #347 -
Add
EnabledErrorTypesconfiguration option to enable/disable different types of errors #341 -
[Android] Automatic App Not Responding (ANR) detection is now enabled by default
#339 -
Update bugsnag-cocoa to v6.10.2
-
Fix ThreadSanitizer data race warning in
BSGAppHangDetector.
#1153 -
Remove (duplicated)
userinformation frommetaData.
#1151 -
Fix a potential stack overflow in
+[BugsnagThread allThreadsWithCurrentThreadBacktrace:].
#1148 -
Fix
NSNullhandling in+[BugsnagError errorFromJson:]and+[BugsnagStackframe frameFromJson:].
#1143 -
Fix a rare crash in
bsg_ksmachgetThreadQueueName.
#1147 -
Fix an issue that could cause C++ exceptions with very long descriptions to not be reported.
#1137 -
Improve performance of adding metadata by using async file I/O.
#1133 -
Improve performance of leaving breadcrumbs by using async file I/O.
#1124 -
Prevent some potential false positive detection of app hangs.
#1122
-
-
Update bugsnag-android to v5.10.1:
-
Prefer
calloc()tomalloc()in NDK code
#1320 -
Ensure correct value always collected for activeScreen
#1322 -
Capture process name in Event payload
#1318 -
Avoid unnecessary BroadcastReceiver registration for monitoring device orientation
#1303 -
Register system callbacks on background thread
#1292 -
Fix rare NullPointerExceptions from ConnectivityManager
#1311 -
Respect manual setting of context
#1310 -
Handle interrupt when shutting down executors
#1315 -
Allow serializing enabledBreadcrumbTypes as null
#1316 -
Properly handle ANRs after multiple calls to autoNotify and autoDetectAnrs
#1265 -
Cache value of app.backgroundWorkRestricted
#1275 -
Optimize execution of callbacks
#1276 -
Optimize implementation of internal state change observers
#1274 -
Optimize metadata implementation by reducing type casts
#1277 -
Trim stacktraces to <200 frames before attempting to construct POJOs
#1281 -
Use direct field access when adding breadcrumbs and state updates
#1279 -
Avoid using regex to validate api key
#1282 -
Discard unwanted automatic data earlier where possible
#1280 -
Enable ANR handling on immediately if started from the main thread
#1283 -
Include
app.binaryArchin all events
#1287 -
Cache results from PackageManager
#1288 -
Use ring buffer to store breadcrumbs
#1286 -
Avoid expensive set construction in Config constructor
#1289 -
Replace calls to String.format() with concatenation
#1293 -
Optimize capture of thread traces
#1300
-
Bug fixes
-
Fixed an issue where Windows events would have incorrectly split stacktraces resulting in all lines being bundled into one
#350 -
Fixed an issue where WebGL web requests that initially fail were not respecting the 10 second delay before retrying
#321 -
Fixed an issue where Breadcrumbs were reported in the wrong order on Windows and in the Unity Editor
#322 -
Fixed an issue where a "Bugsnag loaded" breadcrumb was not added on Windows, Linux, WebGL, and editor builds
#327 -
Fixed an issue where the fallback was not reporting the correct app.type
#325
Deprecated
-
Configuration.NotifyLevelhas been deprecated in favour ofConfiguration.NotifyLogLeveland will be removed in the next major release. -
Configuration.AutoNotifyhas been deprecated in favour ofConfiguration.AutoDetectErrorsand will be removed in the next major release. -
Configuration.AutoCaptureSessionshas been deprecated in favour ofConfiguration.AutoTrackSessionsand will be removed in the next major release.
v5.1.1
v5.1.0
Enhancements
-
Add event metadata for CPU and graphics capabilities and migrated entries from the Unity tab to the device and app tabs, to better match other platforms #297:
unity.companyName->app.companyNameunity.productName->app.nameunity.version->app.versionunity.platform->app.typeunity.osLanguage->device.osLanguageunity.unityException-> removed as a duplicate of the error classunity.unityLogType-> removed as is contained in the error class for generic logs
-
Add
EnabledBreadcrumbTypesconfiguration option to enable/disable automatically recorded breadcrumbs #301 -
Add
MaxBreadcrumbsconfiguration option to control the number of breadcrumbs collected on all platforms
#275
#304 -
Update bugsnag-cocoa to v6.9.6:
-
Improve accuracy of app hang event information to better reflect state at time of detection.
#1118 -
Stop app hangs being reported if app is launched in the background.
#1112 -
Stop session being reported if app is launched in the background.
#1107 -
Fix KSCrash state storage for apps with no CFBundleName.
#1103 -
Fix a crash in
-[BugsnagApp deserializeFromJson:]if main Mach-O image could not be identified, and improve reliability of identification.
#1097
#1101
-
Bug fixes
-
Fix an issue where the Device.time of an event was missing the milliseconds
#298 -
Adjust post build script to support Unity 2021 builds
#289 -
Fix an issue where timestamps and other
:-containing log message content was interpreted as the error class
#292 -
Correct Android session start times
#291 -
Fix duplicate events being sent for Android C/C++ crashes
#302
v5.0.0
This version contains breaking changes, as bugsnag-unity has been updated to use the latest available versions of bugsnag-android (v4.22.2 -> v5.9.4) and bugsnag-cocoa (v5.23.5 -> v6.9.3).
Please see the upgrade guide for details of all the changes and instructions on how to upgrade.