Ipad crashing during game launch
Help guys I have a really strange issue I moved one of my existing games over to iphone ipad and when I tested it on iphone it is working great after several adjustments. However when I tested it on ipad it crashes during launch. I have tried several different setting like armv6 or armv7, ipad only or iphone/ipad, multitouch on and off, image compression on and off. Then I even did a build after complete re-size to 1024 x 768 and retried all previous setting options and zero changes in the problem. Any ideas?
Re: Ipad crashing during game launch
have you tried restarting your ipad?
Re: Ipad crashing during game launch
Does it give a broken pipe message when you try and build it in xcode?
Re: Ipad crashing during game launch
Restarting your iPad and clean project in Xcode...
Re: Ipad crashing during game launch
I should have said yes I did reboot the Ipad in fact I have tried it on both of my Ipad's with the same result. I also ran the xcode debugger during testing and it returns an error with no error code found. also i did restart with a clean xcode. A new interesting twist to my issue is the xcode Ipad simulator which it works in the sim that is why I opted to try my other Ipad but I still have the same problem.
Re: Ipad crashing during game launch
I have a weird problem that when I compile the game in xcode to run on the ipad instead of simulator, it won't launch. It goes to a black screen, so I found out that if I stop the debugging hitting the red button on xcode, close the app manually, and then launch it manually it works. It is the only way it will start up for me. Not sure if it's what is happening to you, but probably these issues are related.
Re: Ipad crashing during game launch
I should also note that the game does make it to frame 1 just like the it does on Iphone however when I hit play is when it fails.
At: Renatos, Thanks I did try to stop the debugger and manually kill and launch the game with no changes. bummer...
It appears to be a problem somewhere in frame 2 that is effecting Ipad and not effecting Iphone.
Any more thoughts anyone?
Re: Ipad crashing during game launch
update:
Here is the error I am getting back:
GDB: data formaters temporarily unavailable, will re-try after continue'. (unknown error loading shared library\ Developer \USR\LIB\LIBX code Debugger Support.dylib
Idea's?
Re: Ipad crashing during game launch
What version iOS are you running on iPad? The simulator will default to iOS4.3 I think, so if your iPad iOS is lower then that might explain why
Re: Ipad crashing during game launch
The screen might be black on an iPad if the size of the application window is not exactly 1024x768 960x640 or 480x320. Can you check that?
Re: Ipad crashing during game launch
If it's crashing when you hit play, it could be a 'start of frame' event in the frame you're entering. I've noticed some issues with 'start of frame' events here and there and I've found myself often replacing them with 'timer equals 0'00"01'. 'Start of frame' events sort of happen 'before' the frame in a way (hence why centring the camera in a 'start of frame' event will make sure the camera is centred during a fade-in transition etc.), and I think it has a few issues with those.
As I say I've had troubles with a few 'start of frame' events, particularly ones which play a sound or music, so I just replace them with an event which occurs when the timer reaches .01 of a second.
Re: Ipad crashing during game launch
@ Francois: My application is at resolution 1024x768 on the iPad.
Re: Ipad crashing during game launch
Update my Ipads are running 4.3.3 and my xcode is compiling to ios 4.3. resolution is 1024 x 768.
At: DistantJ I am going to give your method a shot and I will report back.
Re: Ipad crashing during game launch
DistantJ: your time partitioning for frame2 I must be not doing it right are you adding it as a event and a timer? and are you doing this between start frame and the 1st event or between events with music? have you used more then one with in a frame?
Re: Ipad crashing during game launch
I found the issue, So for those that run into this or similar problem watch your memory usage especially with resolution and color count like 16 million colors will not play well with games that have a lot of full screen action. Also use color reduction when possible. Apple also has a garbage collection call that could be very useful to help memory usage and memory leaks. I will reach out in a separate thread on garbage collect.