ios - App quits unexpectedly but run smoothly when connected with xcode -
i facing strange error, app crashes @ once in start after disconnecting xcode when run app xcode connected works fine. device log is
incident identifier: 1c4813 crashreporter key: c3535f303c4f4448be66e3cdefaf61a1b63074ca hardware model: ipad2,1 process: depilex [1295] path: /var/mobile/applications/22ca706f-5055-47ae-8f7c-a3a1558af6c1/depilex.app/depilex identifier: com.arr.depilex version: 1.2 (1.2) code type: arm (native) parent process: launchd [1] date/time: 2014-09-19 16:34:54.972 +0500 os version: ios 7.1 (11d167) report version: 104 exception type: 00000020 exception codes: 0x000000008badf00d highlighted thread: 0 application specific information: com.arr.depilex failed launch in time elapsed total cpu time (seconds): 4.100 (user 4.100, system 0.000), 6% cpu elapsed application cpu time (seconds): 1.121, 2% cpu thread 0: 0 libsystem_kernel.dylib 0x3953eaa8 semaphore_wait_trap + 8 1 libdispatch.dylib 0x3947e23c _dispatch_semaphore_wait_slow + 172 2 cfnetwork 0x2e06a8c8 cfurlconnectionsendsynchronousrequest + 264 3 foundation 0x2ee3d51e +[nsurlconnection sendsynchronousrequest:returningresponse:error:] + 110 4 foundation 0x2ee0d666 -[nsdata(nsdata) initwithcontentsofurl:] + 182 5 foundation 0x2ee0d596 +[nsdata(nsdata) datawithcontentsofurl:] + 38 6 depilex 0x0012c09a -[controller slideimagesbystk] (controller.m:141) 7 depilex 0x0012b27a -[controller viewdidload] (controller.m:64) 8 uikit 0x30ccc4c6 -[uiviewcontroller loadviewifrequired] + 514 9 uikit 0x30d76bfc -[uinavigationcontroller _layoutviewcontroller:] + 28 10 uikit 0x30d76b12 -[uinavigationcontroller _updatescrollviewfromviewcontroller:toviewcontroller:] + 226 11 uikit 0x30d760ee -[uinavigationcontroller _starttransition:fromviewcontroller:toviewcontroller:] + 74 12 uikit 0x30d75e18 -[uinavigationcontroller _startdeferredtransitionifneeded:] + 568 13 uikit 0x30d75b88 -[uinavigationcontroller __viewwilllayoutsubviews] + 40 14 uikit 0x30d75b20 -[uilayoutcontainerview layoutsubviews] + 180 15 uikit 0x30cc7d74 -[uiview(calayerdelegate) layoutsublayersoflayer:] + 376 16 quartzcore 0x30945626 -[calayer layoutsublayers] + 138 17 quartzcore 0x30940e36 ca::layer::layout_if_needed(ca::transaction*) + 346 18 quartzcore 0x3096fcd8 -[calayer layoutifneeded] + 136 19 uikit 0x30d4417e -[uiviewcontroller window:setupwithinterfaceorientation:] + 238 20 uikit 0x30d4279e -[uiwindow _setrotatableclient:toorientation:updatestatusbar:duration:force:isrotating:] + 3494 21 uikit 0x30d419ee -[uiwindow _setrotatableclient:toorientation:updatestatusbar:duration:force:] + 42 22 uikit 0x30d41976 -[uiwindow _setrotatablevieworientation:updatestatusbar:duration:force:] + 90 23 uikit 0x30d4190e -[uiwindow _setrotatablevieworientation:duration:force:] + 38 24 uikit 0x30d39f84 __57-[uiwindow _updatetointerfaceorientation:duration:force:]_block_invoke + 104 25 uikit 0x30cce124 -[uiwindow _updatetointerfaceorientation:duration:force:] + 380 26 uikit 0x30d4165c -[uiwindow setautorotates:forceupdateinterfaceorientation:] + 692 27 uikit 0x30d41120 -[uiviewcontroller _trybecomerootviewcontrollerinwindow:] + 160 28 uikit 0x30cd3060 -[uiwindow addrootviewcontrollerviewifpossible] + 456 29 uikit 0x30cd0842 -[uiwindow _sethidden:forced:] + 298 30 uikit 0x30d3a358 -[uiwindow makekeyandvisible] + 56 31 depilex 0x000938f4 -[appdelegate application:didfinishlaunchingwithoptions:] (appdelegate.m:48) 32 uikit 0x30d375a2 -[uiapplication _handledelegatecallbackswithoptions:issuspended:restorestate:] + 270 33 uikit 0x30d36ef6 -[uiapplication _callinitializationdelegatesforurl:payload:suspended:] + 1606 34 uikit 0x30d31586 -[uiapplication _runwithurl:payload:launchorientation:statusbarstyle:statusbarhidden:] + 710 35 uikit 0x30ccd704 -[uiapplication handleevent:withnewevent:] + 3536 36 uikit 0x30ccc86c -[uiapplication sendevent:] + 68 37 uikit 0x30d30cc4 _uiapplicationhandleevent + 612 38 graphicsservices 0x332daaea _purpleeventcallback + 606 39 graphicsservices 0x332da6d2 purpleeventcallback + 30 40 corefoundation 0x2e476ab4 __cfrunloop_is_calling_out_to_a_source1_perform_function__ + 32 41 corefoundation 0x2e476a4e __cfrunloopdosource1 + 342 42 corefoundation 0x2e475222 __cfrunlooprun + 1394 43 corefoundation 0x2e3dff4a cfrunlooprunspecific + 518 44 corefoundation 0x2e3dfd2e cfrunloopruninmode + 102 45 uikit 0x30d2feec -[uiapplication _run] + 756 46 uikit 0x30d2b168 uiapplicationmain + 1132 47 depilex 0x000e9678 main (main.m:16) 48 libdyld.dylib 0x3949bab4 start + 0 thread 1: 0 libsystem_kernel.dylib 0x3953e808 kevent64 + 24 1 libdispatch.dylib 0x39480078 _dispatch_mgr_invoke + 228 2 libdispatch.dylib 0x3947fdfe _dispatch_mgr_thread$variant$mp + 34 thread 2: 0 libsystem_kernel.dylib 0x39551c70 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x395b8bda _pthread_wqthread + 306 2 libsystem_pthread.dylib 0x395b8a94 start_wqthread + 4 thread 3: 0 libsystem_kernel.dylib 0x39551c70 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x395b8bda _pthread_wqthread + 306 2 libsystem_pthread.dylib 0x395b8a94 start_wqthread + 4 thread 4 name: com.apple.nsurlconnectionloader thread 4: 0 libsystem_kernel.dylib 0x3953ea58 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x3953e854 mach_msg + 44 2 corefoundation 0x2e476896 __cfrunloopservicemachport + 150 3 corefoundation 0x2e474fbc __cfrunlooprun + 780 4 corefoundation 0x2e3dff4a cfrunlooprunspecific + 518 5 corefoundation 0x2e3dfd2e cfrunloopruninmode + 102 6 foundation 0x2ee1f082 +[nsurlconnection(loader) _resourceloadloop:] + 314 7 foundation 0x2ee94a5a __nsthread__main__ + 1058 8 libsystem_pthread.dylib 0x395ba916 _pthread_body + 138 9 libsystem_pthread.dylib 0x395ba886 _pthread_start + 98 10 libsystem_pthread.dylib 0x395b8aa0 thread_start + 4 thread 5 name: com.apple.cfsocket.private thread 5: 0 libsystem_kernel.dylib 0x39551434 __select + 20 1 corefoundation 0x2e47a758 __cfsocketmanager + 480 2 libsystem_pthread.dylib 0x395ba916 _pthread_body + 138 3 libsystem_pthread.dylib 0x395ba886 _pthread_start + 98 4 libsystem_pthread.dylib 0x395b8aa0 thread_start + 4 thread 6: 0 libsystem_kernel.dylib 0x39551c70 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x395b8bda _pthread_wqthread + 306 2 libsystem_pthread.dylib 0x395b8a94 start_wqthread + 4 thread 7: 0 libsystem_kernel.dylib 0x39551c70 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x395b8bda _pthread_wqthread + 306 2 libsystem_pthread.dylib 0x395b8a94 start_wqthread + 4 no thread state (register information) available binary images: 0x72000 - 0x1a9fff depilex armv7 <fef57930a219369daa2723b873d1815f> /var/mobile/applications/22ca706f-5055-47ae-8f7c-a3a1558af6c1/depilex.app/depilex
this happens when spend time in appdelegate's application:didfinishlaunching method. if set-up work (loading files, maybe downloading or uploading something) must on background thread , not block application:didfinishlaunching.
the crash log tells ('com.arr.depilex failed launch in time'), , tells what's apparently taking long ('0x2ee3d51e +[nsurlconnection sendsynchronousrequest:returningresponse:error:] + 110').
Comments
Post a Comment