Skip to content
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

Native crashes should include similar context available in C# events #635

Closed
bruno-garcia opened this issue Mar 11, 2022 · 1 comment
Closed

Comments

@bruno-garcia
Copy link
Member

Native crashes currently only include the data set via scope sync and what came from the minidump.
A lot of the context data in C# events are added via the UnityEventProcessor, which doesn't run for native.

On Android, (sentry-native support isn't done with crashpad) the native layer writes an envelope to disk which the Java layer picks up and adds context to. There are trade offs there, some disadvantages are the serialization round trip, protocol mismatch between layers (the .NET SDK doesn't keep values it doesn't have typed in C#) and the need of the process being relaunched, so the managed layer can do its job.

One alternative is to provide the 'static' (device info, unity version, etc) data via init to sentry-native. The question remains about data that changes, that's not available on Android events either.

@bruno-garcia
Copy link
Member Author

Dupe of #650

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant