My app crashes several times without any error or stack trace on my console. Then the only way left is to go and check Apple's crash reporter. I found "jettisoned" next to my app name, which in turn implies iOS killed my app, but how do I figure out why did it happened? Why is iOS killing my app? Initially, I thought it was a memory overflow issue, but then, using Instruments, I figured out that my app was taking hardly 4-5 MB of memory, so I discarded those issues. Apple's doc does not mention much about this. Any help or suggestions would be highly appreciated.
It means the process was terminated because iOS needed memory:
Memory usage of each process is reported in terms of number of memory pages, which as of this writing are 4KB each. You will see "(jettisoned)" next to the name of any process terminated by iOS to free up memory . If you see it next to your application's name, that confirms the application was terminated for using too much memory.
I would take a look at that technical note for some additional help. The documentation also points out the Instruments does not measure graphics memory use, and that requires special handling.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.