Fingers Crossed
Veteran developer
Profile
Posts: 234
Reg: Jan 16, 2012
Simcoe, ON
6,390
01/26/14 07:13 PM (11 years ago)

Terminated App due to memory Pressure on iPod Touch error

Hi folks, I have a pesky problem and I'm hoping you can help me figure it out. I have a BT 3.0 app, it's startup is the Mosaic plugin. If I run the app on my iPhone 5, it runs just fine. If I run the app in all the simulators it runs just fine. If I run on my daughters new iPod touch (ios7) it resets her iPod after displaying the refresh icon but NOT the mosaic plugin. If I run it on my sons older iPod touch IOS 6, it also resets it. On both devices, Xcode comes up with a 'Terminate app due to memory pressure' window. I did take out a higher sized graphic, but didn't want to take out everything I have put in :S Any ideas?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/26/14 07:25 PM (11 years ago)
Try seeing if any of this can help. Memory management was 'supposed' to have been improved with ARC, but I guess there is always something else to do as well… https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/PerformanceTuning/PerformanceTuning.html#//apple_ref/doc/uid/TP40007072-CH8-SW52 how large (filesize) are the images for the mosaic plugin? How much are 'all' of them combined? The device may be balking at the aggregate filesize that the plugin is using due to images. Or other resources AND images… Good Luck! Let us know how things go… Cheers! -- Smug
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/26/14 07:45 PM (11 years ago)
Wow - I've yet to see that on a Buzztouch app for iOS (Androids a different story, lol). Will be interested to see what turns up.
 
Fingers Crossed
Veteran developer
Profile
Posts: 234
Reg: Jan 16, 2012
Simcoe, ON
6,390
like
01/29/14 08:41 PM (11 years ago)
Well, to follow this up, I systematically went though removing images from the Mosaic plug in, and guess which one caused it... yup, the very last one I removed (Why does that always happen!) Anyhow, I know 'why' it didn't like it, it's not the file size (479k), its the dimensions :D It's 13211x2265 and I'm assuming it just can't handle it. So, the fix will be to reduce the dimensions and try the beast again :) Thanks for your input though, it's appreciated.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/29/14 09:11 PM (11 years ago)
Lol yeah that might do it I suppose! 13,000 is a lot of pixels!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.