Current SDL 1.3 trunk on iPhone broken? _NSAutoreleaseNoPool

Hi,

I am trying to build an iPhone application based on the current SDL 1.3 trunk code.

The application runs fine in the iPhone Simulator. Now I was trying to get it running on my iPhone 3GS (with iOS 3.1.2) but it crashes:

Code:
Process: Commander Genius [8096]
Path: /Applications/Commander Genius.app/Commander Genius
Identifier: Commander Genius
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]

Date/Time: 2010-07-26 07:39:17.946 +0200
OS Version: iPhone OS 3.1.2 (7D11)
Report Version: 104

Exception Type: 00000020
Exception Codes: 0x8badf00d
Highlighted Thread: 0

Application Specific Information:
com.clonekeenplus.clonekeenplus failed to launch in time
elapsed total CPU time (seconds): 0.960 (user 0.530, system 0.430), 5% CPU
elapsed application CPU time (seconds): 0.490, 2% CPU

Thread 0:
0 libSystem.B.dylib 0x00000818 mach_msg_trap + 20
1 libSystem.B.dylib 0x00002ff8 mach_msg + 44
2 CoreFoundation 0x000567f6 CFRunLoopRunSpecific + 1162
3 CoreFoundation 0x00056356 CFRunLoopRunInMode + 42
4 UIKit 0x00002748 -[UIApplication _run] + 352
5 UIKit 0x0000146c UIApplicationMain + 688
6 Commander Genius 0x000a3986 main (SDL_uikitappdelegate.m:53)
7 Commander Genius 0x00006ca4 start + 44

Thread 1:
0 libSystem.B.dylib 0x00000818 mach_msg_trap + 20
1 libSystem.B.dylib 0x00002ff8 mach_msg + 44
2 CoreFoundation 0x000567f6 CFRunLoopRunSpecific + 1162
3 CoreFoundation 0x00056356 CFRunLoopRunInMode + 42
4 WebCore 0x0005d9de RunWebThread(void*) + 286
5 libSystem.B.dylib 0x0002492a _pthread_body + 10

Unknown thread crashed with unknown flavor: 5, state_count: 1

And the console messages are these:

