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

fix: Ensure context from previous run is used for native main crashes #683

Merged
merged 7 commits into from Aug 2, 2023

Conversation

timfish
Copy link
Collaborator

@timfish timfish commented Jun 6, 2023

Closes #679 and #711

Native crashes in the main process are sent on the next app run. If the app updates before the next app run, the crash is reported with the wrong release.

This PR adds to the data persisted for use when reporting native main process cashes on next app start. We now also include context/release/environment in the persisted data so that we can correctly report the release and context.

Rather than attempt to cater for multiple different persisted object types, this PR changes the persisted file to scope_v3.json. This simplifies the code but means that any persisted scope will not be included if the app crashes immediately before the next app update that includes this code. However, all future native crashes will be reported with the correct release.

@timfish timfish changed the title fix: Ensure correct release used for native main crashes fix: Ensure context from previous run is used for native main crashes Aug 2, 2023
@timfish timfish requested a review from AbhiPrasad August 2, 2023 19:25
@timfish timfish merged commit 85f82bc into getsentry:master Aug 2, 2023
40 checks passed
@timfish timfish deleted the fix/release-after-update branch August 2, 2023 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash events are being sent with the wrong release version if being sent after the user upgrades the app
2 participants