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.

Terminated due to memory issue on ios

See original GitHub issue

I am loading 5 gif image in ListView or in scrollview and the app is exit due to memory issue.

When i do it on emulator or in “rnplay.org” everything works ok. When i load it on real device, i get message: “Message from debugger: Terminated due to memory issue”, and the app is exit.

Full Error:

2016-08-30 14:30:43.786 [warn][tid:main][RCTEventEmitter.m:54] Sending websocketFailed with no listeners registered. 2016-08-30 14:30:43.903 [info][tid:com.facebook.react.JavaScript] Running application “AwesomeProject” with appParams: {“rootTag”:1,“initialProps”:{}}. DEV === true, development-level warning are ON, performance optimizations are OFF 2016-08-30 14:30:44.042 [info][tid:com.facebook.react.JavaScript] aa:http://d3e8mlnfki0y4m.cloudfront.net/1472469433219farcFINAL.gif 2016-08-30 14:30:44.049 [info][tid:com.facebook.react.JavaScript] aa:http://d3e8mlnfki0y4m.cloudfront.net/1472389488180Florida.gif 2016-08-30 14:30:44.055 [info][tid:com.facebook.react.JavaScript] aa:http://d3e8mlnfki0y4m.cloudfront.net/1472383878378Syphilis.gif 2016-08-30 14:30:44.065 [info][tid:com.facebook.react.JavaScript] aa:http://d3e8mlnfki0y4m.cloudfront.net/1472380961607TRUMPTWEET.gif 2016-08-30 14:30:44.072 [info][tid:com.facebook.react.JavaScript] aa:http://d3e8mlnfki0y4m.cloudfront.net/1472372926138italy-breaking.gif 2016-08-30 14:30:44.078 [info][tid:com.facebook.react.JavaScript] aa:http://d3e8mlnfki0y4m.cloudfront.net/1472129403062Polls.gif 2016-08-30 14:30:44.084 [info][tid:com.facebook.react.JavaScript] aa:http://d3e8mlnfki0y4m.cloudfront.net/14701200083971.gif 2016-08-30 14:30:44.090 [info][tid:com.facebook.react.JavaScript] aa:http://s3-us-west-1.amazonaws.com/vocativlabs.glt.image-store/1468419522770testthumb12.gif 2016-08-30 14:30:46.225 AwesomeProject[22698:9829858] Received memory warning. Message from debugger: Terminated due to memory issue

Code to run:

https://rnplay.org/apps/zdTddg

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
nihgwucommented, Sep 13, 2016

@DClark5218 sorry for the delay, I’ve managed to published it to Github https://github.com/nihgwu/react-native-flanimatedimage

1reaction
obladorcommented, Sep 6, 2016

Consider using FLAnimatedImage if using heavy GIFs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Message from debugger: Terminated due to memory issue
The problem here is related to effective memory management. You are loading a lot of data via your json file. You realized that...
Read more >
Message from debugger: Terminated due to Memory Error
When I debugging an iOS on iPhone device, sometimes the app crashes with no stack track but with only this message: Message from...
Read more >
Message from debugger: Terminated due to memory issue
When the device is running low on memory the OS informs apps of memory pressure and expects memory to be released in response....
Read more >
[IOS] Message from debugger: Terminated due to memory issue
Most of the time Terminated due to memory issue error is received when a complex command is executed. But I think it is...
Read more >
iOS enormous leak ends with "Terminated due to memory issue"
The issue also occurs with the phone isn't being run with Xcode. I have been unable to reproduce on Windows or Android. Screen...
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