Application crashes sometimes on while using 'Use Photo' on camera.

Originator:mansi.ece06
Number:rdar://19343132 Date Originated:10/31/2014
Status:Open Resolved:
Product:iOS SDK Product Version:8.x
Classification: Reproducible:Yes
 
{
      "CrashReportVersion" : "2.1",
      "SignalId" : 11,
      "MessageType" : "CrashReport",
      "DeviceModel" : "iPad2,2",
      "SignalDescription" : "SIGSEGV - segmentation violation",
      "NetworkStatus" : "WiFi",
      "TimeStamp" : "2014-10-31 15:20:07:811",
      "DeviceOS" : "iPhone OS Version 8.0.2 (Build 12A405)"
    },
    {
      "StackTrace" : [
        "#0  App                                 0X003D89EB +[Logging signalHandler:]",
        "#1  App                                 0X003B6385 -[NSURL portByScheme]",
        "#2  libsystem_platform.dylib            0X360830A3 _sigtramp()",
        "#3  Foundation                          0X28BCE5E9 __NSFireDelayedPerform()",
        "#4  CoreFoundation                      0X27E91737 <redacted>()",
        "#5  CoreFoundation                      0X27E912B9 <redacted>()",
        "#6  CoreFoundation                      0X27E8F523 <redacted>()",
        "#7  CoreFoundation                      0X27DDCDB1 CFRunLoopRunSpecific()",
        "#8  CoreFoundation                      0X27DDCBC3 CFRunLoopRunInMode()",
        "#9  GraphicsServices                    0X2F120051 GSEventRunModal()",
        "#10 UIKit                               0X2B3A8A31 UIApplicationMain()",
        "#11 App                                 0X0008AE63 -[AppDelegate openMessage]",
        "#12 libdyld.dylib                       0X35F43AAF <redacted>()"
      ]
    },

This crash can be reproduced while using 'Use Photo' on camera (using UIImagePickerController). Steps to reproduce:
- Open the camera to take a picture.
- With 2 finger pinch zoom for the slider to show up.
- Take a picture.
- Tap 'Use Photo'.

App crashes with "[PLImagePickerCameraView didHideZoomSlider:]: message sent to deallocated instance".

Comments

The device logs for the above crash:

ast Exception Backtrace: 0 CoreFoundation 0x2a0d55f2 _exceptionPreprocess + 122 1 libobjc.A.dylib 0x37c23c72 objcexception_throw + 34 2 CoreFoundation 0x2a0daab8 -[NSObject(NSObject) doesNotRecognizeSelector:] + 184 3 CoreFoundation 0x2a0d8994 forwarding + 708 4 CoreFoundation 0x2a009b84 CFforwarding_prep_0 + 20 5 Foundation 0x2addddc4 NSFireDelayedPerform + 464 6 CoreFoundation 0x2a09bf02 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 10 7 CoreFoundation 0x2a09ba84 CFRunLoopDoTimer + 652 8 CoreFoundation 0x2a099cee CFRunLoopRun + 1414 9 CoreFoundation 0x29fe6b2c CFRunLoopRunSpecific + 472 10 CoreFoundation 0x29fe693e CFRunLoopRunInMode + 102 11 GraphicsServices 0x3139d04c GSEventRunModal + 132 12 UIKit 0x2d5dc6ec UIApplicationMain + 1436 13 Ambulatory 0x000838a6 0x7d000 + 26790 14 libdyld.dylib 0x381bfaaa tlv_initializer + 2

Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 libsystem_kernel.dylib 0x38284dfc _pthreadkill + 8 1 libsystem_pthread.dylib 0x38304d0e pthread_kill + 58 2 libsystem_c.dylib 0x38224934 abort + 72 3 libc++abi.dylib 0x37432bb8 abort_message + 84 4 libc++abi.dylib 0x37449e30 std::terminate(void (*)()) + 144 5 libc++abi.dylib 0x374498b4 cxa_rethrow + 96 6 libobjc.A.dylib 0x37c23dba objc_exception_rethrow + 38 7 CoreFoundation 0x29fe6bc8 CFRunLoopRunSpecific + 628 8 CoreFoundation 0x29fe693e CFRunLoopRunInMode + 102 9 GraphicsServices 0x3139d04c GSEventRunModal + 132 10 UIKit 0x2d5dc6ec UIApplicationMain + 1436 11 Ambulatory 0x000838a6 0x7d000 + 26790 12 libdyld.dylib 0x381bfaac start + 0

Thread 1 name: Dispatch queue: com.apple.libdispatch-manager Thread 1: 0 libsystem_kernel.dylib 0x382712c8 kevent64 + 24 1 libdispatch.dylib 0x38193e44 dispatchmgr_invoke + 276 2 libdispatch.dylib 0x38193b76 dispatchmgr_thread$VARIANT$mp + 34

Thread 2 name: WebThread Thread 2: 0 libsystem_kernel.dylib 0x38271518 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x3827130c mach_msg + 36 2 CoreFoundation 0x2a09b596 CFRunLoopServiceMachPort + 142 3 CoreFoundation 0x2a099b5c CFRunLoopRun + 1012 4 CoreFoundation 0x29fe6b2c CFRunLoopRunSpecific + 472 5 CoreFoundation 0x29fe693e CFRunLoopRunInMode + 102 6 WebCore 0x3560ec7c RunWebThread(void*) + 412 7 libsystem_pthread.dylib 0x38303e64 pthreadbody + 136 8 libsystem_pthread.dylib 0x38303dd6 pthreadstart + 114 9 libsystem_pthread.dylib 0x38301b80 thread_start + 4

Thread 3 name: com.apple.NSURLConnectionLoader Thread 3: 0 libsystem_kernel.dylib 0x38271518 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x3827130c mach_msg + 36 2 CoreFoundation 0x2a09b596 CFRunLoopServiceMachPort + 142 3 CoreFoundation 0x2a099b5c CFRunLoopRun + 1012 4 CoreFoundation 0x29fe6b2c CFRunLoopRunSpecific + 472 5 CoreFoundation 0x29fe693e CFRunLoopRunInMode + 102 6 CFNetwork 0x29b9b78a +[NSURLConnection(Loader) resourceLoadLoop:] + 482 7 Foundation 0x2ade8996 _NSThreadmain + 1114 8 libsystem_pthread.dylib 0x38303e64 pthreadbody + 136 9 libsystem_pthread.dylib 0x38303dd6 pthreadstart + 114 10 libsystem_pthread.dylib 0x38301b80 thread_start + 4

Thread 4 name: com.apple.CFSocket.private Thread 4: 0 libsystem_kernel.dylib 0x3828508c select + 20 1 CoreFoundation 0x2a09fd1e CFSocketManager + 486 2 libsystem_pthread.dylib 0x38303e64 pthreadbody + 136 3 libsystem_pthread.dylib 0x38303dd6 pthreadstart + 114 4 libsystem_pthread.dylib 0x38301b80 thread_start + 4

Thread 5 name: JavaScriptCore::BlockFree Thread 5: 0 libsystem_kernel.dylib 0x38284b38 _psynchcvwait + 24 1 libsystem_pthread.dylib 0x383033dc pthreadcond_wait + 516 2 libsystem_pthread.dylib 0x383042ac pthread_cond_wait + 36 3 libc++.1.dylib 0x373ecfa4 std::__1::condition_variable::wait(std::__1::unique_lock&) + 32 4 JavaScriptCore 0x2b2a9f96 JSC::BlockAllocator::blockFreeingThreadMain() + 210 5 JavaScriptCore 0x2b2a644c WTF::wtfThreadEntryPoint(void*) + 12 6 libsystem_pthread.dylib 0x38303e64 pthreadbody + 136 7 libsystem_pthread.dylib 0x38303dd6 pthreadstart + 114 8 libsystem_pthread.dylib 0x38301b80 thread_start + 4

Thread 6 name: JavaScriptCore::Marking Thread 6: 0 libsystem_kernel.dylib 0x38284b38 _psynchcvwait + 24 1 libsystem_pthread.dylib 0x383033dc pthreadcond_wait + 516 2 libsystem_pthread.dylib 0x383042ac pthread_cond_wait + 36 3 libc++.1.dylib 0x373ecfa4 std::__1::condition_variable::wait(std::__1::unique_lock&) + 32 4 JavaScriptCore 0x2b46eb60 JSC::GCThread::waitForNextPhase() + 100 5 JavaScriptCore 0x2b46ebc4 JSC::GCThread::gcThreadMain() + 48 6 JavaScriptCore 0x2b2a644c WTF::wtfThreadEntryPoint(void*) + 12 7 libsystem_pthread.dylib 0x38303e64 pthreadbody + 136 8 libsystem_pthread.dylib 0x38303dd6 pthreadstart + 114 9 libsystem_pthread.dylib 0x38301b80 thread_start + 4

Thread 7 name: WebCore: CFNetwork Loader Thread 7: 0 libsystem_kernel.dylib 0x38271518 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x3827130c mach_msg + 36 2 CoreFoundation 0x2a09b596 CFRunLoopServiceMachPort + 142 3 CoreFoundation 0x2a099b5c CFRunLoopRun + 1012 4 CoreFoundation 0x29fe6b2c CFRunLoopRunSpecific + 472 5 CoreFoundation 0x29fe693e CFRunLoopRunInMode + 102 6 WebCore 0x35637f88 WebCore::runLoaderThread(void) + 288 7 JavaScriptCore 0x2b2a644c WTF::wtfThreadEntryPoint(void) + 12 8 libsystem_pthread.dylib 0x38303e64 pthreadbody + 136 9 libsystem_pthread.dylib 0x38303dd6 pthreadstart + 114 10 libsystem_pthread.dylib 0x38301b80 thread_start + 4

Thread 8: 0 libsystem_kernel.dylib 0x38284b38 _psynchcvwait + 24 1 libsystem_pthread.dylib 0x383033dc pthreadcond_wait + 516 2 libsystem_pthread.dylib 0x383042ac pthread_cond_wait + 36 3 Foundation 0x2ad6e41a -[NSCondition wait] + 190 4 Ambulatory 0x000a0cd0 0x7d000 + 146640 5 Foundation 0x2ade8996 __NSThreadmain + 1114 6 libsystem_pthread.dylib 0x38303e64 pthreadbody + 136 7 libsystem_pthread.dylib 0x38303dd6 pthreadstart + 114 8 libsystem_pthread.dylib 0x38301b80 thread_start + 4

Thread 9 name: AVAudioSession Notify Thread Thread 9: 0 libsystem_kernel.dylib 0x38271518 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x3827130c mach_msg + 36 2 CoreFoundation 0x2a09b596 CFRunLoopServiceMachPort + 142 3 CoreFoundation 0x2a099b5c CFRunLoopRun + 1012 4 CoreFoundation 0x29fe6b2c CFRunLoopRunSpecific + 472 5 CoreFoundation 0x29fe693e CFRunLoopRunInMode + 102 6 libAVFAudio.dylib 0x28d0a3e8 GenericRunLoopThread::Entry(void) + 128 7 libAVFAudio.dylib 0x28cfc8e4 CAPThread::Entry(CAPThread) + 192 8 libsystem_pthread.dylib 0x38303e64 pthreadbody + 136 9 libsystem_pthread.dylib 0x38303dd6 pthreadstart + 114 10 libsystem_pthread.dylib 0x38301b80 thread_start + 4

Thread 10 name: com.apple.coreaudio.AQClient Thread 10: 0 libsystem_kernel.dylib 0x38271518 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x3827130c mach_msg + 36 2 CoreFoundation 0x2a09b596 CFRunLoopServiceMachPort + 142 3 CoreFoundation 0x2a099b5c CFRunLoopRun + 1012 4 CoreFoundation 0x29fe6b2c CFRunLoopRunSpecific + 472 5 CoreFoundation 0x29fe693e CFRunLoopRunInMode + 102 6 AudioToolbox 0x297a37a0 GenericRunLoopThread::Entry(void) + 128 7 AudioToolbox 0x2978ba02 CAPThread::Entry(CAPThread) + 206 8 libsystem_pthread.dylib 0x38303e64 pthreadbody + 136 9 libsystem_pthread.dylib 0x38303dd6 pthreadstart + 114 10 libsystem_pthread.dylib 0x38301b80 thread_start + 4

