Open mora-hugo opened 3 days ago
Thanks for raising this. I see you have all the right settings so this shouldn't be happening.
Looks like it comes from here: https://github.com/getsentry/sentry-unity/blob/e1ada0b6be4de65af89c2e74427fb4ee19521119/src/Sentry.Unity/Integrations/IApplication.cs#L50C41-L50C71
Which is Unity's API to get a path to persist files.
Some background: we added DisableFileWrite
to make sure the SDK didn't do any file I/O that relates to writing, in particular because of Switch, using .NET's file APIs. But our understanding is that Unity's Application.persistentDataPath
is only giving a path, and not using .NET's file I/O APIs under the hood and was working fine.
Related changes were:
We have a Switch devkit at the office we'll be running some tests. I can't see a way around this without us making changes to the SDK. Since it doesn't seem possible to allow you to replace IApplication
in any way.
Thank you a lot for your response and the information provided.
We'll keep an eye on your coming tests.
Thank you for being so patient. We'll get to it as soon as we can. Unfortunately some folks are off so we won't be able to tackle this in the next few days but a fix is coming!
Environment
How do you use Sentry? Sentry SaaS (sentry.io)
Which version of the SDK? 2.2.2
How did you install the package? (Git-URL, Assetstore) Git URL
Which version of Unity? 2022.3.22f1
Is this happening in Unity (editor) or on a player like Android, iOS, Windows? Nintendo Switch
Steps to Reproduce
I tried integrating the Sentry Unity package into my Unity project. It works well in most cases, but it doesn't work on Nintendo Switch. The application crashes every time it launches on the Switch. A similar issue was supposed to be fixed (#1804), but I'm still experiencing the problem.
We also created a new empty project with the latest version of Sentry, and we're experiencing the same issue.
Expected Result
The game should launch correctly without crashing.
Actual Result
The game crashes every time it launches on Nintendo Switch.
Any logs or screenshots
I have attempted to put this options in my runtime or in my build configuration :
I tried to disable Sentry via the editor window (unchecked the "Enable Sentry" checkbox) but the problem persist.
There is the retrieved crash dump from the Switch.
Despite these efforts, the issue persists. For now, I have to completely remove Sentry from my project to prevent the crash. I'm not sure of the exact cause of the problem and would appreciate any assistance.
Also open to test fixes with proper instructions.