sentry-cocoa icon indicating copy to clipboard operation
sentry-cocoa copied to clipboard

A huge amount of OOM events

Open kolyan94 opened this issue 4 years ago • 11 comments

Environment

How do you use Sentry?

  • Sentry SaaS (sentry.io)

Which SDK and version?

  • "@sentry/react-native": "3.2.10"

Steps to Reproduce

We getting a huge amount of "The OS most likely terminated your app because it overused RAM." events (part of them were from a simulator). We didn't find any issue with RAM, but fortunately found one easy way to reproduce it (may not that triggers most of the events):

  1. Launch the app from the Home screen
  2. While the app is open try to build it through Xcode
  3. When Xcode reopens the app we should get a new OOM event.

We don't think that this way is the main one, but unfortunately, we found only this one =(

Expected Result

These events shouldn't trigger.

Actual Result

We got a huge amount of OOM events

Similar issues: #1830 #1338

kolyan94 avatar Dec 31 '21 14:12 kolyan94

@philipphofmann

jennmueng avatar Jan 05 '22 21:01 jennmueng

in my case app is not crushed, just a sentry error on the page with couple of requests and couple images, simular to category page

Rubon72 avatar Jan 07 '22 17:01 Rubon72

I got bunch of crash events on production as well, I could re-produce it by killing the app then reopen

namvoeh avatar Jan 11 '22 08:01 namvoeh

Can also reproduce this for sentry-cocoa. Going to move this.

philipphofmann avatar Jan 11 '22 13:01 philipphofmann

I am also using the same version and have the same issue. "@sentry/react-native": "3.2.10"

numandev1 avatar Jan 26 '22 06:01 numandev1

When there is no debugger attached and you click run in Xcode for an already running app, Xcode kills the app and the SDK thinks it is an OOM. Checking previousAppState.isDebugging or the previousAppState wouldn't work, because the debugger is not attached. Ideally, we should find a way to know if Xcode killed the app.

philipphofmann avatar Jan 26 '22 15:01 philipphofmann

We also get false OOMs for our UI tests in Saucelab. Maybe this is related. Screen Shot 2022-01-26 at 16 20 56

philipphofmann avatar Jan 26 '22 15:01 philipphofmann

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

github-actions[bot] avatar Feb 16 '22 15:02 github-actions[bot]

happens on 3.2.13 version, could it be by defining tracesSampleRate in options of init function? or by adding package date-fns ?

TomasSestak avatar Mar 22 '22 09:03 TomasSestak

The tracesSampleRate has no impact on OOM events. You can use beforeSend to drop OOMs events if you want, @TomasSestak.

philipphofmann avatar Mar 22 '22 10:03 philipphofmann

The tracesSampleRate has no impact on OOM events. You can use beforeSend to drop OOMs events if you want, @TomasSestak.

Thanks for clarification. In our case it crashes the app so I will try to debug it somehow

TomasSestak avatar Mar 22 '22 13:03 TomasSestak

@TomasSestak, @numandev1, @namvoeh, @kolyan94, we didn't see any updates for a long time on this issue, and we did plenty of fixes for OOM. I consider this to be fixed. Please reopen the issue or create a new one if you still experience problems.

philipphofmann avatar Nov 16 '22 07:11 philipphofmann