Thread 11 name: AFNetworking Thread 11: 0 libsystem_kernel.dylib 0x38271518 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x3827130c mach_msg + 36 2 CoreFoundation 0x2a09b596 __CFRunLoopServiceMachPort + 142 3 CoreFoundation 0x2a099b5c CFRunLoopRun + 1012 4 CoreFoundation 0x29fe6b2c CFRunLoopRunSpecific + 472 5 CoreFoundation 0x29fe693e CFRunLoopRunInMode + 102 6 Foundation 0x2ad2394c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 260 7 Foundation 0x2ad71dc0 -[NSRunLoop(NSRunLoop) run] + 76 8 Ambulatory 0x0053b4de 0x7d000 + 4973790 9 Foundation 0x2ade8996 NSThreadmain + 1114 10 libsystem_pthread.dylib 0x38303e64 pthreadbody + 136 11 libsystem_pthread.dylib 0x38303dd6 pthreadstart + 114 12 libsystem_pthread.dylib 0x38301b80 thread_start + 4

Thread 12 name: com.apple.coremedia.player.async Thread 12: 0 libsystem_kernel.dylib 0x38271568 semaphore_wait_trap + 8 1 libdispatch.dylib 0x381914e6 dispatchsemaphore_wait_slow + 186 2 MediaToolbox 0x2ba9efce fpa_AsyncMovieControlThread + 1962 3 CoreMedia 0x2a841c74 figThreadMain + 184 4 libsystem_pthread.dylib 0x38303e64 pthreadbody + 136 5 libsystem_pthread.dylib 0x38303dd6 pthreadstart + 114 6 libsystem_pthread.dylib 0x38301b80 thread_start + 4

Thread 13: 0 libsystem_kernel.dylib 0x382859cc _workqkernreturn + 8 1 libsystem_pthread.dylib 0x38301e9c pthreadwqthread + 788 2 libsystem_pthread.dylib 0x38301b74 start_wqthread + 4

Thread 14: 0 libsystem_kernel.dylib 0x382859cc _workqkernreturn + 8 1 libsystem_pthread.dylib 0x38301e9c pthreadwqthread + 788 2 libsystem_pthread.dylib 0x38301b74 start_wqthread + 4

Thread 15: 0 libsystem_kernel.dylib 0x382859cc _workqkernreturn + 8 1 libsystem_pthread.dylib 0x38301e9c pthreadwqthread + 788 2 libsystem_pthread.dylib 0x38301b74 start_wqthread + 4

Thread 16: 0 libsystem_kernel.dylib 0x382859cc _workqkernreturn + 8 1 libsystem_pthread.dylib 0x38301e9c pthreadwqthread + 788 2 libsystem_pthread.dylib 0x38301b74 start_wqthread + 4

Thread 17: 0 libsystem_kernel.dylib 0x382859cc _workqkernreturn + 8 1 libsystem_pthread.dylib 0x38301e9c pthreadwqthread + 788 2 libsystem_pthread.dylib 0x38301b74 start_wqthread + 4

Thread 18: 0 libsystem_kernel.dylib 0x382859cc _workqkernreturn + 8 1 libsystem_pthread.dylib 0x38301e9c pthreadwqthread + 788 2 libsystem_pthread.dylib 0x38301b74 start_wqthread + 4

Thread 0 crashed with ARM Thread State (32-bit): r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x0000006e r4: 0x00000006 r5: 0x3a9c29dc r6: 0x3a9ae840 r7: 0x019508b4 r8: 0x18a40830 r9: 0x04004041 r10: 0x1d9748a0 r11: 0x18a40854 ip: 0x00000148 sp: 0x019508a8 lr: 0x38304d13 pc: 0x38284dfc cpsr: 0x00000010


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!