objective c - iOS app crash only if run from instrument (Automation) -



app not crash on device. no leaks no memory warning. living happily. doing ui testing instrument(automation). boom boom. app crashes after using 8 min. looping around 30 times. , keep crashing after different durations @ same step. again no leaks no memory warning. again not crash on device(without instrument) doesn't matter how long use app.

+ every times crashes after pop specific viewcontroller. , view controller loaded stuffs (image view, playing , recording audio, take photo album , camera) here device log.

any kind of highly appreciated.

incident identifier:  crashreporter key:    hardware model:      iphone5,2 process:         app [15196] path:             identifier:      app version:         ??? (???) code type:       arm (native) parent process:  launchd [1]  date/time:       2013-08-16 12:48:10.814 +0200 os version:      ios 6.1.3 (10b329) report version:  104  exception type:  exc_bad_access (sigsegv) exception codes: kern_invalid_address @ 0x1208b319 crashed thread:  6  thread 0 name:  dispatch queue: com.apple.main-thread thread 0: 0   libsystem_kernel.dylib          0x39be3e30 mach_msg_trap + 20 1   libsystem_kernel.dylib          0x39be3fd0 mach_msg + 48 2   corefoundation                  0x319da2b6 __cfrunloopservicemachport + 126 3   corefoundation                  0x319d8fd6 __cfrunlooprun + 814 4   corefoundation                  0x3194c238 cfrunlooprunspecific + 352 5   corefoundation                  0x3194c0c4 cfrunloopruninmode + 100 6   graphicsservices                0x3552b336 gseventrunmodal + 70 7   uikit                           0x338682b4 uiapplicationmain + 1116 8   myapp                       0x0000531e 0x3000 + 8990 9   myapp                       0x000052d4 0x3000 + 8916  thread 1 name:  dispatch queue: com.apple.libdispatch-manager thread 1: 0   libsystem_kernel.dylib          0x39be45d0 kevent64 + 24 1   libdispatch.dylib               0x39b1fd22 _dispatch_mgr_invoke + 806 2   libdispatch.dylib               0x39b1b374 _dispatch_mgr_thread + 32  thread 2 name:  webthread thread 2: 0   libsystem_kernel.dylib          0x39be3e30 mach_msg_trap + 20 1   libsystem_kernel.dylib          0x39be3fd0 mach_msg + 48 2   corefoundation                  0x319da2b6 __cfrunloopservicemachport + 126 3   corefoundation                  0x319d902c __cfrunlooprun + 900 4   corefoundation                  0x3194c238 cfrunlooprunspecific + 352 5   corefoundation                  0x3194c0c4 cfrunloopruninmode + 100 6   webcore                         0x37954390 runwebthread(void*) + 440 7   libsystem_c.dylib               0x39b4d0de _pthread_start + 306 8   libsystem_c.dylib               0x39b4cfa4 thread_start + 4  thread 3: 0   libsystem_kernel.dylib          0x39be3e30 mach_msg_trap + 20 1   libsystem_kernel.dylib          0x39be3fd0 mach_msg + 48 2   corefoundation                  0x319da2b6 __cfrunloopservicemachport + 126 3   corefoundation                  0x319d902c __cfrunlooprun + 900 4   corefoundation                  0x3194c238 cfrunlooprunspecific + 352 5   corefoundation                  0x3194c0c4 cfrunloopruninmode + 100 6   foundation                      0x322705be -[nsrunloop(nsrunloop) runmode:beforedate:]     + 250 7   myapp                       0x00020b0a 0x3000 + 121610 8   foundation                      0x3231d22c __nsthread__main__ + 968 9   libsystem_c.dylib               0x39b4d0de _pthread_start + 306 10  libsystem_c.dylib               0x39b4cfa4 thread_start + 4  thread 4 name:  com.apple.nsurlconnectionloader thread 4: 0   libsystem_kernel.dylib          0x39be3e30 mach_msg_trap + 20 1   libsystem_kernel.dylib          0x39be3fd0 mach_msg + 48 2   corefoundation                  0x319da2b6 __cfrunloopservicemachport + 126 3   corefoundation                  0x319d902c __cfrunlooprun + 900 4   corefoundation                  0x3194c238 cfrunlooprunspecific + 352 5   corefoundation                  0x3194c0c4 cfrunloopruninmode + 100 6   foundation                      0x32299888 +[nsurlconnection(loader)     _resourceloadloop:] + 304 7   foundation                      0x3231d22c __nsthread__main__ + 968 8   libsystem_c.dylib               0x39b4d0de _pthread_start + 306 9   libsystem_c.dylib               0x39b4cfa4 thread_start + 4  thread 5 name:  com.apple.cfsocket.private thread 5: 0   libsystem_kernel.dylib          0x39bf4594 __select + 20 1   corefoundation                  0x319de474 __cfsocketmanager + 676 2   libsystem_c.dylib               0x39b4d0de _pthread_start + 306 3   libsystem_c.dylib               0x39b4cfa4 thread_start + 4  thread 6 crashed: 0   foundation                      0x3231d692 __nsfinalizethreaddata + 122 1   corefoundation                  0x319d6212 __cftsdfinalize + 62 2   libsystem_c.dylib               0x39b3feb8 _pthread_tsd_cleanup + 172 3   libsystem_c.dylib               0x39b3fb8e _pthread_exit + 114 4   libsystem_c.dylib               0x39b42ade _pthread_workq_return + 22 5   libsystem_c.dylib               0x39b427f2 _pthread_wqthread + 362 6   libsystem_c.dylib               0x39b42680 start_wqthread + 4  thread 7: 0   libsystem_kernel.dylib          0x39bf4d98 __workq_kernreturn + 8 1   libsystem_c.dylib               0x39b42ad6 _pthread_workq_return + 14 2   libsystem_c.dylib               0x39b427f2 _pthread_wqthread + 362 3   libsystem_c.dylib               0x39b42680 start_wqthread + 4  thread 8: 0   libsystem_kernel.dylib          0x39bf4d98 __workq_kernreturn + 8 1   libsystem_c.dylib               0x39b42ad6 _pthread_workq_return + 14 2   libsystem_c.dylib               0x39b427f2 _pthread_wqthread + 362 3   libsystem_c.dylib               0x39b42680 start_wqthread + 4  thread 9 name:  auremoteio::iothread thread 9: 0   libsystem_kernel.dylib          0x39be3e30 mach_msg_trap + 20 1   libsystem_kernel.dylib          0x39be3fd0 mach_msg + 48 2   audiotoolbox                    0x314cdc80 auremoteio::iothread::run() + 104 3   audiotoolbox                    0x314d000c auremoteio::iothread::entry(void*) + 4 4   audiotoolbox                    0x3140d9f2 capthread::entry(capthread*) + 294 5   libsystem_c.dylib               0x39b4d0de _pthread_start + 306 6   libsystem_c.dylib               0x39b4cfa4 thread_start + 4  thread 6 crashed arm thread state (32-bit): r0: 0x0010f522    r1: 0x39700941      r2: 0x39e57e88      r3: 0x1f8dc028 r4: 0x1208b2fd    r5: 0x0000001c      r6: 0x00000000      r7: 0x04af9f18 r8: 0x1f8dc028    r9: 0x007f8014     r10: 0x00000004     r11: 0x00000037 ip: 0x39d4db30    sp: 0x04af9d50      lr: 0x31946eb7      pc: 0x3231d692 cpsr: 0x20000030 

exc_bad_access means sending objective c message invalid memory address. happens because object using has been deallocated.

use nszombieenabled more information. start commenting out stuff. it's memory issue, find offending line of code.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -