iOS React Native 5.2.0 leaks memory and crashes | Community
Skip to main content
Answered

iOS React Native 5.2.0 leaks memory and crashes

  • September 6, 2023
  • 2 replies
  • 182 views

We’ve seen this now occasionally where Intercom gets into a reconnection state and keeps allocating more and more memory. On production iOS this results in a termination of the OS but in our simulator it will accumulate until it cannot get no more (we’ve seen this go up in the several hundreds of gigabytes). Since the source is closed I cannot determine where this goes wrong but the memory inspection seems to point to these two functions:

 

 

As long as we keep the debugger on we will continuously see this being triggered, literally thousands of times within a minute.

 

Is there anything that can be done here?

Best answer by Joseph Callaars

Actually, 5.3.1 that just came out seems to have a potential bug fix. I’ll try that one out.

2 replies

Can you try version 5.3.0 that is fixing a memory leak on iOS. It might be related.


  • Author
  • New Participant
  • Answer
  • September 7, 2023

Actually, 5.3.1 that just came out seems to have a potential bug fix. I’ll try that one out.