[RESOLVED] The testcocos2d app crashes when pressing home


#1

I have this problem on my iPhone 5:
If I run the testcocos2d and press “home”

the app crashes and I have this in the console logs:

Feb 26 09:32:34 iPhone-Franck locationd60 : no app type available for com.yourcompany.testCoco2dX

Incident Identifier: 74652087-A99B-4293-A1BA-273F63266589
CrashReporter Key: d8ab2628e36e1c5ef60c63f217d734d62950b336
Hardware Model: iPhone5,2
Process: testCoco2dX [4281]
Path: /Applications/testCoco2dX.app/testCoco2dX
Identifier: testCoco2dX
Version: ? (?)
Code Type: ARM (Native)
Parent Process: launchd [1]

Date/Time: 2013-02-26 09:32:38.304 0100
OS Version: iOS 6.1
Report Version: 104
Exception Type: 00000020
Exception Codes: 0x00000000dead10cc
Highlighted Thread: 0
Application Specific Information:
testCoco2dX4281 was suspended with locked system files:
/private/var/mobile/Library/Caches/com.yourcompany.testCoco2dX/com.apple.opengl/shaders.maps
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x39ab8e30 mach_msg_trap
20
1 libsystem_kernel.dylib 0x39ab8fd0 mach_msg + 48
2 CoreFoundation 0x318b92b6 CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x318b7f70
CFRunLoopRun + 712
4 CoreFoundation 0x3182b238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x3182b0c4 CFRunLoopRunInMode + 100
6 GraphicsServices 0x35409336 GSEventRunModal + 70
7 UIKit 0x337472b4 UIApplicationMain + 1116
8 testCoco2dX 0x000dccc6 main (main.m:14)
9 libdyld.dylib 0x39a02b1c start + 0

Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x39ab95d0 kevent64 + 24
1 libdispatch.dylib 0x399f4d22 dispatch_mgr_invoke + 806
2 libdispatch.dylib 0x399f0374
dispatch_mgr_thread + 32

Thread 2:
0 libsystem_kernel.dylib 0x39ac9d98 workq_kernreturn + 8
1 libsystem_c.dylib 0x39a17ad6 pthread_workq_return + 14
2 libsystem_c.dylib 0x39a177f2
pthread_wqthread + 362
3 libsystem_c.dylib 0x39a17680 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x39ac9d98
workq_kernreturn + 8
1 libsystem_c.dylib 0x39a17ad6 pthread_workq_return + 14
2 libsystem_c.dylib 0x39a177f2
pthread_wqthread + 362
3 libsystem_c.dylib 0x39a17680 start_wqthread + 4

Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x39ab8e30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39ab8fd0 mach_msg + 48
2 CoreFoundation 0x318b92b6 CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x318b802c
CFRunLoopRun + 900
4 CoreFoundation 0x3182b238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x3182b0c4 CFRunLoopRunInMode + 100
6 WebCore 0x3782a390 RunWebThread(void*) + 440
7 libsystem_c.dylib 0x39a220de _pthread_start + 306
8 libsystem_c.dylib 0x39a21fa4 thread_start + 4

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

How to avoid this ?


The testcocos2d app will crash when pressed home key On SDK2.0
#2

anyone else has this problem ?


#3

Zhe Wang any idea ?


#4

What’s cocos2d-x version?


#5

it’s the cocos2d-2.1beta3-x-2.1.1


#6

It stopped happening since I updated to iOS 6.1.2.
Is there any running issues with jailbroken phones ?


#7

Well, we haven’t tested samples on jailbroken devices, or setting up dev env on black apple desktops.