Code:
Mon Jul 26 07:38:58 unknown Commander Genius[8096] : MS:Notice: Installing: net.sourceforge.clonekeenplus [Commander Genius] (478.52)
Mon Jul 26 07:38:58 unknown Commander Genius[8096] : MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/Activator.dylib
Mon Jul 26 07:38:58 unknown Commander Genius[8096] : MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/Backgrounder.dylib
Mon Jul 26 07:38:58 unknown Commander Genius[8096] : *** _NSAutoreleaseNoPool(): Object 0x20f540 of class NSCFString autoreleased with no pool in place - just leaking
Stack: (0x3145cf87 0x31431135 0x31431107 0x31430b87 0x1a541c 0x1c3150 0x323fdf65 0x323fddad 0x2fe019cf 0x2fe09d71 0x2fe0a16d 0x2fe01dd9 0x2fe08247 0x319ac995 0x169038 0x2fe0bd7d 0x2fe0be39 0x2fe09d7f 0x2fe0a16d 0x2fe0228b 0x2fe06a15 0x2fe016fd 0x2fe01050)
Mon Jul 26 07:38:58 unknown Commander Genius[8096] : *** _NSAutoreleaseNoPool(): Object 0x20f9d0 of class NSCFDictionary autoreleased with no pool in place - just leaking
Stack: (0x3145cf87 0x31431135 0x31431107 0x3258bcc9 0x1a59e8 0x1a5434 0x1c3150 0x323fdf65 0x323fddad 0x2fe019cf 0x2fe09d71 0x2fe0a16d 0x2fe01dd9 0x2fe08247 0x319ac995 0x169038 0x2fe0bd7d 0x2fe0be39 0x2fe09d7f 0x2fe0a16d 0x2fe0228b 0x2fe06a15 0x2fe016fd 0x2fe01050)
Mon Jul 26 07:38:58 unknown Commander Genius[8096] : *** _NSAutoreleaseNoPool(): Object 0x20fbf0 of class NSCFData autoreleased with no pool in place - just leaking
Stack: (0x3145cf87 0x31431135 0x31431107 0x31437d3b 0x30156011 0x301557d9 0x1a5a04 0x1a5434 0x1c3150 0x323fdf65 0x323fddad 0x2fe019cf 0x2fe09d71 0x2fe0a16d 0x2fe01dd9 0x2fe08247 0x319ac995 0x169038 0x2fe0bd7d 0x2fe0be39 0x2fe09d7f 0x2fe0a16d 0x2fe0228b 0x2fe06a15 0x2fe016fd 0x2fe01050)
Mon Jul 26 07:38:58 unknown Commander Genius[8096] : *** _NSAutoreleaseNoPool(): Object 0x20fc30 of class NSCFData autoreleased with no pool in place - just leaking
Stack: (0x3145cf87 0x31431135 0x31431107 0x31431331 0x314311c3 0x314311a1 0x30155bfb 0x301563d1 0x30156141 0x301557d9 0x1a5a04 0x1a5434 0x1c3150 0x323fdf65 0x323fddad 0x2fe019cf 0x2fe09d71 0x2fe0a16d 0x2fe01dd9 0x2fe08247 0x319ac995 0x169038 0x2fe0bd7d 0x2fe0be39 0x2fe09d7f 0x2fe0a16d 0x2fe0228b 0x2fe06a15 0x2fe016fd 0x2fe01050)
Mon Jul 26 07:38:58 unknown Commander Genius[8096] : *** _NSAutoreleaseNoPool(): Object 0x20fcb0 of class NSCFData autoreleased with no pool in place - just leaking
Stack: (0x3145cf87 0x31431135 0x31431107 0x31431331 0x314311c3 0x314311a1 0x301563e1 0x30156141 0x301557d9 0x1a5a04 0x1a5434 0x1c3150 0x323fdf65 0x323fddad 0x2fe019cf 0x2fe09d71 0x2fe0a16d 0x2fe01dd9 0x2fe08247 0x319ac995 0x169038 0x2fe0bd7d 0x2fe0be39 0x2fe09d7f 0x2fe0a16d 0x2fe0228b 0x2fe06a15 0x2fe016fd 0x2fe01050)
Mon Jul 26 07:38:58 unknown Commander Genius[8096] : *** _NSAutoreleaseNoPool(): Object 0x20fda0 of class NSCFDictionary autoreleased with no pool in place - just leaking
Stack: (0x3145cf87 0x31431135 0x31431107 0x31439955 0x3015652f 0x30156141 0x301557d9 0x1a5a04 0x1a5434 0x1c3150 0x323fdf65 0x323fddad 0x2fe019cf 0x2fe09d71 0x2fe0a16d 0x2fe01dd9 0x2fe08247 0x319ac995 0x169038 0x2fe0bd7d 0x2fe0be39 0x2fe09d7f 0x2fe0a16d 0x2fe0228b 0x2fe06a15 0x2fe016fd 0x2fe01050)
Mon Jul 26 07:38:58 unknown Commander Genius[8096] : *** _NSAutoreleaseNoPool(): Object 0x20fe60 of class NSCFString autoreleased with no pool in place - just leaking
Stack: (0x3145cf87 0x31431135 0x31431107 0x31430b87 0x1a56c4 0x1c3208 0x323fdf65 0x323fddad 0x2fe019cf 0x2fe09d71 0x2fe0a16d 0x2fe01dd9 0x2fe08247 0x319ac995 0x169038 0x2fe0bd7d 0x2fe0be39 0x2fe09d7f 0x2fe0a16d 0x2fe0228b 0x2fe06a15 0x2fe016fd 0x2fe01050)
Mon Jul 26 07:38:58 unknown Commander Genius[8096] : *** _NSAutoreleaseNoPool(): Object 0x20fe80 of class NSCFDictionary autoreleased with no pool in place - just leaking
Stack: (0x3145cf87 0x31431135 0x31431107 0x3258bcc9 0x1a59e8 0x1a56e0 0x1c3208 0x323fdf65 0x323fddad 0x2fe019cf 0x2fe09d71 0x2fe0a16d 0x2fe01dd9 0x2fe08247 0x319ac995 0x169038 0x2fe0bd7d 0x2fe0be39 0x2fe09d7f 0x2fe0a16d 0x2fe0228b 0x2fe06a15 0x2fe016fd 0x2fe01050)
Mon Jul 26 07:38:58 unknown Commander Genius[8096] : *** _NSAutoreleaseNoPool(): Object 0x20ff70 of class NSCFData autoreleased with no pool in place - just leaking
Stack: (0x3145cf87 0x31431135 0x31431107 0x31437d3b 0x30156011 0x301557d9 0x1a5a04 0x1a56e0 0x1c3208 0x323fdf65 0x323fddad 0x2fe019cf 0x2fe09d71 0x2fe0a16d 0x2fe01dd9 0x2fe08247 0x319ac995 0x169038 0x2fe0bd7d 0x2fe0be39 0x2fe09d7f 0x2fe0a16d 0x2fe0228b 0x2fe06a15 0x2fe016fd 0x2fe01050)
Mon Jul 26 07:38:58 unknown Commander Genius[8096] : *** _NSAutoreleaseNoPool(): Object 0x20ffa0 of class NSCFData autoreleased with no pool in place - just leaking
Stack: (0x3145cf87 0x31431135 0x31431107 0x31431331 0x314311c3 0x314311a1 0x301563e1 0x30156141 0x301557d9 0x1a5a04 0x1a56e0 0x1c3208 0x323fdf65 0x323fddad 0x2fe019cf 0x2fe09d71 0x2fe0a16d 0x2fe01dd9 0x2fe08247 0x319ac995 0x169038 0x2fe0bd7d 0x2fe0be39 0x2fe09d7f 0x2fe0a16d 0x2fe0228b 0x2fe06a15 0x2fe016fd 0x2fe01050)
Mon Jul 26 07:38:58 unknown Commander Genius[8096] : *** _NSAutoreleaseNoPool(): Object 0x210040 of class NSCFDictionary autoreleased with no pool in place - just leaking
Stack: (0x3145cf87 0x31431135 0x31431107 0x31439955 0x3015652f 0x30156141 0x301557d9 0x1a5a04 0x1a56e0 0x1c3208 0x323fdf65 0x323fddad 0x2fe019cf 0x2fe09d71 0x2fe0a16d 0x2fe01dd9 0x2fe08247 0x319ac995 0x169038 0x2fe0bd7d 0x2fe0be39 0x2fe09d7f 0x2fe0a16d 0x2fe0228b 0x2fe06a15 0x2fe016fd 0x2fe01050)
Mon Jul 26 07:38:58 unknown Commander Genius[8096] : MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/UIHook-iKeyEx3.dylib
Mon Jul 26 07:38:58 unknown Commander Genius[8096] : MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/WinterBoard.dylib
Mon Jul 26 07:38:58 unknown Commander Genius[8096] : WB:Notice: WinterBoard
Mon Jul 26 07:39:17 unknown SpringBoard[7745] : com.clonekeenplus.clonekeenplus failed to launch in time
elapsed total CPU time (seconds): 0.960 (user 0.530, system 0.430), 5% CPU
elapsed application CPU time (seconds): 0.490, 2% CPU
Mon Jul 26 07:39:17 unknown SpringBoard[7745] : Forcing crash report of com.clonekeenplus.clonekeenplus…
Mon Jul 26 07:39:18 unknown SpringBoard[7745] : Finished crash reporting.
Mon Jul 26 07:39:18 unknown com.apple.launchd[1] : (UIKitApplication:com.clonekeenplus.clonekeenplus[0xad1b]) Exited: Killed
Mon Jul 26 07:39:18 unknown com.apple.launchd[1] : (UIKitApplication:com.clonekeenplus.clonekeenplus[0xad1b]) Throttling respawn: Will start in 2147483627 seconds
Mon Jul 26 07:39:18 unknown SpringBoard[7745] : Application ‘Commander Genius’ exited abnormally with signal 9: Killed
Mon Jul 26 07:39:18 unknown ReportCrash[8097] : Saved crashreport to /var/mobile/Library/Logs/CrashReporter/Commander Genius_2010-07-26-073917_albert.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
Mon Jul 26 07:40:18 unknown SpringBoard[7745] : MultitouchHID(20bb90) uilock state: 0 -> 1

Anyone an idea? Can someone confirm that the latest SDL trunk should work on the iPhone (or confirm that it is broken)?

Or if not, what is a good state of the trunk where it works?

About the crash itself: I’m esp. wondering about those _NSAutoreleaseNoPool warnings. There should be a NSAutoreleasePool as far as I can tell from the main() in SDl_uikitappdelegate.m.

Thanks,
Albert

Ha, I found the problem: Seems it looked for com.clonekeenplus.clonekeenplus but for some reason I had net.sourceforge.clonekeenplus in my Info.plist (I wonder at what other places it has saved this com.clonekeenplus.clonekeenplus). Changing the Info.plist entry to com.clonekeenplus.clonekeenplus did the trick. Now it works. :slight_smile:

Only multi-touch is completely broken. But see my other post about this.