Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion failed: (res == 0), function lock. #66

Closed
3a4oT opened this issue Apr 24, 2017 · 1 comment
Closed

Assertion failed: (res == 0), function lock. #66

3a4oT opened this issue Apr 24, 2017 · 1 comment

Comments

@3a4oT
Copy link

3a4oT commented Apr 24, 2017

ASTheread.h/ l.198 . happens when switching between apps. Hard to reproduce. Texture 2.3

bt all

  thread #1, queue = 'com.apple.main-thread'
    frame #0: 0x1b7b71f0 libsystem_c.dylib`__cxa_finalize_ranges + 262
    frame #1: 0x1b7761b2 libsystem_c.dylib`exit + 12
    frame #2: 0x21304086 UIKit`-[UIApplication _terminateWithStatus:] + 566
    frame #3: 0x214f7cf4 UIKit`__102-[UIApplication _handleApplicationDeactivationWithScene:shouldForceExit:transitionContext:completion:]_block_invoke.2095 + 924
    frame #4: 0x214fadc2 UIKit`_runAfterCACommitDeferredBlocks + 276
    frame #5: 0x214ee0d2 UIKit`_cleanUpAfterCAFlushAndRunDeferredBlocks + 524
    frame #6: 0x2126fcfc UIKit`_afterCACommitHandler + 112
    frame #7: 0x1c00f802 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 20
    frame #8: 0x1c00da54 CoreFoundation`__CFRunLoopDoObservers + 282
    frame #9: 0x1c00e016 CoreFoundation`__CFRunLoopRun + 1358
    frame #10: 0x1bf610ee CoreFoundation`CFRunLoopRunSpecific + 470
    frame #11: 0x1bf60f10 CoreFoundation`CFRunLoopRunInMode + 104
    frame #12: 0x1d70bb40 GraphicsServices`GSEventRunModal + 80
    frame #13: 0x212dfe82 UIKit`UIApplicationMain + 150
    frame #14: 0x0006f340 hotschedules`main(argc=1, argv=0x01166b18) at main.m:17
    frame #15: 0x1b74e4ea libdyld.dylib`start + 2

  thread #6, name = 'com.apple.uikit.eventfetch-thread'
    frame #0: 0x1b80c900 libsystem_kernel.dylib`mach_msg_trap + 20
    frame #1: 0x1b80c6e0 libsystem_kernel.dylib`mach_msg + 44
    frame #2: 0x1c00fbe2 CoreFoundation`__CFRunLoopServiceMachPort + 144
    frame #3: 0x1c00e064 CoreFoundation`__CFRunLoopRun + 1436
    frame #4: 0x1bf610ee CoreFoundation`CFRunLoopRunSpecific + 470
    frame #5: 0x1bf60f10 CoreFoundation`CFRunLoopRunInMode + 104
    frame #6: 0x1c8b5ab4 Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 258
    frame #7: 0x1c8d272c Foundation`-[NSRunLoop(NSRunLoop) runUntilDate:] + 86
    frame #8: 0x21be1888 UIKit`-[UIEventFetcher threadMain] + 128
    frame #9: 0x1c9998aa Foundation`__NSThread__start__ + 1122
    frame #10: 0x1b8d89aa libsystem_pthread.dylib`_pthread_body + 216
    frame #11: 0x1b8d88cc libsystem_pthread.dylib`_pthread_start + 234
    frame #12: 0x1b8d64d8 libsystem_pthread.dylib`thread_start + 8

  thread #8, name = 'GAIThread'
    frame #0: 0x1b80c900 libsystem_kernel.dylib`mach_msg_trap + 20
    frame #1: 0x1b80c6e0 libsystem_kernel.dylib`mach_msg + 44
    frame #2: 0x1c00fbe2 CoreFoundation`__CFRunLoopServiceMachPort + 144
    frame #3: 0x1c00e064 CoreFoundation`__CFRunLoopRun + 1436
    frame #4: 0x1bf610ee CoreFoundation`CFRunLoopRunSpecific + 470
    frame #5: 0x1bf60f10 CoreFoundation`CFRunLoopRunInMode + 104
    frame #6: 0x1c8b5ab4 Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 258
    frame #7: 0x1c902d78 Foundation`-[NSRunLoop(NSRunLoop) run] + 80
    frame #8: 0x00772800 hotschedules`+[GAI threadMain:] + 64
    frame #9: 0x1c9998aa Foundation`__NSThread__start__ + 1122
    frame #10: 0x1b8d89aa libsystem_pthread.dylib`_pthread_body + 216
    frame #11: 0x1b8d88cc libsystem_pthread.dylib`_pthread_start + 234
    frame #12: 0x1b8d64d8 libsystem_pthread.dylib`thread_start + 8

  thread #11
    frame #0: 0x1b821808 libsystem_kernel.dylib`__psynch_cvwait + 24
    frame #1: 0x1b8d7cb2 libsystem_pthread.dylib`_pthread_cond_wait + 560
    frame #2: 0x1b8d9034 libsystem_pthread.dylib`pthread_cond_wait + 38
    frame #3: 0x1b273c56 libc++.1.dylib`std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 118
    frame #4: 0x1fec71e8 JavaScriptCore`void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >(std::__1::unique_lock<bmalloc::Mutex>&) + 88
    frame #5: 0x1fec716c JavaScriptCore`bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadRunLoop() + 154
    frame #6: 0x1fec7074 JavaScriptCore`bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadEntryPoint(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*) + 20
    frame #7: 0x1fec72b6 JavaScriptCore`void* std::__1::__thread_proxy<std::__1::tuple<void (*)(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*), bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*> >(void*) + 66
    frame #8: 0x1b8d89aa libsystem_pthread.dylib`_pthread_body + 216
    frame #9: 0x1b8d88cc libsystem_pthread.dylib`_pthread_start + 234
    frame #10: 0x1b8d64d8 libsystem_pthread.dylib`thread_start + 8

  thread #12, name = 'WebThread'
    frame #0: 0x1b80c900 libsystem_kernel.dylib`mach_msg_trap + 20
    frame #1: 0x1b80c6e0 libsystem_kernel.dylib`mach_msg + 44
    frame #2: 0x1c00fbe2 CoreFoundation`__CFRunLoopServiceMachPort + 144
    frame #3: 0x1c00e064 CoreFoundation`__CFRunLoopRun + 1436
    frame #4: 0x1bf610ee CoreFoundation`CFRunLoopRunSpecific + 470
    frame #5: 0x1bf60f10 CoreFoundation`CFRunLoopRunInMode + 104
    frame #6: 0x2017ff02 WebCore`RunWebThread(void*) + 426
    frame #7: 0x1b8d89aa libsystem_pthread.dylib`_pthread_body + 216
    frame #8: 0x1b8d88cc libsystem_pthread.dylib`_pthread_start + 234
    frame #9: 0x1b8d64d8 libsystem_pthread.dylib`thread_start + 8

  thread #13, name = 'com.apple.NSURLConnectionLoader'
    frame #0: 0x1b80c900 libsystem_kernel.dylib`mach_msg_trap + 20
    frame #1: 0x1b80c6e0 libsystem_kernel.dylib`mach_msg + 44
    frame #2: 0x1c00fbe2 CoreFoundation`__CFRunLoopServiceMachPort + 144
    frame #3: 0x1c00e064 CoreFoundation`__CFRunLoopRun + 1436
    frame #4: 0x1bf610ee CoreFoundation`CFRunLoopRunSpecific + 470
    frame #5: 0x1bf60f10 CoreFoundation`CFRunLoopRunInMode + 104
    frame #6: 0x1c63e242 CFNetwork`+[NSURLConnection(Loader) _resourceLoadLoop:] + 402
    frame #7: 0x1c9998aa Foundation`__NSThread__start__ + 1122
    frame #8: 0x1b8d89aa libsystem_pthread.dylib`_pthread_body + 216
    frame #9: 0x1b8d88cc libsystem_pthread.dylib`_pthread_start + 234
    frame #10: 0x1b8d64d8 libsystem_pthread.dylib`thread_start + 8

* thread #15, queue = 'org.AsyncDisplayKit.ASDisplayLayer.displayQueue', stop reason = signal SIGABRT
    frame #0: 0x1b821acc libsystem_kernel.dylib`__pthread_kill + 8
    frame #1: 0x1b8da0f6 libsystem_pthread.dylib`pthread_kill + 62
    frame #2: 0x1b7b695a libsystem_c.dylib`abort + 108
    frame #3: 0x1b795e8c libsystem_c.dylib`__assert_rtn + 292
  * frame #4: 0x01490f0a AsyncDisplayKit`ASDN::Mutex::lock(this=0x015f4630) at ASThread.h:198
    frame #5: 0x01490eb2 AsyncDisplayKit`ASDN::Locker<ASDN::Mutex>::Locker(this=0x1944848c, l=0x015f4630) at ASThread.h:84
    frame #6: 0x0149128c AsyncDisplayKit`ASDN::Locker<ASDN::Mutex>::Locker(this=0x1944848c, l=0x015f4630) at ASThread.h:83
    frame #7: 0x01563360 AsyncDisplayKit`::-[ASTextKitContext initWithAttributedString:lineBreakMode:maximumNumberOfLines:exclusionPaths:constrainedSize:](self=0x16eaa460, _cmd="initWithAttributedString:lineBreakMode:maximumNumberOfLines:exclusionPaths:constrainedSize:", attributedString="Label. Row 1. Column 2", lineBreakMode=NSLineBreakByWordWrapping, maximumNumberOfLines=0, exclusionPaths=0x00000000, constrainedSize=(width = 66.5, height = 29)) at ASTextKitContext.mm:37
    frame #8: 0x0156c8e4 AsyncDisplayKit`::-[ASTextKitRenderer initWithTextKitAttributes:constrainedSize:](self=0x06ef5b20, _cmd="initWithTextKitAttributes:constrainedSize:", attributes=0x194488c0, constrainedSize=(width = 66.5, height = 29)) at ASTextKitRenderer.mm:62
    frame #9: 0x01574104 AsyncDisplayKit`rendererForAttributes(attributes=<unavailable>, constrainedSize=(width = 66.5, height = 29)) at ASTextNode.mm:115
    frame #10: 0x01573ed6 AsyncDisplayKit`::-[ASTextNode _rendererWithBoundsSlow:](self=0x171e8200, _cmd="_rendererWithBoundsSlow:", bounds=(origin = (x = 0, y = 0), size = (width = 66.5, height = 29))) at ASTextNode.mm:280
    frame #11: 0x01576052 AsyncDisplayKit`::-[ASTextNode drawRect:withParameters:isCancelled:isRasterizing:](self=0x171e8200, _cmd="drawRect:withParameters:isCancelled:isRasterizing:", bounds=(origin = (x = 0, y = 0), size = (width = 66.5, height = 29)), p=0x00000000, isCancelledBlock=0x0147d729, isRasterizing=NO) at ASTextNode.mm:475
    frame #12: 0x0147cc50 AsyncDisplayKit`::__90-[ASDisplayNode((null)=<unavailable>) _displayBlockWithAsynchronous:isCancelledBlock:rasterizing:]_block_invoke.76() at ASDisplayNode+AsyncDisplay.mm:257
    frame #13: 0x01406aa2 AsyncDisplayKit`::__71-[_ASAsyncTransaction addOperationWithBlock:priority:queue:completion:]_block_invoke((null)=<unavailable>) at _ASAsyncTransaction.mm:432
    frame #14: 0x014047e6 AsyncDisplayKit`::___ZN23ASAsyncTransactionQueue9GroupImpl8scheduleEiPU28objcproto17OS_dispatch_queue8NSObjectU13block_pointerFvvE_block_invoke((null)=<unavailable>) at _ASAsyncTransaction.mm:250
    frame #15: 0x02bea466 libdispatch.dylib`_dispatch_call_block_and_release + 10
    frame #16: 0x02bf4fce libdispatch.dylib`_dispatch_continuation_pop + 480
    frame #17: 0x02bf4d02 libdispatch.dylib`_dispatch_async_redirect_invoke + 580
    frame #18: 0x02bf876a libdispatch.dylib`_dispatch_root_queue_drain + 666
    frame #19: 0x02bf8470 libdispatch.dylib`_dispatch_worker_thread3 + 112
    frame #20: 0x1b8d68ec libsystem_pthread.dylib`_pthread_wqthread + 1040
    frame #21: 0x1b8d64cc libsystem_pthread.dylib`start_wqthread + 8

  thread #16
    frame #0: 0x1b8d64c4 libsystem_pthread.dylib`start_wqthread

  thread #17
    frame #0: 0x1b8d64c4 libsystem_pthread.dylib`start_wqthread

  thread #18, queue = 'org.AsyncDisplayKit.ASDisplayLayer.displayQueue'
    frame #0: 0x1b82257c libsystem_kernel.dylib`__ulock_wake + 8
    frame #1: 0x1b8d35b2 libsystem_platform.dylib`_os_unfair_lock_unlock_slow + 50
    frame #2: 0x1b2f4f26 libobjc.A.dylib`objc_object::sidetable_retain() + 138
    frame #3: 0x0156e3dc AsyncDisplayKit`::-[ASTextKitRenderer drawInContext:bounds:](self=0x06e434e0, _cmd="drawInContext:bounds:", context=0x06e864e0, bounds=(origin = (x = 0, y = 0), size = (width = 686, height = 14.5))) at ASTextKitRenderer.mm:213
    frame #4: 0x015760f6 AsyncDisplayKit`::-[ASTextNode drawRect:withParameters:isCancelled:isRasterizing:](self=0x1717b000, _cmd="drawRect:withParameters:isCancelled:isRasterizing:", bounds=(origin = (x = 0, y = 0), size = (width = 686, height = 14.5)), p=0x00000000, isCancelledBlock=0x0147d729, isRasterizing=NO) at ASTextNode.mm:484
    frame #5: 0x0147cc50 AsyncDisplayKit`::__90-[ASDisplayNode((null)=<unavailable>) _displayBlockWithAsynchronous:isCancelledBlock:rasterizing:]_block_invoke.76() at ASDisplayNode+AsyncDisplay.mm:257
    frame #6: 0x01406aa2 AsyncDisplayKit`::__71-[_ASAsyncTransaction addOperationWithBlock:priority:queue:completion:]_block_invoke((null)=<unavailable>) at _ASAsyncTransaction.mm:432
    frame #7: 0x014047e6 AsyncDisplayKit`::___ZN23ASAsyncTransactionQueue9GroupImpl8scheduleEiPU28objcproto17OS_dispatch_queue8NSObjectU13block_pointerFvvE_block_invoke((null)=<unavailable>) at _ASAsyncTransaction.mm:250
    frame #8: 0x02bea466 libdispatch.dylib`_dispatch_call_block_and_release + 10
    frame #9: 0x02bf4fce libdispatch.dylib`_dispatch_continuation_pop + 480
    frame #10: 0x02bf4d02 libdispatch.dylib`_dispatch_async_redirect_invoke + 580
    frame #11: 0x02bf876a libdispatch.dylib`_dispatch_root_queue_drain + 666
    frame #12: 0x02bf8470 libdispatch.dylib`_dispatch_worker_thread3 + 112
    frame #13: 0x1b8d68ec libsystem_pthread.dylib`_pthread_wqthread + 1040
    frame #14: 0x1b8d64cc libsystem_pthread.dylib`start_wqthread + 8

  thread #19
    frame #0: 0x1b8d64c4 libsystem_pthread.dylib`start_wqthread

  thread #20
    frame #0: 0x1b8d64c4 libsystem_pthread.dylib`start_wqthread

  thread #21, queue = 'io.answers.EventQueue :: NSOperation 0x99735a0 (QOS: BACKGROUND)'
    frame #0: 0x1b822554 libsystem_kernel.dylib`__ulock_wait + 24
    frame #1: 0x02c0eb04 libdispatch.dylib`_dispatch_ulock_wait + 38
    frame #2: 0x02c0ec02 libdispatch.dylib`_dispatch_thread_event_wait_slow + 24
    frame #3: 0x02bf90d8 libdispatch.dylib`_dispatch_barrier_sync_f_slow + 214
    frame #4: 0x1d8c9a46 AssertionServices`-[BKSProcessAssertion invalidate] + 78
    frame #5: 0x212c7130 UIKit`-[_UIBackgroundTaskInfo invalidate] + 38
    frame #6: 0x21508ba0 UIKit`-[UIApplication _endBackgroundTask:] + 68
    frame #7: 0x006ad20c hotschedules`-[ANSActivity endAndInvalidateBackgroundTask] + 126
    frame #8: 0x006ad0e0 hotschedules`-[ANSActivity end] + 24
    frame #9: 0x006aa18a hotschedules`-[ANSActivityOperation main] + 46
    frame #10: 0x1c8c1fa6 Foundation`-[__NSOperationInternal _start:] + 770
    frame #11: 0x1c97bcf8 Foundation`__NSOQSchedule_f + 190
    frame #12: 0x02bf666e libdispatch.dylib`_dispatch_queue_serial_drain + 988
    frame #13: 0x02beda38 libdispatch.dylib`_dispatch_queue_invoke + 872
    frame #14: 0x02bf876a libdispatch.dylib`_dispatch_root_queue_drain + 666
    frame #15: 0x02bf8470 libdispatch.dylib`_dispatch_worker_thread3 + 112
    frame #16: 0x1b8d68ec libsystem_pthread.dylib`_pthread_wqthread + 1040
    frame #17: 0x1b8d64cc libsystem_pthread.dylib`start_wqthread + 8

  thread #22
    frame #0: 0x1b82273c libsystem_kernel.dylib`__workq_kernreturn + 8
    frame #1: 0x1b8d695a libsystem_pthread.dylib`_pthread_wqthread + 1150
    frame #2: 0x1b8d64cc libsystem_pthread.dylib`start_wqthread + 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants