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

[PLAT-5451] Fix missing session information in OOM events #963

Merged
merged 2 commits into from
Jan 12, 2021

Conversation

nickdowell
Copy link
Contributor

@nickdowell nickdowell commented Jan 8, 2021

Goal

OOM events used to contain session information, but this was inadvertently removed by a regression introduced in v6.2.0.

These changes reintroduce the session information in OOM events and add verification of this in the E2E tests.

Changeset

BugsnagSystemState now records the session information when a BSGSessionUpdateNotification is posted, just like BSGOutOfMemoryWatchdog used to.

-[BugsnagEvent initWithOOMData:] still contains the code to read the session information from the data stored by BugsnagSystemState.

Testing

Tested manually using the example app, and by amending & running the E2E tests.

@nickdowell nickdowell changed the title Fix missing session information in OOM events [PLAT-5451] Fix missing session information in OOM events Jan 8, 2021
@github-actions
Copy link

github-actions bot commented Jan 8, 2021

Infer: No issues found 🎉

Bugsnag.framework binary size increased by 1,272 bytes from 1,057,664 to 1,058,936

Generated by 🚫 Danger

@nickdowell nickdowell force-pushed the nickdowell/fix-oom-session-info branch from d385af5 to d712d20 Compare January 8, 2021 13:05
@nickdowell nickdowell marked this pull request as ready for review January 8, 2021 13:25
@nickdowell nickdowell force-pushed the nickdowell/fix-oom-session-info branch from ac3d2a2 to 93fb5f4 Compare January 11, 2021 13:40
@nickdowell nickdowell merged commit f4cab28 into next Jan 12, 2021
@nickdowell nickdowell deleted the nickdowell/fix-oom-session-info branch January 12, 2021 08:22
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.

3 participants