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

React Native IOS App crashes while handling large data size using SSE. #227

Open
kiranonline opened this issue Mar 7, 2024 · 1 comment

Comments

@kiranonline
Copy link

I'm encountering crashes in my React Native iOS app (running on an iPhone 13 with iOS 17) when serving large data packets via SSE using the 'event-source-polyfill'. The crashes coincide with sudden spikes in RAM consumption, as monitored using React Native's perf monitor. With multiple stream hits, the app exhibits incremental memory consumption before eventually crashing. The error message I've found in the code is 'com.facebook.react.JavaScript (14): EXC_RESOURCE (RESOURCE_TYPE_MEMORY: high watermark memory limit exceeded) (limit=2098 MB)'. How can I optimize memory usage and address these crashes?

@pjoaog
Copy link

pjoaog commented Apr 25, 2024

Did you find any solution? I have an Ionic/Angular project that constantly closes, but when emulating it through the browser it works correctly.

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

No branches or pull requests

2 participants