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

App Memory And OOM Support #12903

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

naftaly
Copy link
Contributor

@naftaly naftaly commented May 6, 2024

What

This PR introduces memory pressure and memory level systems in order to effectively track memory terminations and correctly report them changes as non-fatals and report OOMs as well.

Why

A lot has changed since this article about handling memory terminations. In order to bring Crashlytics OOM handling up to date, some additional heuristics are needed.

Screenshot 2024-05-06 at 4 04 50 PM Screenshot 2024-05-06 at 4 04 36 PM

Discussions:

#12897
#12889
#8130

@naftaly naftaly changed the title App Memory and OOM Support App Memory And OOM Support May 6, 2024
FIRCLSAppMemory *memoryInfo = [[FIRCLSAppMemory alloc] initWithJSONObject:breadcrumbs];
if (memoryInfo.isOutOfMemory) {
FIRCLSInfoLog(@"Writing OOM record to %@", path);
FIRCLSExceptionRecordOutOfMemoryTerminationAtPath(path.UTF8String);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised that even though the clsrecord is written out correctly, recognized by the local system as a valid part of the report and uploaded to the backend, it is not recognized server side and doesn't end up in the Firecase Crashlytics dashboard. Maybe the maintainers could help me figure out why (I don't think I have access to the backend code).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@paulb777 @ncooke3 do either of you have any ideas how why this type of report won't go through on the backend (or who I might refer to)?

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.

None yet

3 participants