Skip to content

Game Crashed on Nintendo Switch with Sentry SDK #290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dimmduh opened this issue Aug 24, 2021 · 9 comments · Fixed by #756 or #840
Closed

Game Crashed on Nintendo Switch with Sentry SDK #290

dimmduh opened this issue Aug 24, 2021 · 9 comments · Fixed by #756 or #840
Labels
Bug Something isn't working Platform: Switch

Comments

@dimmduh
Copy link

dimmduh commented Aug 24, 2021

Environment

How do you use Sentry?
on-premise

Which SDK and version?
0.4.3

Steps to Reproduce

  1. Run game with sdk

Expected Result

Not crashing.

Actual Result

Game crashed.
I guess it's because of trying to write to disk incorrect way.

@bitsandfoxes bitsandfoxes added the Bug Something isn't working label Aug 24, 2021
@bitsandfoxes
Copy link
Contributor

bitsandfoxes commented Aug 24, 2021

Hey @dimmduh, thanks for raising this! You're most likely right. The Sentry SDK relies on Application.persistentdatapath for some of it's functionality which seems to be prohibited on the Switch. A workaround would be to disable auto session tracking and offline caching. (and setting the CacheDirectoryPath to null).
We'll look into a platform-specific solution for this.

@bruno-garcia
Copy link
Member

An update here, we'll get a dev device soon to test this out

@dimmduh
Copy link
Author

dimmduh commented Nov 10, 2021

Notice, there is restriction, you can not collect and send any analytics on device. SDK will work only in development mode.

@bruno-garcia
Copy link
Member

Notice, there is restriction, you can not collect and send any analytics on device. SDK will work only in development mode.

Could you please provide some context about this? Where can we find more information?

@dimmduh
Copy link
Author

dimmduh commented Nov 11, 2021

Notice, there is restriction, you can not collect and send any analytics on device. SDK will work only in development mode.

Could you please provide some context about this? Where can we find more information?

sorry, I can not because of NDA. You need Nintendo developer account to access documentation

@bruno-garcia
Copy link
Member

We have a Nintendo Dev account. We'll take a look at the docs and investigate this further.

@bruno-garcia
Copy link
Member

An update, we were able to find out what the issue is. And when we add WebGL support, it should fix this too.

@vaind
Copy link
Collaborator

vaind commented Apr 19, 2022

We just need to make sure we add the UnityWebRequestTransport for all platforms other than mobile and desktop - that should fix the issues on consoles as well.

@bruno-garcia
Copy link
Member

It still crashes due to file access. See: getsentry/sentry-dotnet#1726

We need to set AutoSessionTracking to false for unknown platforms

@bruno-garcia bruno-garcia reopened this Jun 22, 2022
Repository owner moved this from Done to Needs Discussion in [DEPRECATED] Mobile SDKs Jun 22, 2022
@bruno-garcia bruno-garcia moved this from Needs Discussion to Backlog in [DEPRECATED] Mobile SDKs Jun 22, 2022
Repository owner moved this from Backlog to Done in [DEPRECATED] Mobile SDKs Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Platform: Switch
Projects
Archived in project
4 participants