App crashing on iOS 6.1.3

Hello,

I’ve submitted two apps to Apple and both apps were rejected because they crashed on iOS 6.1.3 on iPhone 5 and iPad. The thing is that I’ve tested it both on the devices (iPhone 5, iPad, iPod) and it works perfectly. I’m attaching the logs I received from apple in this post. Please Help.

Crash Report 1
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000
Crashed Thread: 0

Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 IndieRacing 0x00034d90 0x2d000 + 32144
1 IndieRacing 0x00033c90 0x2d000 + 27792
2 IndieRacing 0x0003958c 0x2d000 + 50572
3 IndieRacing 0x0007bda0 0x2d000 + 322976
4 IndieRacing 0x0007ba54 0x2d000 + 322132
5 IndieRacing 0x00075d6a 0x2d000 + 298346
6 IndieRacing 0x000763f2 0x2d000 + 300018
7 IndieRacing 0x00075d4e 0x2d000 + 298318
8 IndieRacing 0x0007535e 0x2d000 + 295774
9 IndieRacing 0x0005622a 0x2d000 + 168490
10 IndieRacing 0x00055bea 0x2d000 + 166890
11 IndieRacing 0x00069746 0x2d000 + 247622
12 IndieRacing 0x00059074 0x2d000 + 180340
13 IndieRacing 0x0005d45a 0x2d000 + 197722
14 UIKit 0x3455b5ec + 520
15 UIKit 0x345487fc
[UIApplication sendEvent:] + 376
16 UIKit 0x34548116 UIApplicationHandleEvent + 6150
17 GraphicsServices 0x3623e5a0
PurpleEventCallback + 588
18 GraphicsServices 0x3623e1ce PurpleEventCallback + 30
19 CoreFoundation 0x32715170 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 32
20 CoreFoundation 0x32715112 CFRunLoopDoSource1 + 134
21 CoreFoundation 0x32713f94
CFRunLoopRun + 1380
22 CoreFoundation 0x32686eb8 CFRunLoopRunSpecific + 352
23 CoreFoundation 0x32686d44 CFRunLoopRunInMode + 100
24 GraphicsServices 0x3623d2e6 GSEventRunModal + 70
25 UIKit 0x3459c2fc UIApplicationMain + 1116

Crash Report 2:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000
Crashed Thread: 0

Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 IndieRacing 0x000fcd90 0xf5000 + 32144
1 IndieRacing 0x000fbc90 0xf5000 + 27792
2 IndieRacing 0x0010158c 0xf5000 + 50572
3 IndieRacing 0x00143da0 0xf5000 + 322976
4 IndieRacing 0x00143a54 0xf5000 + 322132
5 IndieRacing 0x0013dd6a 0xf5000 + 298346
6 IndieRacing 0x0013e3f2 0xf5000 + 300018
7 IndieRacing 0x0013dd4e 0xf5000 + 298318
8 IndieRacing 0x0013d35e 0xf5000 + 295774
9 IndieRacing 0x0011e22a 0xf5000 + 168490
10 IndieRacing 0x0011dbea 0xf5000 + 166890
11 IndieRacing 0x00131746 0xf5000 + 247622
12 IndieRacing 0x00121074 0xf5000 + 180340
13 IndieRacing 0x0012545a 0xf5000 + 197722
14 UIKit 0x3455b5ec + 520
15 UIKit 0x345487fc
[UIApplication sendEvent:] + 376
16 UIKit 0x34548116 UIApplicationHandleEvent + 6150
17 GraphicsServices 0x3623e5a0
PurpleEventCallback + 588
18 GraphicsServices 0x3623e1ce PurpleEventCallback + 30
19 CoreFoundation 0x32715170 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 32
20 CoreFoundation 0x32715112 CFRunLoopDoSource1 + 134
21 CoreFoundation 0x32713f94
CFRunLoopRun + 1380
22 CoreFoundation 0x32686eb8 CFRunLoopRunSpecific + 352
23 CoreFoundation 0x32686d44 CFRunLoopRunInMode + 100
24 GraphicsServices 0x3623d2e6 GSEventRunModal + 70
25 UIKit 0x3459c2fc UIApplicationMain + 1116

Crash Report 3
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: EXC_ARM_DA_ALIGN at 0x0000168b
Crashed Thread: 0

Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 IndieRacing2 0x000b74d6 0xb4000 + 13526
1 IndieRacing2 0x000b7572 0xb4000 + 13682
2 IndieRacing2 0x000f2b98 0xb4000 + 256920
3 IndieRacing2 0x000e4bde 0xb4000 + 199646
4 IndieRacing2 0x000d1f32 0xb4000 + 122674
5 IndieRacing2 0x000d6f74 0xb4000 + 143220
6 UIKit 0x345c551e + 314
7 UIKit 0x345b27fc
[UIApplication sendEvent:] + 376
8 UIKit 0x345b2116 UIApplicationHandleEvent + 6150
9 GraphicsServices 0x362a65a0
PurpleEventCallback + 588
10 GraphicsServices 0x362a61ce PurpleEventCallback + 30
11 CoreFoundation 0x3277f170 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 32
12 CoreFoundation 0x3277f112 CFRunLoopDoSource1 + 134
13 CoreFoundation 0x3277df94
CFRunLoopRun + 1380
14 CoreFoundation 0x326f0eb8 CFRunLoopRunSpecific + 352
15 CoreFoundation 0x326f0d44 CFRunLoopRunInMode + 100
16 GraphicsServices 0x362a52e6 GSEventRunModal + 70
17 UIKit 0x346062fc UIApplicationMain + 1116
18 IndieRacing2 0x000b59ae 0xb4000 + 6574
19 libdyld.dylib 0x3aa85b1c start + 0

After going through the reports, the crash originates in the sendTouchForEvent method, can anyone help in figuring out the problem?

Thanks,
H

any code?

Hussain Ali wrote:

Crash Report 3
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: EXC_ARM_DA_ALIGN at 0x0000168b
Crashed Thread: 0

EXC_ARM_DA_ALIGN indicates that probably there was some memory alignment issue. I saw that some people previously had similar problems especially with CCBReader when they compiled with new version of XCode. Your problem might be related. I can advice you to read this thread: http://www.cocos2d-x.org/boards/6/topics/23731 You can try to turn off all compiler optimizations when you build your app or alternatively you can try to use older version of XCode (sorry I’m not sure which). If I were you then I would build my app without compiler optimizations and resend it. Then if Apple approve your app you will know that probably there was some memory alignment issue and you can try to look for it which might not be easy.

Any news here? Did you solve your Problem?