1 Reply
      Latest reply on Nov 2, 2016 12:20 PM by xaphod
      xaphod Level 1 Level 1 (0 points)

        Hi iOS ppl,

         

        I am getting quite a few crashes in one of my apps on the store, from PHCoreImageManager. Does anyone have a clue what I might be doing wrong?

         

        *** error for object 0x174222040: pointer being freed was not allocated
        abort() called
        
        # Device: iPhone 6s Plus
        # RAM Free: 3.9%
        # Disk Free: 22.2%
        
        
        #19. Crashed: PLPreheatItem
        0  libsystem_kernel.dylib         0x18acfe014 __pthread_kill + 8
        1  libsystem_pthread.dylib        0x18adc6450 pthread_kill + 112
        2  libsystem_c.dylib              0x18ac723e0 abort + 140
        3  libsystem_malloc.dylib         0x18ad3495c szone_size + 658
        4  CoreFoundation                 0x18bd39bd8 __rehashs + 200
        5  Photos                         0x197501540 -[PHCoreImageManager _schedulePurgeForCPLPrefetching:domain:onMainQueue:didCancelHandler:] + 160
        6  Photos                         0x1975017c0 -[PHCoreImageManager _cancelAndFlushPreheatWithAsset:preheatItem:domain:operation:didCancelHandler:] + 268
        7  Photos                         0x197501e90 -[PHCoreImageManager _cancelAndFlushPreheatWithAsset:format:CPLPrefetching:domain:operation:outPreheatItem:didCancelHandler:] + 176
        8  Photos                         0x1975211dc __84-[PHCachingImageManager startCachingImagesForAssets:targetSize:contentMode:options:]_block_invoke.1799 + 1264
        9  Photos                         0x197522280 __84-[PHCachingImageManager startCachingImagesForAssets:targetSize:contentMode:options:]_block_invoke_2.1835 + 660
        10 Photos                         0x19751d950 __107-[PHCachingImageManager _fireCloudDownloadOfImageForAsset:format:optimalSourcePixelSize:completionHandler:]_block_invoke_3 + 716
        11 PhotoLibraryServices           0x196bf343c __58-[PLPreheatItem startPreheatRequestWithCompletionHandler:]_block_invoke_2.52 + 76
        12 AssetsLibraryServices          0x1962b5e2c __pl_dispatch_async_block_invoke + 36
        13 libdispatch.dylib              0x18abb9200 _dispatch_call_block_and_release + 24
        14 libdispatch.dylib              0x18abb91c0 _dispatch_client_callout + 16
        15 libdispatch.dylib              0x18abc7444 _dispatch_queue_serial_drain + 928
        16 libdispatch.dylib              0x18abbc9a8 _dispatch_queue_invoke + 652
        17 libdispatch.dylib              0x18abc938c _dispatch_root_queue_drain + 572
        18 libdispatch.dylib              0x18abc90ec _dispatch_worker_thread3 + 124
        19 libsystem_pthread.dylib        0x18adc22b8 _pthread_wqthread + 1288
        20 libsystem_pthread.dylib        0x18adc1da4 start_wqthread + 4
        
        
        --
        
        
        #0. com.apple.main-thread
        0  libsystem_kernel.dylib         0x18ace016c mach_msg_trap + 8
        1  libsystem_kernel.dylib         0x18acdffdc mach_msg + 72
        2  CoreFoundation                 0x18bcdbcec __CFRunLoopServiceMachPort + 192
        3  CoreFoundation                 0x18bcd9908 __CFRunLoopRun + 1132
        4  CoreFoundation                 0x18bc08048 CFRunLoopRunSpecific + 444
        5  GraphicsServices               0x18d68e198 GSEventRunModal + 180
        6  UIKit                          0x191bf32fc -[UIApplication _run] + 684
        7  UIKit                          0x191bee034 UIApplicationMain + 208
        8  Photobooth                     0x100131f28 main (main.m:20)
        9  libdispatch.dylib              0x18abec5b8 (Missing)
        
        
        #1. com.apple.uikit.eventfetch-thread
        0  libsystem_kernel.dylib         0x18ace016c mach_msg_trap + 8
        1  libsystem_kernel.dylib         0x18acdffdc mach_msg + 72
        2  CoreFoundation                 0x18bcdbcec __CFRunLoopServiceMachPort + 192
        3  CoreFoundation                 0x18bcd9908 __CFRunLoopRun + 1132
        4  CoreFoundation                 0x18bc08048 CFRunLoopRunSpecific + 444
        5  Foundation                     0x18c719a8c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
        6  Foundation                     0x18c73a57c -[NSRunLoop(NSRunLoop) runUntilDate:] + 96
        7  UIKit                          0x192568a2c -[UIEventFetcher threadMain] + 136
        8  Foundation                     0x18c81747c __NSThread__start__ + 1024
        9  libsystem_pthread.dylib        0x18adc4850 _pthread_body + 240
        10 libsystem_pthread.dylib        0x18adc4760 _pthread_body + 282
        11 libsystem_pthread.dylib        0x18adc1dac thread_start + 4
        
        
        #2. com.apple.coremedia.jpegdecodesession.executionqueue
        0  libsystem_kernel.dylib         0x18ace01a8 semaphore_wait_trap + 8
        1  libdispatch.dylib              0x18abcb7ec _dispatch_semaphore_wait_slow + 216
        2  MediaToolbox                   0x192edd214 fjds_convertAndScalePixelBuffer + 348
        3  MediaToolbox                   0x192edb864 fjds_createPixelBufferFromJPEGDataAsync + 1396
        4  MediaToolbox                   0x192edbc9c __FigPhotoJPEGDecodeSessionDecodeDataToCGImageAsynchronously_block_invoke + 100
        5  MediaToolbox                   0x192edded0 __fjds_runRequestBlockAsynchronously_block_invoke.54 + 28
        6  libdispatch.dylib              0x18abb9200 _dispatch_call_block_and_release + 24
        7  libdispatch.dylib              0x18abb91c0 _dispatch_client_callout + 16
        8  libdispatch.dylib              0x18abc6008 _dispatch_continuation_pop + 576
        9  libdispatch.dylib              0x18abc5d8c _dispatch_async_redirect_invoke + 820
        10 libdispatch.dylib              0x18abc938c _dispatch_root_queue_drain + 572
        11 libdispatch.dylib              0x18abc90ec _dispatch_worker_thread3 + 124
        12 libsystem_pthread.dylib        0x18adc22b8 _pthread_wqthread + 1288
        13 libsystem_pthread.dylib        0x18adc1da4 start_wqthread + 4
        
        
        #3. com.apple.coremedia.jpegdecodesession.executionqueue
        0  libsystem_kernel.dylib         0x18ace01a8 semaphore_wait_trap + 8
        1  libdispatch.dylib              0x18abcb7ec _dispatch_semaphore_wait_slow + 216
        2  MediaToolbox                   0x192edb824 fjds_createPixelBufferFromJPEGDataAsync + 1332
        3  MediaToolbox                   0x192edbc9c __FigPhotoJPEGDecodeSessionDecodeDataToCGImageAsynchronously_block_invoke + 100
        4  MediaToolbox                   0x192edded0 __fjds_runRequestBlockAsynchronously_block_invoke.54 + 28
        5  libdispatch.dylib              0x18abb9200 _dispatch_call_block_and_release + 24
        6  libdispatch.dylib              0x18abb91c0 _dispatch_client_callout + 16
        7  libdispatch.dylib              0x18abc6008 _dispatch_continuation_pop + 576
        8  libdispatch.dylib              0x18abc5ccc _dispatch_async_redirect_invoke + 628
        9  libdispatch.dylib              0x18abc938c _dispatch_root_queue_drain + 572
        10 libdispatch.dylib              0x18abc90ec _dispatch_worker_thread3 + 124
        11 libsystem_pthread.dylib        0x18adc22b8 _pthread_wqthread + 1288
        12 libsystem_pthread.dylib        0x18adc1da4 start_wqthread + 4
        
        
        #4. com.twitter.crashlytics.ios.MachExceptionServer
        0  libsystem_kernel.dylib         0x18ace016c mach_msg_trap + 8
        1  libsystem_kernel.dylib         0x18acdffdc mach_msg + 72
        2  Photobooth                     0x10024b350 CLSMachExceptionServer (CLSMachException.c:179)
        3  libsystem_pthread.dylib        0x18adc4850 _pthread_body + 240
        4  libsystem_pthread.dylib        0x18adc4760 _pthread_body + 282
        5  libsystem_pthread.dylib        0x18adc1dac thread_start + 4
        
        
        #5. com.apple.NSURLConnectionLoader
        0  libsystem_kernel.dylib         0x18ace016c mach_msg_trap + 8
        1  libsystem_kernel.dylib         0x18acdffdc mach_msg + 72
        2  CoreFoundation                 0x18bcdbcec __CFRunLoopServiceMachPort + 192
        3  CoreFoundation                 0x18bcd9908 __CFRunLoopRun + 1132
        4  CoreFoundation                 0x18bc08048 CFRunLoopRunSpecific + 444
        5  CFNetwork                      0x18c3f9fd0 +[NSURLConnection(Loader) _resourceLoadLoop:] + 336
        6  Foundation                     0x18c81747c __NSThread__start__ + 1024
        7  libsystem_pthread.dylib        0x18adc4850 _pthread_body + 240
        8  libsystem_pthread.dylib        0x18adc4760 _pthread_body + 282
        9  libsystem_pthread.dylib        0x18adc1dac thread_start + 4
        
        
        #6. com.apple.coremedia.jpegdecodesession.executionqueue
        0  libsystem_kernel.dylib         0x18acfe8e8 __ulock_wait + 8
        1  libsystem_platform.dylib       0x18adbfd48 _os_once_gate_wait_slow + 108
        2  libsystem_pthread.dylib        0x18adc34a0 pthread_once + 64
        3  CoreVideo                      0x18e364f10 CV_CGDataProviderRelease + 36
        4  CoreVideo                      0x18e35c1f4 CVImageBufferCreateColorSpaceFromAttachments + 2608
        5  ************                   0x18e92ae94 VTCreateColorSpacesFromDictionaries + 488
        6  ************                   0x18e8b4aec VTPixelTransferSessionTransferImage + 1796
        7  MediaToolbox                   0x192edd374 fjds_convertAndScalePixelBuffer + 700
        8  MediaToolbox                   0x192edb864 fjds_createPixelBufferFromJPEGDataAsync + 1396
        9  MediaToolbox                   0x192edbc9c __FigPhotoJPEGDecodeSessionDecodeDataToCGImageAsynchronously_block_invoke + 100
        10 MediaToolbox                   0x192edded0 __fjds_runRequestBlockAsynchronously_block_invoke.54 + 28
        11 libdispatch.dylib              0x18abb9200 _dispatch_call_block_and_release + 24
        12 libdispatch.dylib              0x18abb91c0 _dispatch_client_callout + 16
        13 libdispatch.dylib              0x18abc6008 _dispatch_continuation_pop + 576
        14 libdispatch.dylib              0x18abc5ccc _dispatch_async_redirect_invoke + 628
        15 libdispatch.dylib              0x18abc938c _dispatch_root_queue_drain + 572
        16 libdispatch.dylib              0x18abc90ec _dispatch_worker_thread3 + 124
        17 libsystem_pthread.dylib        0x18adc22b8 _pthread_wqthread + 1288
        18 libsystem_pthread.dylib        0x18adc1da4 start_wqthread + 4
        
        
        #7. Thread
        0  libsystem_kernel.dylib         0x18acfea88 __workq_kernreturn + 8
        1  libsystem_pthread.dylib        0x18adc235c _pthread_wqthread + 1452
        2  libsystem_pthread.dylib        0x18adc1da4 start_wqthread + 4
        
        
        #8. Thread
        0  libsystem_pthread.dylib        0x18adc1da0 start_wqthread + 126
        
        
        #9. com.apple.coremedia.jpegdecodesession.executionqueue
        0  libsystem_kernel.dylib         0x18ace016c mach_msg_trap + 8
        1  libsystem_kernel.dylib         0x18acdffdc mach_msg + 72
        2  libxpc.dylib                   0x18ae14fd4 xpc_pipe_routine + 236
        3  libxpc.dylib                   0x18ae07a18 _xpc_interface_routine + 172
        4  libxpc.dylib                   0x18ae0fb28 _xpc_bootstrap_services + 120
        5  libxpc.dylib                   0x18ae03c08 _xpc_dyld_image_callback + 272
        6  HHServices                     0x1007e4bf0 (Missing)
        7  HHServices                     0x1007ee2b4 (Missing)
        8  HHServices                     0x1007e502c (Missing)
        9  HHServices                     0x1007ea64c (Missing)
        10 libdispatch.dylib              0x18abe9d5c (Missing)
        11 CoreVideo                      0x18e364fa4 load_cg_symbols + 28
        12 libsystem_pthread.dylib        0x18adc660c __pthread_once_handler + 80
        13 libsystem_platform.dylib       0x18adbbaec _os_once + 52
        14 libsystem_pthread.dylib        0x18adc34a0 pthread_once + 64
        15 CoreVideo                      0x18e364f10 CV_CGDataProviderRelease + 36
        16 CoreVideo                      0x18e35c1f4 CVImageBufferCreateColorSpaceFromAttachments + 2608
        17 ************                   0x18e92ae94 VTCreateColorSpacesFromDictionaries + 488
        18 ************                   0x18e8b4aec VTPixelTransferSessionTransferImage + 1796
        19 MediaToolbox                   0x192edd374 fjds_convertAndScalePixelBuffer + 700
        20 MediaToolbox                   0x192edb864 fjds_createPixelBufferFromJPEGDataAsync + 1396
        21 MediaToolbox                   0x192edbc9c __FigPhotoJPEGDecodeSessionDecodeDataToCGImageAsynchronously_block_invoke + 100
        22 MediaToolbox                   0x192edded0 __fjds_runRequestBlockAsynchronously_block_invoke.54 + 28
        23 libdispatch.dylib              0x18abb9200 _dispatch_call_block_and_release + 24
        24 libdispatch.dylib              0x18abb91c0 _dispatch_client_callout + 16
        25 libdispatch.dylib              0x18abc6008 _dispatch_continuation_pop + 576
        26 libdispatch.dylib              0x18abc5ccc _dispatch_async_redirect_invoke + 628
        27 libdispatch.dylib              0x18abc938c _dispatch_root_queue_drain + 572
        28 libdispatch.dylib              0x18abc90ec _dispatch_worker_thread3 + 124
        29 libsystem_pthread.dylib        0x18adc22b8 _pthread_wqthread + 1288
        30 libsystem_pthread.dylib        0x18adc1da4 start_wqthread + 4
        
        
        #10. Thread
        0  libsystem_kernel.dylib         0x18acfea88 __workq_kernreturn + 8
        1  libsystem_pthread.dylib        0x18adc235c _pthread_wqthread + 1452
        2  libsystem_pthread.dylib        0x18adc1da4 start_wqthread + 4
        
        
        #11. Thread
        0  libsystem_kernel.dylib         0x18ace01c0 semaphore_timedwait_trap + 8
        1  libdispatch.dylib              0x18abcb784 _dispatch_semaphore_wait_slow + 112
        2  libdispatch.dylib              0x18abca81c _dispatch_worker_thread + 268
        3  libsystem_pthread.dylib        0x18adc4850 _pthread_body + 240
        4  libsystem_pthread.dylib        0x18adc4760 _pthread_body + 282
        5  libsystem_pthread.dylib        0x18adc1dac thread_start + 4
        
        
        #12. Thread
        0  libsystem_kernel.dylib         0x18acfe23c __select + 8
        1  upnpx                          0x100d98304 SocketServer::ReadLoop() (socketserver.cpp:287)
        2  upnpx                          0x100d980bc SocketServer::sReadLoop(void*) (socketserver.cpp:384)
        3  libsystem_pthread.dylib        0x18adc4850 _pthread_body + 240
        4  libsystem_pthread.dylib        0x18adc4760 _pthread_body + 282
        5  libsystem_pthread.dylib        0x18adc1dac thread_start + 4
        
        
        #13. Thread
        0  libsystem_kernel.dylib         0x18acfe314 __semwait_signal + 8
        1  libsystem_c.dylib              0x18ac1c23c nanosleep + 212
        2  libsystem_c.dylib              0x18ac8627c sleep + 44
        3  upnpx                          0x100d9b684 SSDPDB::CacheControlLoop() (ssdpdb.cpp:84)
        4  upnpx                          0x100d9aedc SSDPDB::sCacheControlLoop(void*) (ssdpdb.cpp:295)
        5  libsystem_pthread.dylib        0x18adc4850 _pthread_body + 240
        6  libsystem_pthread.dylib        0x18adc4760 _pthread_body + 282
        7  libsystem_pthread.dylib        0x18adc1dac thread_start + 4
        
        
        #14. Thread
        0  libsystem_kernel.dylib         0x18acfe314 __semwait_signal + 8
        1  libsystem_c.dylib              0x18ac1c23c nanosleep + 212
        2  libsystem_c.dylib              0x18ac8627c sleep + 44
        3  upnpx                          0x100da0494 -[UPnPDB httpThread:] (UPnPDB.m:335)
        4  Foundation                     0x18c81747c __NSThread__start__ + 1024
        5  libsystem_pthread.dylib        0x18adc4850 _pthread_body + 240
        6  libsystem_pthread.dylib        0x18adc4760 _pthread_body + 282
        7  libsystem_pthread.dylib        0x18adc1dac thread_start + 4
        
        
        #15. Thread
        0  libsystem_kernel.dylib         0x18acfe23c __select + 8
        1  upnpx                          0x100d99df8 SSDP::ReadLoop() (ssdp.cpp:351)
        2  upnpx                          0x100d994a0 SSDP::sReadLoop(void*) (ssdp.cpp:453)
        3  libsystem_pthread.dylib        0x18adc4850 _pthread_body + 240
        4  libsystem_pthread.dylib        0x18adc4760 _pthread_body + 282
        5  libsystem_pthread.dylib        0x18adc1dac thread_start + 4
        
        
        #16. Thread
        0  libsystem_kernel.dylib         0x18ace01c0 semaphore_timedwait_trap + 8
        1  libdispatch.dylib              0x18abcb784 _dispatch_semaphore_wait_slow + 112
        2  libdispatch.dylib              0x18abca81c _dispatch_worker_thread + 268
        3  libsystem_pthread.dylib        0x18adc4850 _pthread_body + 240
        4  libsystem_pthread.dylib        0x18adc4760 _pthread_body + 282
        5  libsystem_pthread.dylib        0x18adc1dac thread_start + 4
        
        
        #17. Thread
        0  libsystem_pthread.dylib        0x18adc1da0 start_wqthread + 126
        
        
        #18. Thread
        0  libsystem_kernel.dylib         0x18acfea88 __workq_kernreturn + 8
        1  libsystem_pthread.dylib        0x18adc235c _pthread_wqthread + 1452
        2  libsystem_pthread.dylib        0x18adc1da4 start_wqthread + 4
        
        
        #19. Crashed: PLPreheatItem
        0  libsystem_kernel.dylib         0x18acfe014 __pthread_kill + 8
        1  libsystem_pthread.dylib        0x18adc6450 pthread_kill + 112
        2  libsystem_c.dylib              0x18ac723e0 abort + 140
        3  libsystem_malloc.dylib         0x18ad3495c szone_size + 658
        4  CoreFoundation                 0x18bd39bd8 __rehashs + 200
        5  Photos                         0x197501540 -[PHCoreImageManager _schedulePurgeForCPLPrefetching:domain:onMainQueue:didCancelHandler:] + 160
        6  Photos                         0x1975017c0 -[PHCoreImageManager _cancelAndFlushPreheatWithAsset:preheatItem:domain:operation:didCancelHandler:] + 268
        7  Photos                         0x197501e90 -[PHCoreImageManager _cancelAndFlushPreheatWithAsset:format:CPLPrefetching:domain:operation:outPreheatItem:didCancelHandler:] + 176
        8  Photos                         0x1975211dc __84-[PHCachingImageManager startCachingImagesForAssets:targetSize:contentMode:options:]_block_invoke.1799 + 1264
        9  Photos                         0x197522280 __84-[PHCachingImageManager startCachingImagesForAssets:targetSize:contentMode:options:]_block_invoke_2.1835 + 660
        10 Photos                         0x19751d950 __107-[PHCachingImageManager _fireCloudDownloadOfImageForAsset:format:optimalSourcePixelSize:completionHandler:]_block_invoke_3 + 716
        11 PhotoLibraryServices           0x196bf343c __58-[PLPreheatItem startPreheatRequestWithCompletionHandler:]_block_invoke_2.52 + 76
        12 AssetsLibraryServices          0x1962b5e2c __pl_dispatch_async_block_invoke + 36
        13 libdispatch.dylib              0x18abb9200 _dispatch_call_block_and_release + 24
        14 libdispatch.dylib              0x18abb91c0 _dispatch_client_callout + 16
        15 libdispatch.dylib              0x18abc7444 _dispatch_queue_serial_drain + 928
        16 libdispatch.dylib              0x18abbc9a8 _dispatch_queue_invoke + 652
        17 libdispatch.dylib              0x18abc938c _dispatch_root_queue_drain + 572
        18 libdispatch.dylib              0x18abc90ec _dispatch_worker_thread3 + 124
        19 libsystem_pthread.dylib        0x18adc22b8 _pthread_wqthread + 1288
        20 libsystem_pthread.dylib        0x18adc1da4 start_wqthread + 4