question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(ios only) codepush.restartApp triggers invalid OutOfMemory errors

See original GitHub issue

Environment

How do you use Sentry? Sentry SaaS (sentry.io)

Which SDK and version? “@sentry/react-native”: “3.1.1”,

Steps to Reproduce

Our app is generating OutOfMemory The OS most likely terminated your app because it overused RAM. errors since upgrading to 3.1.1. We were previously on 2.4.2. The Podfile.lock shows that Sentry/Core (= 7.3.0) is installed. It previously showed: Sentry/Core (= 6.1.4).

The same logs show that there’s plenty of memory to go around, on some devices: Memory Size 5.6 GiB Usable Memory 3.9 GiB

Expected Result

These errors shouldn’t trigger.

I also posted about this here, but perhaps this issue should be reopened? https://github.com/getsentry/sentry-react-native/issues/1633 https://github.com/getsentry/sentry-cocoa/issues/1185

Thanks

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:15
  • Comments:74 (34 by maintainers)

github_iconTop GitHub Comments

6reactions
sean-m-olearycommented, Jun 22, 2022

@sean-m-oleary, please upgrade to Sentry React Native v4, it should not break anything on your end.

We are using sentry-expo which is pinned to 3.1.1 so its not possible atm. We will wait for them to upgrade. In the meantime we can just set enableOutOfMemoryTracking to false right?

3reactions
marandanetocommented, Oct 28, 2021

v3.2.1 is gonna be published in a bit and you can turn off the OutOfMemory detection by passing the enableOutOfMemoryTracking: false option, so we have a bit more time to investigate it, thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native SDK with CodePush API Reference
This behavior ensures that no restarts will be triggered as a result of calling allowRestart unless one was explicitly requested during the ...
Read more >
Receiving javascript heap out of memory when building ...
On iOS, in Xcode, select your target and go to the Build Phases tab, ... I got the same problem when running codepush...
Read more >
React Native Client SDK · CodePush - Microsoft Open Source
In it's most basic form, this command only requires two parameters: your app name and the platform you are bundling the update for...
Read more >
How to use the react-native-code-push.restartApp function in ...
Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues...
Read more >
sentry-react-native - githubmemory
When an error is reported, Sentry Event automatically adds the tag of the page, ... (ios only) codepush.restartApp triggers invalid OutOfMemory errors.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found