I just tested a game that I’ve been working on in my just-updated iPod Touch, which of course I updated to iOS4. The game worked great before, but now there’s an issue. It works fine in the beginning, and then after a little bit of play it just closes. The game was exported for iPhone 3.
Are there any known issues with iOS4 compatibility? [import]uid: 6678 topic_id: 1282 reply_id: 301282[/import]
SpringBoard[40] : Application ‘my app name’ exited abnormally with signal 6: Abort trap
ReportCrash[331] : Saved crashreport to /var/mobile/Library/Logs/CrashReporter/myappname_2010-06-25-161345_iPod.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
And here is the crash report, and please let me know if you need any more information: Incident Identifier: 8F7E882B-D591-4ABE-B3A1-2B320AE3B965 CrashReporter Key: 2edd48193bb674195fa5a35ec189faefb797fb57 Hardware Model: iPod2,1 Process: myappname [330] Path: /var/mobile/Applications/D15D662A-A289-45D1-AD85-37B60503E63D/myapp.app/myappname Identifier: myappname Version: ??? (???) Code Type: ARM (Native) Parent Process: launchd [1]
Date/Time: 2010-06-25 16:13:45.632 -0400 OS Version: iPhone OS 4.0 (8A293) Report Version: 104
Also being that it doesn’t seem like this is an out of memory issue, I assume this is actually a bug? [import]uid: 6678 topic_id: 1282 reply_id: 3477[/import]
I have some Crash Logs of alien horde … Maybe this relates to the same problem. Deleted them though [import]uid: 6928 topic_id: 1282 reply_id: 3504[/import]
The crash logs, I still have but they are not from the game as such.
If you quickly try to reload a game straight after quitting it it will try to load and crash. I think it takes a few seconds to free the memory / close the app. These crashes are all OS4 related.
Im quite happy to work with you guys to resolve this issue, if you dont have the game im happy to give you the source code.
Ive only had 1 actual crash report from a purchaser and that could probably be my fault as corona did not crash, the game still ran but no more aliens came so m assuming the aliens.lua class crashed and corona carried on regardless! [import]uid: 5354 topic_id: 1282 reply_id: 3551[/import]
Ive got no internet at home for the next week so I will help where I can.
Just so you guys know. Alien Horde been out 1 week now and sold 300+ copies. The crash reports that get submitted to iTunes Connect >
OS 3.2 - No Crash Reports
OS 3.1.3 - No Crash Reports
OS 3.1.2 - No Crash Reports
OS 3.1 - No Crash Reports
OS 4 - Some crash reports
All versions - no memory issues
This is all from Beta 5
OS4 crash reports
CoreGraphics: color_space_state_dealloc 92% of submitted crashes
CoreGraphics: color_space_state_dealloc + 22 4% of submitted crashes
CoreGraphics: color_space_state_dealloc + 48 4% of submitted crashes
Like ive said above though these do not occur while the game is happening. I have a stress test version which runs at 10x speed and has unlimited life, the app carries on happily forever with no issues that ive found.
Eric I will email you the reports in a mo if it help you. [import]uid: 5354 topic_id: 1282 reply_id: 3553[/import]
In my game, during game play, this bug is a nasty one. It was pretty much ready for release, but now it’s not usable since it actually crashes every time. But, it seems a lot of apps that worked on 3.x aren’t working correctly on 4. I have a bunch on my iPod Touch that don’t even open. But I would really hope this is fixed very soon because right now I have to hold up a game that I was pretty much set to release. [import]uid: 6678 topic_id: 1282 reply_id: 3568[/import]
I managed to generate an error like that the other day while debugging and it made the app quit. The problem I had as trying to do a transition on an object that didnt exist. Does it quit the simulator as well? [import]uid: 5354 topic_id: 1282 reply_id: 3569[/import]
Interesting, but no, the simulator never quits, and I never get any errors or warnings in the terminal. Also, it seemed to work fine on 3.x and never crashed. I’m not using any transitions, but I wonder what else it could be, if anything I’m doing, but it really doesn’t seem like it. Thanks for the idea and please let me know if you have any other thoughts. [import]uid: 6678 topic_id: 1282 reply_id: 3570[/import]
I would separate out the different bits of the code and compile them separately to try to narrow down the issue, at least you will be able to submit some code with the bug report.
If you can narrow down the code block thats causing the issue I don’t mind having a go at debugging it.
The crashes ive seen like these are outside the error reporting capabilities of Corona as its not the actual lua code causing the crash but rather the corona engine attempting to do something it cant, possibly instructed to by lua. The simulator does sometimes quit in a similar way to the iPhone crash.
Are you trying to perform an operation on an object in an array that doesnt exist, like you just killed it enemy and removed it from the game but at some point in the future you are trying to perform an operation on it? [import]uid: 5354 topic_id: 1282 reply_id: 3571[/import]
Hmm, it doesn’t seem like that’s the case. Instead of going through a ton of code that I’m pretty positive was working, I’m having my friend test the exact same .app on his iPod Touch running 3.1. I’ll report back with what happens. [import]uid: 6678 topic_id: 1282 reply_id: 3574[/import]
Reading the OS4 documentation a while ago I did see apple had depreciated some core functions and added new ones to be used instead. That may be an issue. [import]uid: 5354 topic_id: 1282 reply_id: 3576[/import]
Also, just to be clear, this isn’t “occasional” crashing. It’s automatic, during every single game, at what seems to a fairly random point during the beginning. I mean it’s probably not random but I can’t really determine when it’s happening. [import]uid: 6678 topic_id: 1282 reply_id: 3599[/import]
Yes, it’s beta 5. Also, I just heard back from my friend. He played the game for 20 minutes straight (iPhone OS 3) and no crashes. This confirms that it is the iOS4 causing the issues. [import]uid: 6678 topic_id: 1282 reply_id: 3598[/import]
DFox, the code is crashing in an area where we release the image data that’s no longer needed.
I modified Fishies to remove the bkgd in hopes of repro’ing your issue as this triggers the image data to be released. However, I’m not able to reproduce the crash.
Can you send your project files over to beta@anscamobile.com so we can repro the issue and determine the appropriate fix?
thanks,
walter
[import]uid: 26 topic_id: 1282 reply_id: 3605[/import]