(ios only) codepush.restartApp triggers invalid OutOfMemory errors
See original GitHub issueEnvironment
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:
- Created 2 years ago
- Reactions:15
- Comments:74 (34 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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?
v3.2.1 is gonna be published in a bit and you can turn off the
OutOfMemory
detection by passing theenableOutOfMemoryTracking: false
option, so we have a bit more time to investigate it, thanks.