You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not able to see the additional data(Custom Diagnostic Data) with a bugsnag report if an ANR is recorded or a crash is recorded. For normal exceptions of type "NullReference" or "ArgumentOutOfRange" exceptions i am able to see the custom diagnostic data.
Steps to reproduce
Integrate bugsnag v5.1.1 in unity project
Now add some custom diagnostic data on some actions to be seen with a bugsnag ANR/crash report
After doing some actions (basically recording some custom diagnostic data) just force a crash or ANR. (For this bugnsag sample unity project on github already has the script to throw ANR/Crash)
Now go to bugsnag dashboard and observer the ANR/Crash data.
There is no custom diagnostic data attached.
Now open the application again and do some actoins (to record custom diagnostic data)
After that just trigger an exception
Now go to bugsnag dashboard and observe that the custom data is recorded.
So it is getting recorded for an exception but not for a crash or ANR.
Environment
Bugsnag version: 5.1.1 (unity)
Unity version: 2019.4.15f1
Android version: 8.1.0, 9, 11
simulator/emulator or physical device: Galaxy A11, Lenovo Tab E10
Initializing bugsnag via a Unity GameObject or in code?: via Unity GameObject
Player Settings:
Scripting backend (Mono or IL2CPP): IL2CPP
API compatibility level for .NET: .Net Standard 2.0
Stack Trace level for all error types (None/ScriptOnly/Full): Script Only
The text was updated successfully, but these errors were encountered:
Hi @Aksh627 - Thanks for raising this. Unfortunately at this time the Bugsnag Unity callback is only applied to handled crashes and Unity managed crashes i.e. crashes which are sent to Bugsnag during the current application session. For any crashes which terminate the application, and are sent on next launch of the application, the Bugsnag Unity callback is not called.
We are working on a major uplift of our Unity notifier where we are looking to improve this functionality. Do let us know if you have further questions in the meantime.
hi @phillipsam - Thanks for your response, I am actually applying metadata gloabally only with Bugsnag.Metadata.Add. When any ANR or crash occurs i am not able to see the data attached with Bugsnag.Metadata. I am attaching below the code snippet which i use to apply metadata. This method is called by performing some different set of user actions in the application.
Hi @Aksh627 - thanks for the additional information. If you call Bugsnag.Metadata.Add(mainKey, dataCollection); instead of Bugsnag.Metadata[mainKey] = dataCollection;, this will work for you as expected and add the metadata to your ANRs. Using the Add method will add the metadata to the native client.
Describe the bug
I am not able to see the additional data(Custom Diagnostic Data) with a bugsnag report if an ANR is recorded or a crash is recorded. For normal exceptions of type "NullReference" or "ArgumentOutOfRange" exceptions i am able to see the custom diagnostic data.
Steps to reproduce
Environment
The text was updated successfully, but these errors were encountered: