Hi. I'm using the basic animationImages to animate a bunch of images. However, I'm animating 68 images all of them being the size of the entire screen. I'm using the iOS 4 GM version of xcode. When I load it on the simulator, it works just fine. However, when I load it on the device (which is running iOS 4 GM seed), it crashes and gives me this in the console:
Code:
Loading program into debugger…
Program loaded.
target remote-mobile /tmp/.XcodeGDBRemote-85984-26
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
run
Running…
[Switching to thread 11523]
[Switching to thread 11523]
sharedlibrary apply-load-rules all
continue
Program received signal: “0”.
Data Formatters temporarily unavailable, will re-try after a 'continue'. (Unknown error loading shared library "/Developer/usr/lib/libXcodeDebuggerSupport.dylib")
(gdb)
I figured this was just a memory problem due to the fact I'm trying to animate 68 images, but can it be something else? If it is a memory problem, how can I go about animating these images without it crashing? Thanks for your help in advance.
Hi. I'm using the basic animationImages to animate a bunch of images. However, I'm animating 68 images all of them being the size of the entire screen. I'm using the iOS 4 GM version of xcode. When I load it on the simulator, it works just fine. However, when I load it on the device (which is running iOS 4 GM seed), it crashes and gives me this in the console:
Code:
Loading program into debugger…
Program loaded.
target remote-mobile /tmp/.XcodeGDBRemote-85984-26
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
run
Running…
[Switching to thread 11523]
[Switching to thread 11523]
sharedlibrary apply-load-rules all
continue
Program received signal: “0”.
Data Formatters temporarily unavailable, will re-try after a 'continue'. (Unknown error loading shared library "/Developer/usr/lib/libXcodeDebuggerSupport.dylib")
(gdb)
I figured this was just a memory problem due to the fact I'm trying to animate 68 images, but can it be something else? If it is a memory problem, how can I go about animating these images without it crashing? Thanks for your help in advance.
UPDATE: I just tried loading on my iPod Touch dedicated to testing (also running iOS 4 GM seed) which has never had it loaded on it, and it worked just fine. However, when I try loading it on the iphone it crashes and gives me that error. Is this a bug? I've tried restarting xcode and deleting the app from the device and reinstalling it. Thanks for your help again.
Your images will take up almost 40 megabytes when uncompressed for display; that's too much memory for you to use. You can only use about 20MB on 1st and 2nd gen devices before you get memory warnings and crashes.
You should look at MPMoviePlayerController or MPMoviePlayerViewController instead of animationImages.
Your images will take up almost 40 megabytes when uncompressed for display; that's too much memory for you to use. You can only use about 20MB on 1st and 2nd gen devices before you get memory warnings and crashes.
You should look at MPMoviePlayerController or MPMoviePlayerViewController instead of animationImages.
How come it'll work on my iTouch then? I don't understand. Doesn't the iTouch have the same amount of memory?
How come it'll work on my iTouch then? I don't understand. Doesn't the iTouch have the same amount of memory?
Which generation? The third gen has twice has much memory as the first and second gen touch or phone. Also, the touch in general has more memory available because it's not running the phone processes.
I've seen the same thing in testing. Trust me, it's a memory issue.
Which generation? The third gen has twice has much memory as the first and second gen touch or phone. Also, the touch in general has more memory available because it's not running the phone processes.
I've seen the same thing in testing. Trust me, it's a memory issue.
It's the latest and greatest. The only problem is I want it to display images not play a movie. Is there any possible way I could do this without using too much memory?
It's the latest and greatest. The only problem is I want it to display images not play a movie. Is there any possible way I could do this without using too much memory?
Reduce the number or size of the images, or try using an NSTimer to load and display a new image instead of using animnationImages; then you don't need all of the images loaded at once, only the next few. You probably won't get a great framerate though.
Reduce the number or size of the images, or try using an NSTimer to load and display a new image instead of using animnationImages; then you don't need all of the images loaded at once, only the next few. You probably won't get a great framerate though.
I had some problem. My issue seems to be my iPhone 3G
I had the same issue just now and suspected it was iPhone was corrupted somehow. Some of my other apps that used to run fine and are now getting this error. After reading your post about how it works on your ipod, I went ahead and reinstall the firmware and it works fine afterward.
tldr: try firmware reinstallation if your codes working fine before.
good luck!
Quote:
Originally Posted by Whitehk
UPDATE: I just tried loading on my iPod Touch dedicated to testing (also running iOS 4 GM seed) which has never had it loaded on it, and it worked just fine. However, when I try loading it on the iphone it crashes and gives me that error. Is this a bug? I've tried restarting xcode and deleting the app from the device and reinstalling it. Thanks for your help again.
Your images will take up almost 40 megabytes when uncompressed for display; that's too much memory for you to use. You can only use about 20MB on 1st and 2nd gen devices before you get memory warnings and crashes.
You should look at MPMoviePlayerController or MPMoviePlayerViewController instead of animationImages.
Im running into the same error. Im fairly new to animations and also to iPhone development. I had a very large number of images in one of my animations (80). It ran fine in the Simulator but crashed on my 3Gs and my iP4. Based on your suggestion here, I went ahead and reduced my array to only a handful of images and it now runs on both. Thanks for pointing in the right direction, now I just have to figure out how to make these animation work.