Skip to content

Releases: bugsnag/bugsnag-unity

v5.4.0

27 Sep 11:54

Choose a tag to compare

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 thermalState property in the device tab, 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
      willFinishLaunchingWithOptions in iOS apps that do not adopt the UIScene life-cycle.
      bugsnag-cocoa#1180

    • Fatal app hangs will no longer be reported if the willTerminateNotification is received.
      bugsnag-cocoa#1176

  • Update bugsnag-android to v5.13.0

  • 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.SendLaunchCrashesSynchronously config option to set the native Android option and the native Cocoa option #379

  • Add Configuration.LaunchDurationMillis config option to set the native Android option and the native Cocoa option #379

Deprecated

  • Bugsnag.StopSession has been deprecated in favour of Bugsnag.PauseSession and 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

01 Sep 09:48
9305323

Choose a tag to compare

5.3.0 (2021-09-01)

Enhancements

  • Add Configuration.VersionCode config option to set the native Android option #373

  • Add Configuration.PersistenceDirectory to set the native Android option #368

  • Add Configuration.SendThreads config option to set the native Android option and the native Cocoa option #375

  • Add Configuration.PersistUser config option to set the native Android option and the native Cocoa option #372

  • Add Configuration.MaxPersistedEvents config option to set the native Android option and the native Cocoa option #371

  • Add Configuration.RedactedKeys configuration option to enable redacting specific keys in metadata #367

  • Add Configuration.Endpoints to enable setting custom endpoints for events and sessions #366

  • Add Configuration.ProjectPackages config option to set the native Android option #364

  • Add Configuration.BundleVersion config option to set the native Cocoa option #359

  • Add Configuration.AppType configuration option to enable setting a custom value for the app.type field in an event #363

  • Update bugsnag-cocoa to v6.11.0

    • Add breadcrumbs for UIScene notifications.
      #1165

    • Fix another rare crash in bsg_ksmachgetThreadQueueName.
      #1157

    • Fix ThreadSanitizer data race in BugsnagBreadcrumbs.
      #1160

  • Add DiscardClasses configuration option to disable sending events that contain user defined error classes. #361

  • Update bugsnag-android to v5.11.0:

    • Add Bugsnag listeners for StrictMode violation detection
      #1331

    • Address pre-existing StrictMode violations
      #1328

Deprecated

  • Bugsnag.SetContext(string context) has been deprecated in favour of the new Bugsnag.Context property and will be removed in the next major release.

  • Configuration.Endpoint has been deprecated in favour of the new Configuration.Endpoints class and will be removed in the next major release.

  • Configuration.SessionEndpoint has been deprecated in favour of the new Configuration.Endpoints class and will be removed in the next major release.

  • Configuration.NotifyReleaseStages has been deprecated in favour of Configuration.EnabledReleaseStages and will be removed in the next major release.

v5.2.0

05 Aug 09:20
fc8e074

Choose a tag to compare

5.2.0 (2021-08-05)

Enhancements

  • Add AppHangThresholdMillis to set the native Cocoa option #347

  • Add EnabledErrorTypes configuration 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) user information from metaData.
      #1151

    • Fix a potential stack overflow in +[BugsnagThread allThreadsWithCurrentThreadBacktrace:].
      #1148

    • Fix NSNull handling 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() to malloc() 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.binaryArch in 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.NotifyLevel has been deprecated in favour of Configuration.NotifyLogLevel and will be removed in the next major release.

  • Configuration.AutoNotify has been deprecated in favour of Configuration.AutoDetectErrors and will be removed in the next major release.

  • Configuration.AutoCaptureSessions has been deprecated in favour of Configuration.AutoTrackSessions and will be removed in the next major release.

v5.1.1

24 Jun 17:36

Choose a tag to compare

5.1.1 (2021-06-24)

  • Fixes a packaging issue in the 5.1.0 where the library version was incorrectly
    reported
    #309

v5.1.0

24 Jun 09:28
4e86daa

Choose a tag to compare

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.companyName
    • unity.productName -> app.name
    • unity.version -> app.version
    • unity.platform -> app.type
    • unity.osLanguage -> device.osLanguage
    • unity.unityException -> removed as a duplicate of the error class
    • unity.unityLogType -> removed as is contained in the error class for generic logs
  • Add EnabledBreadcrumbTypes configuration option to enable/disable automatically recorded breadcrumbs #301

  • Add MaxBreadcrumbs configuration 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

    • Improve performance of notify().
      #1102
      #1104
      #1105

    • 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

08 Jun 09:51
cd3a0b2

Choose a tag to compare

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.

Bug fixes

  • Stop scene changes overrriding context when manually set
    #255

  • Don't Destroy TimingTrackerObject, so it persists across scenes
    #239

v4.8.8

21 Apr 15:29

Choose a tag to compare

Bug fixes

  • Add bugsnag prefix to namespace of vendored SimpleJson
    #225

v4.8.7

30 Mar 10:33
1d84b49

Choose a tag to compare

Bug fixes

  • Fix leaks from manual JNI string conversions
    #222

v4.8.6

16 Mar 10:36
a122b2c

Choose a tag to compare

Bug fixes

  • Improve ANR handler compatibility with Google Play reporting mechanism
    #1179

v4.8.5

03 Mar 21:23
946199e

Choose a tag to compare

Bug fixes

  • Avoid JNI crash in leaveBreadcrumb by pushing local frame
    #214

  • Respect autoNotify flag on Android
    #207