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 missing context for crash, OOM, and app hang errors #1079

Merged
merged 1 commit into from
Apr 22, 2021

Conversation

nickdowell
Copy link
Contributor

@nickdowell nickdowell commented Apr 22, 2021

Goal

Include the context value in crash, OOM, and app hang errors.

Changeset

context is now stored in the state metadata (which is added to KSCrashReports and persisted to be available at next launch.)

App hang events now have the context applied.

OOM events now take the context from the previously persisted state metadata.

Crashes now take the context from the state metadata included in the KSCrashReport.

Made config.context atomic because it could be written to and read from arbitrary threads.

Testing

Amended E2E scenarios to verify presence of context and ran them locally.

@nickdowell nickdowell changed the base branch from master to next April 22, 2021 12:39
@github-actions
Copy link

Infer: No issues found 🎉

OCLint: No issues found 🎉

Bugsnag.framework binary size increased by 360 bytes from 1,124,896 to 1,125,256

Generated by 🚫 Danger

@nickdowell nickdowell merged commit e6d1141 into next Apr 22, 2021
@nickdowell nickdowell deleted the nickdowell/fix-context branch April 22, 2021 15:48
@kstenerud kstenerud mentioned this pull request Apr 28, 2021
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.

2 participants