Closed MobikTech closed 4 weeks ago
Thanks for reaching out and for the detailed issue! We'll have to process this but it should be fairly straight forward to reproduce!
@MobikTech , we have tested the scene-changing part within our demo level, and everything works fine even after several scene changes.
Can you, please, send us a minimal example to reproduce the issue?
Edit: we do not use UniTasks.
@munkiki7 I prepared sample project with error reproduce, you can download it by the link.
Thanks for the repro @MobikTech, much appreciated. We'll be taking a look!
Environment
How do you use Sentry? Sentry SaaS (sentry.io)
Which version of the SDK? 2.0.6
How did you install the package? (Git-URL, Assetstore) Git-URL
Which version of Unity? 2021.3.32f1
Is this happening in Unity (editor) or on a player like Android, iOS, Windows? It is happening on WebGL build(dont know if on another platforms also, did not tested). In Editor bug is NOT reproduced
Steps to Reproduce
Expected Result
All calls of SentrySdk.Capture[] methods and unhandled exceptions will be gathered and displayed on sentry.io.
Actual Result
While first scene is loaded and active all events sending to cloud correctly. But after a moment of second scene loaded all events stops to send. After this, each sending try throws NullReference exception to browser console from internal SentrySDK code(see the screenshots).
Exceptions thrown from internal DoSendEvent method and catched by try/catch block.
Any logs or screenshots
SentryConfiguration on which build was tested:
Detailed log of Error message: