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

iOS 播放特效偶现卡死 #204

Open
Monkey-Sun opened this issue Feb 10, 2022 · 20 comments
Open

iOS 播放特效偶现卡死 #204

Monkey-Sun opened this issue Feb 10, 2022 · 20 comments

Comments

@Monkey-Sun
Copy link

Monkey-Sun commented Feb 10, 2022

  1. 问题描述:播放vap视频动效时,偶尔会卡死
  2. 运行环境:iPhone 11 iOS 14.0
  3. 相关日志
  • thread ---1, queue = 'gputools.GTSharedMemoryTransport_capture.0x121f05370.send', stop reason = signal SIGSTOP
    frame ---0: 0x00000001d3d67d30 libsystem_kernel.dylib__semwait_signal + 8 frame ---1: 0x00000001b0f3d7bc libsystem_c.dylibnanosleep + 216
    frame ---2: 0x00000001b0f3d68c libsystem_c.dylibusleep + 68 frame ---3: 0x0000000110c2eb70 libMTLCapture.dylib___lldb_unnamed_symbol2227$$libMTLCapture.dylib + 44
    frame ---4: 0x0000000110c2c97c libMTLCapture.dylib___lldb_unnamed_symbol2180$$libMTLCapture.dylib + 276 frame ---5: 0x0000000110c2ce3c libMTLCapture.dylib___lldb_unnamed_symbol2182$$libMTLCapture.dylib + 428
    frame ---6: 0x0000000110c2af18 libMTLCapture.dylib___lldb_unnamed_symbol2127$$libMTLCapture.dylib + 104 frame ---7: 0x0000000121dbd5f0 libdispatch.dylib_dispatch_client_callout + 20
    frame ---8: 0x0000000121dcdd50 libdispatch.dylib_dispatch_sync_invoke_and_complete_recurse + 184 frame ---9: 0x0000000110c2ada0 libMTLCapture.dylib___lldb_unnamed_symbol2124$$libMTLCapture.dylib + 608
    frame ---10: 0x0000000110c2d9b4 libMTLCapture.dylib___lldb_unnamed_symbol2206$$libMTLCapture.dylib + 236 frame ---11: 0x0000000110bf90ac libMTLCapture.dylib___lldb_unnamed_symbol992$$libMTLCapture.dylib + 1056
    frame ---12: 0x0000000110c0f3b4 libMTLCapture.dylib___lldb_unnamed_symbol1417$$libMTLCapture.dylib + 116 frame ---13: 0x0000000110bdf6a4 libMTLCapture.dylib___lldb_unnamed_symbol676$$libMTLCapture.dylib + 260
    frame ---14: 0x0000000110bdf584 libMTLCapture.dylib`___lldb_unnamed_symbol675$$libMTLCapture.dylib + 168
    • frame ---15: 0x00000001050cea68 MyApp-[QGHWDMetalRenderer renderPixelBuffer:metalLayer:](self=0x0000000281a5d880, _cmd="renderPixelBuffer:metalLayer:", pixelBuffer=0x00000002807a8fa0, layer=0x0000000283233c80) at QGHWDMetalRenderer.m:285:5 frame ---16: 0x00000001050cf84c MyApp-[QGHWDMetalView display:](self=0x000000015b1ff550, _cmd="display:", pixelBuffer=0x00000002807a8fa0) at QGHWDMetalView.m:113:5
      frame ---17: 0x00000001050f4604 MyApp-[UIView(self=0x0000000122a6ad60, _cmd="hwd_displayNext") hwd_displayNext] at UIView+VAP.m:439:9 frame ---18: 0x00000001050f422c MyApp__33-[UIView(.block_descriptor=0x000000016dfee808) hwd_renderVideoRun]_block_invoke.282 at UIView+VAP.m:393:33
      frame ---19: 0x0000000121dbd5f0 libdispatch.dylib_dispatch_client_callout + 20 frame ---20: 0x0000000121dcd99c libdispatch.dylib_dispatch_async_and_wait_invoke + 220
      frame ---21: 0x0000000121dbd5f0 libdispatch.dylib_dispatch_client_callout + 20 frame ---22: 0x0000000121dcc890 libdispatch.dylib_dispatch_main_queue_callback_4CF + 1000
      frame ---23: 0x00000001a7dbb1e4 CoreFoundation__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 frame ---24: 0x00000001a7db53b4 CoreFoundation__CFRunLoopRun + 2508
      frame ---25: 0x00000001a7db44bc CoreFoundationCFRunLoopRunSpecific + 600 frame ---26: 0x00000001be839820 GraphicsServicesGSEventRunModal + 164
      frame ---27: 0x00000001aa758734 UIKitCore-[UIApplication _run] + 1072 frame ---28: 0x00000001aa75de10 UIKitCoreUIApplicationMain + 168
      frame ---29: 0x00000001027723f4 MyAppmain(argc=1, argv=0x000000016d84b7e0) at main.m:15:16 frame ---30: 0x00000001a7a7be60 libdyld.dylibstart + 4
  1. 播放错误的文件 暂无
@Monkey-Sun Monkey-Sun changed the title iOS 播放特效偶先卡死 iOS 播放特效偶现卡死 Feb 10, 2022
@Monkey-Sun Monkey-Sun reopened this Feb 10, 2022
@Monkey-Sun
Copy link
Author

重新编辑一下,麻烦大佬空了帮忙看下

@Monkey-Sun
Copy link
Author

能否将 UIView + VAP.m里hwd_renderVideoRun方法的 dispatch_sync(dispatch_get_main_queue() 换成 async的方式?我看堆栈报错是前面sync住线程1, 后面[commandBuffer commit]后,又往thread1 提交一个同步任务到thread-1 导致卡死。

dispatch_sync(dispatch_get_main_queue(), ^{
nextFrame = [self hwd_displayNext];
});

@wubiner
Copy link
Collaborator

wubiner commented Feb 11, 2022

能否将 UIView + VAP.m里hwd_renderVideoRun方法的 dispatch_sync(dispatch_get_main_queue() 换成 async的方式?我看堆栈报错是前面sync住线程1, 后面[commandBuffer commit]后,又往thread1 提交一个同步任务到thread-1 导致卡死。

dispatch_sync(dispatch_get_main_queue(), ^{ nextFrame = [self hwd_displayNext]; });

不可以,这里需要同步的方式拿到nextFrame,后面要使用该对象的值。另外这里堆栈的线程thread1是系统线程,和同步的这个线程不是同一个。这里应该不是死锁问题,具体是啥原因,目前不太清楚。

@Monkey-Sun
Copy link
Author

  • (void)hwd_renderVideoRun {

    static NSTimeInterval durationForWaitingFrame = 16/1000.0;
    static NSTimeInterval minimumDurationForLoop = 1/1000.0;
    __block NSTimeInterval lastRenderingInterval = 0;
    __block NSTimeInterval lastRenderingDuration = 0;

    dispatch_async(self.vap_renderQueue, ^{
    if ([[NSThread currentThread] isMainThread]) {
    [self hwd_renderVideoRun];
    return;
    }
    // 原代码逻辑
    }

self.vap_renderQueue 是个串行队列,只是保证任务是串行执行的,但是调度的线程是任意线程。如果调度到了主线程,然后sync操作先把主线程锁住,后续commit后再sync 主线程,就SIGSTOP了。
这样尝试修复一下是否合理,如果当前线程是主线程,再走一次aync,直到async到非主线程,再执行后续操作。因为sync了子线程,不影响后续sync到主线程。

@Monkey-Sun
Copy link
Author

我自己模拟了死锁。

self.lock = [NSLock new];
[self.lock lock];
dispatch_aync(dispatch_get_main_queue(), ^{
[self.lock lock];
});

这个是会触发SIGSTOP 的。

@wubiner
Copy link
Collaborator

wubiner commented Feb 11, 2022

有没有完整的日志文件,有的话可以贴一下

@Monkey-Sun
Copy link
Author

(lldb) bt all

  • thread ---1, queue = 'gputools.GTSharedMemoryTransport_capture.0x121f05370.send', stop reason = signal SIGSTOP
    frame ---0: 0x00000001d3d67d30 libsystem_kernel.dylib__semwait_signal + 8 frame ---1: 0x00000001b0f3d7bc libsystem_c.dylibnanosleep + 216
    frame ---2: 0x00000001b0f3d68c libsystem_c.dylibusleep + 68 frame ---3: 0x0000000110c2eb70 libMTLCapture.dylib___lldb_unnamed_symbol2227$$libMTLCapture.dylib + 44
    frame ---4: 0x0000000110c2c97c libMTLCapture.dylib___lldb_unnamed_symbol2180$$libMTLCapture.dylib + 276 frame ---5: 0x0000000110c2ce3c libMTLCapture.dylib___lldb_unnamed_symbol2182$$libMTLCapture.dylib + 428
    frame ---6: 0x0000000110c2af18 libMTLCapture.dylib___lldb_unnamed_symbol2127$$libMTLCapture.dylib + 104 frame ---7: 0x0000000121dbd5f0 libdispatch.dylib_dispatch_client_callout + 20
    frame ---8: 0x0000000121dcdd50 libdispatch.dylib_dispatch_sync_invoke_and_complete_recurse + 184 frame ---9: 0x0000000110c2ada0 libMTLCapture.dylib___lldb_unnamed_symbol2124$$libMTLCapture.dylib + 608
    frame ---10: 0x0000000110c2d9b4 libMTLCapture.dylib___lldb_unnamed_symbol2206$$libMTLCapture.dylib + 236 frame ---11: 0x0000000110bf90ac libMTLCapture.dylib___lldb_unnamed_symbol992$$libMTLCapture.dylib + 1056
    frame ---12: 0x0000000110c0f3b4 libMTLCapture.dylib___lldb_unnamed_symbol1417$$libMTLCapture.dylib + 116 frame ---13: 0x0000000110bdf6a4 libMTLCapture.dylib___lldb_unnamed_symbol676$$libMTLCapture.dylib + 260
    frame ---14: 0x0000000110bdf584 libMTLCapture.dylib`___lldb_unnamed_symbol675$$libMTLCapture.dylib + 168
    • frame ---15: 0x00000001050cea68 MyApp-[QGHWDMetalRenderer renderPixelBuffer:metalLayer:](self=0x0000000281a5d880, _cmd="renderPixelBuffer:metalLayer:", pixelBuffer=0x00000002807a8fa0, layer=0x0000000283233c80) at QGHWDMetalRenderer.m:285:5 frame ---16: 0x00000001050cf84c MyApp-[QGHWDMetalView display:](self=0x000000015b1ff550, _cmd="display:", pixelBuffer=0x00000002807a8fa0) at QGHWDMetalView.m:113:5
      frame ---17: 0x00000001050f4604 MyApp-[UIView(self=0x0000000122a6ad60, _cmd="hwd_displayNext") hwd_displayNext] at UIView+VAP.m:439:9 frame ---18: 0x00000001050f422c MyApp__33-[UIView(.block_descriptor=0x000000016dfee808) hwd_renderVideoRun]_block_invoke.282 at UIView+VAP.m:393:33
      frame ---19: 0x0000000121dbd5f0 libdispatch.dylib_dispatch_client_callout + 20 frame ---20: 0x0000000121dcd99c libdispatch.dylib_dispatch_async_and_wait_invoke + 220
      frame ---21: 0x0000000121dbd5f0 libdispatch.dylib_dispatch_client_callout + 20 frame ---22: 0x0000000121dcc890 libdispatch.dylib_dispatch_main_queue_callback_4CF + 1000
      frame ---23: 0x00000001a7dbb1e4 CoreFoundation__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 frame ---24: 0x00000001a7db53b4 CoreFoundation__CFRunLoopRun + 2508
      frame ---25: 0x00000001a7db44bc CoreFoundationCFRunLoopRunSpecific + 600 frame ---26: 0x00000001be839820 GraphicsServicesGSEventRunModal + 164
      frame ---27: 0x00000001aa758734 UIKitCore-[UIApplication _run] + 1072 frame ---28: 0x00000001aa75de10 UIKitCoreUIApplicationMain + 168
      frame ---29: 0x00000001027723f4 MyAppmain(argc=1, argv=0x000000016d84b7e0) at main.m:15:16 frame ---30: 0x00000001a7a7be60 libdyld.dylibstart + 4
      thread ---3, name = 'gputools.smt_poll.0x2836c07e0'
      frame ---0: 0x00000001d3d67d30 libsystem_kernel.dylib__semwait_signal + 8 frame ---1: 0x00000001b0f3d7bc libsystem_c.dylibnanosleep + 216
      frame ---2: 0x00000001b0f3d68c libsystem_c.dylibusleep + 68 frame ---3: 0x0000000110c2e1e0 libMTLCapture.dylib___lldb_unnamed_symbol2216$$libMTLCapture.dylib + 108
      frame ---4: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320 thread ---8, name = 'com.apple.uikit.eventfetch-thread' frame ---0: 0x00000001d3d43dd0 libsystem_kernel.dylibmach_msg_trap + 8
      frame ---1: 0x00000001d3d43184 libsystem_kernel.dylibmach_msg + 76 frame ---2: 0x00000001a7dbacf8 CoreFoundation__CFRunLoopServiceMachPort + 380
      frame ---3: 0x00000001a7db4ea8 CoreFoundation__CFRunLoopRun + 1216 frame ---4: 0x00000001a7db44bc CoreFoundationCFRunLoopRunSpecific + 600
      frame ---5: 0x00000001a9031e30 Foundation-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 frame ---6: 0x00000001a9031d08 Foundation-[NSRunLoop(NSRunLoop) runUntilDate:] + 92
      frame ---7: 0x00000001aa808e94 UIKitCore-[UIEventFetcher threadMain] + 516 frame ---8: 0x00000001a919c0f0 FoundationNSThread__start + 864
      frame ---9: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320 thread ---9 frame ---0: 0x00000001d3d6775c libsystem_kernel.dylib__psynch_cvwait + 8
      frame ---1: 0x00000001ef392550 libsystem_pthread.dylib_pthread_cond_wait + 1192 frame ---2: 0x00000001025e1294 MyApp-[YppMonitor run](self=0x00000002812d0000, _cmd="run") at YppMonitor.m:131:17
      frame ---3: 0x00000001a919c0f0 Foundation__NSThread__start__ + 864 frame ---4: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320
      thread ---16, name = 'com.apple.NSURLConnectionLoader'
      frame ---0: 0x00000001d3d43dd0 libsystem_kernel.dylibmach_msg_trap + 8 frame ---1: 0x00000001d3d43184 libsystem_kernel.dylibmach_msg + 76
      frame ---2: 0x00000001a7dbacf8 CoreFoundation__CFRunLoopServiceMachPort + 380 frame ---3: 0x00000001a7db4ea8 CoreFoundation__CFRunLoopRun + 1216
      frame ---4: 0x00000001a7db44bc CoreFoundationCFRunLoopRunSpecific + 600 frame ---5: 0x00000001a866d050 CFNetwork___lldb_unnamed_symbol11376$$CFNetwork + 572
      frame ---6: 0x00000001a919c0f0 Foundation__NSThread__start__ + 864 frame ---7: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320
      thread ---17, name = 'AVAudioSession Notify Thread'
      frame ---0: 0x00000001d3d43dd0 libsystem_kernel.dylibmach_msg_trap + 8 frame ---1: 0x00000001d3d43184 libsystem_kernel.dylibmach_msg + 76
      frame ---2: 0x00000001a7dbacf8 CoreFoundation__CFRunLoopServiceMachPort + 380 frame ---3: 0x00000001a7db4ea8 CoreFoundation__CFRunLoopRun + 1216
      frame ---4: 0x00000001a7db44bc CoreFoundationCFRunLoopRunSpecific + 600 frame ---5: 0x00000001af6562ac AudioSessionGenericRunLoopThread::Entry(void*) + 164
      frame ---6: 0x00000001af658390 AudioSessionCAPThread::Entry(CAPThread*) + 92 frame ---7: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320
      thread ---18
      frame ---0: 0x00000001d3d694e4 libsystem_kernel.dylibkevent + 8 frame ---1: 0x00000001125bf8dc MercuryFrameworkboost::asio::detail::kqueue_reactor::run(long, boost::asio::detail::op_queueboost::asio::detail::scheduler_operation&) + 268
      frame ---2: 0x00000001125bf6c8 MercuryFrameworkboost::asio::detail::scheduler::do_run_one(boost::asio::detail::conditionally_enabled_mutex::scoped_lock&, boost::asio::detail::scheduler_thread_info&, boost::system::error_code const&) + 268 frame ---3: 0x00000001125bf3cc MercuryFrameworkboost::asio::detail::scheduler::run(boost::system::error_code&) + 236
      frame ---4: 0x00000001125c02a0 MercuryFrameworkvoid* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, IoService::Start()::$_0> >(void*) + 76 frame ---5: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320
      thread ---19, name = 'com.autonavi.AMapLocationThread'
      frame ---0: 0x00000001d3d43dd0 libsystem_kernel.dylibmach_msg_trap + 8 frame ---1: 0x00000001d3d43184 libsystem_kernel.dylibmach_msg + 76
      frame ---2: 0x00000001a7dbacf8 CoreFoundation__CFRunLoopServiceMachPort + 380 frame ---3: 0x00000001a7db4ea8 CoreFoundation__CFRunLoopRun + 1216
      frame ---4: 0x00000001a7db44bc CoreFoundationCFRunLoopRunSpecific + 600 frame ---5: 0x00000001a9031e30 Foundation-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232
      frame ---6: 0x00000001a906479c Foundation-[NSRunLoop(NSRunLoop) run] + 92 frame ---7: 0x00000001078129bc MyApp+[AMapLocationCLMDelegate threadEntryPoint:] + 216
      frame ---8: 0x00000001a919c0f0 Foundation__NSThread__start__ + 864 frame ---9: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320
      thread ---20, name = 'com.apple.CFSocket.private'
      frame ---0: 0x00000001d3d67c40 libsystem_kernel.dylib__select + 8 frame ---1: 0x00000001a7dc7688 CoreFoundation__CFSocketManager + 636
      frame ---2: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320 thread ---26, name = 'GTSDKThread' frame ---0: 0x00000001d3d43dd0 libsystem_kernel.dylibmach_msg_trap + 8
      frame ---1: 0x00000001d3d43184 libsystem_kernel.dylibmach_msg + 76 frame ---2: 0x00000001a7dbacf8 CoreFoundation__CFRunLoopServiceMachPort + 380
      frame ---3: 0x00000001a7db4ea8 CoreFoundation__CFRunLoopRun + 1216 frame ---4: 0x00000001a7db44bc CoreFoundationCFRunLoopRunSpecific + 600
      frame ---5: 0x00000001a9031e30 Foundation-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 frame ---6: 0x0000000107a2b2b0 MyApp-[GTSThread main] + 228
      frame ---7: 0x00000001a919c0f0 Foundation__NSThread__start__ + 864 frame ---8: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320
      thread ---30
      frame ---0: 0x00000001d3d6775c libsystem_kernel.dylib__psynch_cvwait + 8 frame ---1: 0x00000001ef392550 libsystem_pthread.dylib_pthread_cond_wait + 1192
      frame ---2: 0x0000000112a05e0c NIMSDKnbase::ConditionVariable::TimedWait(nbase::TimeDelta const&) + 184 frame ---3: 0x0000000112a08608 NIMSDKnbase::WaitableEvent::WaitTimeout(nbase::TimeDelta const&) + 248
      frame ---4: 0x0000000112a05b9c NIMSDKnbase::DefaultMessagePump::Run(nbase::MessagePump::Delegate*) + 176 frame ---5: 0x00000001129ff2c4 NIMSDKnbase::MessageLoop::Run() + 76
      frame ---6: 0x0000000112a0be5c NIMSDKnbase::FrameworkThread::Run() + 120 frame ---7: 0x0000000112a16958 NIMSDKnbase::Thread::ThreadProcFunc(void*) + 24
      frame ---8: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320 thread ---31 frame ---0: 0x00000001d3d69c8c libsystem_kernel.dylibpoll + 8
      frame ---1: 0x0000000112c940c4 NIMSDKpoll_dispatch + 188 frame ---2: 0x0000000112c8ccf0 NIMSDKevent_base_loop + 1040
      frame ---3: 0x00000001129fe600 NIMSDKnbase::LibeventMessagePump::Run(nbase::MessagePump::Delegate*) + 336 frame ---4: 0x00000001129ff2c4 NIMSDKnbase::MessageLoop::Run() + 76
      frame ---5: 0x0000000112a0be5c NIMSDKnbase::FrameworkThread::Run() + 120 frame ---6: 0x0000000112a16958 NIMSDKnbase::Thread::ThreadProcFunc(void*) + 24
      frame ---7: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320 thread ---32, name = 'GtAsyncSocket-CFStream' frame ---0: 0x00000001d3d43dd0 libsystem_kernel.dylibmach_msg_trap + 8
      frame ---1: 0x00000001d3d43184 libsystem_kernel.dylibmach_msg + 76 frame ---2: 0x00000001a7dbacf8 CoreFoundation__CFRunLoopServiceMachPort + 380
      frame ---3: 0x00000001a7db4ea8 CoreFoundation__CFRunLoopRun + 1216 frame ---4: 0x00000001a7db44bc CoreFoundationCFRunLoopRunSpecific + 600
      frame ---5: 0x00000001a9031e30 Foundation-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 frame ---6: 0x00000001079def64 MyApp+[GtAsyncSocket cfstreamThread] + 360
      frame ---7: 0x00000001a919c0f0 Foundation__NSThread__start__ + 864 frame ---8: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320
      thread ---33, name = 'WCDB-checkpoint'
      frame ---0: 0x00000001d3d6775c libsystem_kernel.dylib__psynch_cvwait + 8 frame ---1: 0x00000001ef392550 libsystem_pthread.dylib_pthread_cond_wait + 1192
      frame ---2: 0x00000001bbf56c8c libc++.1.dylibstd::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28 frame ---3: 0x00000001052bae38 MyAppWCDB::TimedQueue<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > >::waitUntilExpired(this=0x000000010ac172b0, onExpired= Lambda in File type_traits at Line 2577, forever=true)> const&, bool) at timed_queue.hpp:68:28
      frame ---4: 0x00000001052bad9c MyAppWCDB::Database::$_3::operator(this=0x0000000283485410)(std::__1::shared_ptr<WCDB::Handle>&, WCDB::Error&) const::'lambda'(WCDB::Handle*, int, void*)::operator()(WCDB::Handle*, int, void*) const::'lambda'()::operator()() const at database_config.cpp:214:43 frame ---5: 0x00000001052bacf4 MyAppdecltype(__f=0x0000000283485410)(std::__1::shared_ptrWCDB::Handle&, WCDB::Error&) const::'lambda'(WCDB::Handle*, int, void*)::operator()(WCDB::Handle*, int, void*) const::'lambda'()>(fp)()) std::__1::__invoke<WCDB::Database::$_3::operator()(std::__1::shared_ptrWCDB::Handle&, WCDB::Error&) const::'lambda'(WCDB::Handle*, int, void*)::operator()(WCDB::Handle*, int, void*) const::'lambda'()>(WCDB::Database::$_3::operator()(std::__1::shared_ptrWCDB::Handle&, WCDB::Error&) const::'lambda'(WCDB::Handle*, int, void*)::operator()(WCDB::Handle*, int, void*) const::'lambda'()&&) at type_traits:3694:1
      frame ---6: 0x00000001052bac8c MyAppvoid std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, WCDB::Database::$_3::operator()(std::__1::shared_ptr<WCDB::Handle>&, WCDB::Error&) const::'lambda'(WCDB::Handle*, int, void*)::operator()(WCDB::Handle*, int, void*) const::'lambda'()>(__t=size=2, (null)=__tuple_indices<> @ 0x000000016e9c6f7f)(std::__1::shared_ptr<WCDB::Handle>&, WCDB::Error&) const::'lambda'(WCDB::Handle*, int, void*)::operator()(WCDB::Handle*, int, void*) const::'lambda'()>&, std::__1::__tuple_indices<>) at thread:286:5 frame ---7: 0x00000001052ba4a4 MyAppvoid* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, WCDB::Database::$_3::operator()(std::__1::shared_ptrWCDB::Handle&, WCDB::Error&) const::'lambda'(WCDB::Handle*, int, void*)::operator()(WCDB::Handle*, int, void*) const::'lambda'()> >(__vp=0x0000000283485410) at thread:297:5
      frame ---8: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320 thread ---34, name = 'com.ibireme.webimage.request' frame ---0: 0x00000001d3d43dd0 libsystem_kernel.dylibmach_msg_trap + 8
      frame ---1: 0x00000001d3d43184 libsystem_kernel.dylibmach_msg + 76 frame ---2: 0x00000001a7dbacf8 CoreFoundation__CFRunLoopServiceMachPort + 380
      frame ---3: 0x00000001a7db4ea8 CoreFoundation__CFRunLoopRun + 1216 frame ---4: 0x00000001a7db44bc CoreFoundationCFRunLoopRunSpecific + 600
      frame ---5: 0x00000001a9031e30 Foundation-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 frame ---6: 0x00000001a906479c Foundation-[NSRunLoop(NSRunLoop) run] + 92
      frame ---7: 0x00000001026bbb70 MyApp+[YYWebImageOperation _networkThreadMain:](self=YYWebImageOperation, _cmd="_networkThreadMain:", object=0x0000000000000000) at YYWebImageOperation.m:200:9 frame ---8: 0x00000001a919c0f0 FoundationNSThread__start + 864
      frame ---9: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320 thread ---37, name = 'AMapNetwork' frame ---0: 0x00000001d3d43dd0 libsystem_kernel.dylibmach_msg_trap + 8
      frame ---1: 0x00000001d3d43184 libsystem_kernel.dylibmach_msg + 76 frame ---2: 0x00000001a7dbacf8 CoreFoundation__CFRunLoopServiceMachPort + 380
      frame ---3: 0x00000001a7db4ea8 CoreFoundation__CFRunLoopRun + 1216 frame ---4: 0x00000001a7db44bc CoreFoundationCFRunLoopRunSpecific + 600
      frame ---5: 0x00000001a9031e30 Foundation-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 frame ---6: 0x00000001a906479c Foundation-[NSRunLoop(NSRunLoop) run] + 92
      frame ---7: 0x00000001077d3184 MyApp+[AMapNetworkOperation networkRequestThreadEntryPoint:] + 216 frame ---8: 0x00000001a919c0f0 FoundationNSThread__start + 864
      frame ---9: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320 thread ---43, name = 'JavaScriptCore bmalloc scavenger' frame ---0: 0x00000001d3d6775c libsystem_kernel.dylib__psynch_cvwait + 8
      frame ---1: 0x00000001ef392550 libsystem_pthread.dylib_pthread_cond_wait + 1192 frame ---2: 0x00000001bbf56c8c libc++.1.dylibstd::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28
      frame ---3: 0x00000001b1e5e188 JavaScriptCorevoid std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >(std::__1::unique_lock<bmalloc::Mutex>&) + 108 frame ---4: 0x00000001b1e62728 JavaScriptCorebmalloc::Scavenger::threadRunLoop() + 196
      frame ---5: 0x00000001b1e62364 JavaScriptCorebmalloc::Scavenger::threadEntryPoint(bmalloc::Scavenger*) + 16 frame ---6: 0x00000001b1e63828 JavaScriptCorevoid* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, void ()(bmalloc::Scavenger), bmalloc::Scavenger*> >(void*) + 48
      frame ---7: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320 thread ---46, queue = 'com.sonaroom.messageManager.timer' frame ---0: 0x00000001d3d43dd0 libsystem_kernel.dylibmach_msg_trap + 8
      frame ---1: 0x00000001d3d43184 libsystem_kernel.dylibmach_msg + 76 frame ---2: 0x00000001a7dbacf8 CoreFoundation__CFRunLoopServiceMachPort + 380
      frame ---3: 0x00000001a7db4ea8 CoreFoundation__CFRunLoopRun + 1216 frame ---4: 0x00000001a7db44bc CoreFoundationCFRunLoopRunSpecific + 600
      frame ---5: 0x00000001a9031e30 Foundation-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 frame ---6: 0x00000001a906479c Foundation-[NSRunLoop(NSRunLoop) run] + 92
      frame ---7: 0x000000010523bc00 MyApp__41-[SRRoomMessageManager startPollingTimer]_block_invoke(.block_descriptor=0x0000000283bec060) at SRRoomMessageManager.m:69:13 frame ---8: 0x0000000121dbbb68 libdispatch.dylib_dispatch_call_block_and_release + 32
      frame ---9: 0x0000000121dbd5f0 libdispatch.dylib_dispatch_client_callout + 20 frame ---10: 0x0000000121dc4fa8 libdispatch.dylib_dispatch_lane_serial_drain + 736
      frame ---11: 0x0000000121dc5cb4 libdispatch.dylib_dispatch_lane_invoke + 448 frame ---12: 0x0000000121dd1e38 libdispatch.dylib_dispatch_workloop_worker_thread + 1520
      frame ---13: 0x00000001ef390908 libsystem_pthread.dylib_pthread_wqthread + 276 thread ---52, name = 'mt' frame ---0: 0x00000001d3d69c8c libsystem_kernel.dylibpoll + 8
      frame ---1: 0x000000011b0d38f0 ZegoLiveRoom___lldb_unnamed_symbol14672$$ZegoLiveRoom + 560 frame ---2: 0x000000011b0d7ab4 ZegoLiveRoom___lldb_unnamed_symbol14776$$ZegoLiveRoom + 384
      frame ---3: 0x000000011b0d780c ZegoLiveRoom___lldb_unnamed_symbol14772$$ZegoLiveRoom + 20 frame ---4: 0x000000011b0dd180 ZegoLiveRoom___lldb_unnamed_symbol14910$$ZegoLiveRoom + 48
      frame ---5: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320 thread ---53, name = 'log' frame ---0: 0x00000001d3d69c8c libsystem_kernel.dylibpoll + 8
      frame ---1: 0x000000011b0d38f0 ZegoLiveRoom___lldb_unnamed_symbol14672$$ZegoLiveRoom + 560 frame ---2: 0x000000011b0d7ab4 ZegoLiveRoom___lldb_unnamed_symbol14776$$ZegoLiveRoom + 384
      frame ---3: 0x000000011b0d780c ZegoLiveRoom___lldb_unnamed_symbol14772$$ZegoLiveRoom + 20 frame ---4: 0x000000011b0dd180 ZegoLiveRoom___lldb_unnamed_symbol14910$$ZegoLiveRoom + 48
      frame ---5: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320 thread ---54, name = 'hc' frame ---0: 0x00000001d3d69c8c libsystem_kernel.dylibpoll + 8
      frame ---1: 0x000000011b0d38f0 ZegoLiveRoom___lldb_unnamed_symbol14672$$ZegoLiveRoom + 560 frame ---2: 0x000000011b0d7ab4 ZegoLiveRoom___lldb_unnamed_symbol14776$$ZegoLiveRoom + 384
      frame ---3: 0x000000011b0d780c ZegoLiveRoom___lldb_unnamed_symbol14772$$ZegoLiveRoom + 20 frame ---4: 0x000000011b0dd180 ZegoLiveRoom___lldb_unnamed_symbol14910$$ZegoLiveRoom + 48
      frame ---5: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320 thread ---55, name = 'net' frame ---0: 0x00000001d3d69c8c libsystem_kernel.dylibpoll + 8
      frame ---1: 0x000000011b0d38f0 ZegoLiveRoom___lldb_unnamed_symbol14672$$ZegoLiveRoom + 560 frame ---2: 0x000000011b0d7ab4 ZegoLiveRoom___lldb_unnamed_symbol14776$$ZegoLiveRoom + 384
      frame ---3: 0x000000011b0d780c ZegoLiveRoom___lldb_unnamed_symbol14772$$ZegoLiveRoom + 20 frame ---4: 0x000000011b0dd180 ZegoLiveRoom___lldb_unnamed_symbol14910$$ZegoLiveRoom + 48
      frame ---5: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320 thread ---59, name = 'dc' frame ---0: 0x00000001d3d69c8c libsystem_kernel.dylibpoll + 8
      frame ---1: 0x000000011b0d38f0 ZegoLiveRoom___lldb_unnamed_symbol14672$$ZegoLiveRoom + 560 frame ---2: 0x000000011b0d7ab4 ZegoLiveRoom___lldb_unnamed_symbol14776$$ZegoLiveRoom + 384
      frame ---3: 0x000000011b0d780c ZegoLiveRoom___lldb_unnamed_symbol14772$$ZegoLiveRoom + 20 frame ---4: 0x000000011b0dd180 ZegoLiveRoom___lldb_unnamed_symbol14910$$ZegoLiveRoom + 48
      frame ---5: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320 thread ---61, name = 'ag' frame ---0: 0x00000001d3d69c8c libsystem_kernel.dylibpoll + 8
      frame ---1: 0x000000011b0d38f0 ZegoLiveRoom___lldb_unnamed_symbol14672$$ZegoLiveRoom + 560 frame ---2: 0x000000011b0d7ab4 ZegoLiveRoom___lldb_unnamed_symbol14776$$ZegoLiveRoom + 384
      frame ---3: 0x000000011b0d780c ZegoLiveRoom___lldb_unnamed_symbol14772$$ZegoLiveRoom + 20 frame ---4: 0x000000011b0dd180 ZegoLiveRoom___lldb_unnamed_symbol14910$$ZegoLiveRoom + 48
      frame ---5: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320 thread ---65 frame ---0: 0x00000001d3d694e4 libsystem_kernel.dylibkevent + 8
      frame ---1: 0x00000001125bf8dc MercuryFrameworkboost::asio::detail::kqueue_reactor::run(long, boost::asio::detail::op_queue<boost::asio::detail::scheduler_operation>&) + 268 frame ---2: 0x00000001125bf6c8 MercuryFrameworkboost::asio::detail::scheduler::do_run_one(boost::asio::detail::conditionally_enabled_mutex::scoped_lock&, boost::asio::detail::scheduler_thread_info&, boost::system::error_code const&) + 268
      frame ---3: 0x00000001125bf3cc MercuryFrameworkboost::asio::detail::scheduler::run(boost::system::error_code&) + 236 frame ---4: 0x00000001125c02a0 MercuryFrameworkvoid* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, IoService::Start()::$_0> >(void*) + 76
      frame ---5: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320 thread ---66, name = 'adev' frame ---0: 0x00000001d3d6775c libsystem_kernel.dylib__psynch_cvwait + 8
      frame ---1: 0x00000001ef392550 libsystem_pthread.dylib_pthread_cond_wait + 1192 frame ---2: 0x000000011b289af8 ZegoLiveRoom___lldb_unnamed_symbol23696$$ZegoLiveRoom + 188
      frame ---3: 0x000000011b289c24 ZegoLiveRoom___lldb_unnamed_symbol23698$$ZegoLiveRoom + 168 frame ---4: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320
      thread ---67, name = 'adev'
      frame ---0: 0x00000001d3d6775c libsystem_kernel.dylib__psynch_cvwait + 8 frame ---1: 0x00000001ef392550 libsystem_pthread.dylib_pthread_cond_wait + 1192
      frame ---2: 0x000000011b289af8 ZegoLiveRoom___lldb_unnamed_symbol23696$$ZegoLiveRoom + 188 frame ---3: 0x000000011b289c24 ZegoLiveRoom___lldb_unnamed_symbol23698$$ZegoLiveRoom + 168
      frame ---4: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320 thread ---68, name = 'cap_thread' frame ---0: 0x00000001d3d43e0c libsystem_kernel.dylibsemaphore_wait_trap + 8
      frame ---1: 0x000000011b2a3414 ZegoLiveRoom___lldb_unnamed_symbol24220$$ZegoLiveRoom + 24 frame ---2: 0x000000011b299e68 ZegoLiveRoom___lldb_unnamed_symbol24012$$ZegoLiveRoom + 32
      frame ---3: 0x000000011b2a4038 ZegoLiveRoom___lldb_unnamed_symbol24242$$ZegoLiveRoom + 60 frame ---4: 0x000000011b2a3ec4 ZegoLiveRoom___lldb_unnamed_symbol24238$$ZegoLiveRoom + 60
      frame ---5: 0x000000011b2a3fac ZegoLiveRoom___lldb_unnamed_symbol24240$$ZegoLiveRoom + 168 frame ---6: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320
      thread ---69
      frame ---0: 0x00000001d3d43dd0 libsystem_kernel.dylibmach_msg_trap + 8 frame ---1: 0x00000001d3d43184 libsystem_kernel.dylibmach_msg + 76
      frame ---2: 0x00000001a7dbacf8 CoreFoundation__CFRunLoopServiceMachPort + 380 frame ---3: 0x00000001a7db4ea8 CoreFoundation__CFRunLoopRun + 1216
      frame ---4: 0x00000001a7db44bc CoreFoundationCFRunLoopRunSpecific + 600 frame ---5: 0x00000001a9031e30 Foundation-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232
      frame ---6: 0x00000001a906479c Foundation-[NSRunLoop(NSRunLoop) run] + 92 frame ---7: 0x000000011b30fc6c ZegoLiveRoom___lldb_unnamed_symbol26424$$ZegoLiveRoom + 324
      frame ---8: 0x00000001a919c0f0 Foundation__NSThread__start__ + 864 frame ---9: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320
      thread ---70, name = 'audio-dev-cap-guard'
      frame ---0: 0x00000001d3d43e24 libsystem_kernel.dylibsemaphore_timedwait_trap + 8 frame ---1: 0x000000011b2a40bc ZegoLiveRoom___lldb_unnamed_symbol24243$$ZegoLiveRoom + 84
      frame ---2: 0x000000011b299804 ZegoLiveRoom___lldb_unnamed_symbol23998$$ZegoLiveRoom + 56 frame ---3: 0x000000011b2a4038 ZegoLiveRoom___lldb_unnamed_symbol24242$$ZegoLiveRoom + 60
      frame ---4: 0x000000011b2a3ec4 ZegoLiveRoom___lldb_unnamed_symbol24238$$ZegoLiveRoom + 60 frame ---5: 0x000000011b2a3fac ZegoLiveRoom___lldb_unnamed_symbol24240$$ZegoLiveRoom + 168
      frame ---6: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320 thread ---71 frame ---0: 0x00000001d3d69c8c libsystem_kernel.dylibpoll + 8
      frame ---1: 0x0000000112c940c4 NIMSDKpoll_dispatch + 188 frame ---2: 0x0000000112c8ccf0 NIMSDKevent_base_loop + 1040
      frame ---3: 0x00000001129fe600 NIMSDKnbase::LibeventMessagePump::Run(nbase::MessagePump::Delegate*) + 336 frame ---4: 0x00000001129ff2c4 NIMSDKnbase::MessageLoop::Run() + 76
      frame ---5: 0x0000000112a0be5c NIMSDKnbase::FrameworkThread::Run() + 120 frame ---6: 0x0000000112a16958 NIMSDKnbase::Thread::ThreadProcFunc(void*) + 24
      frame ---7: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320 thread ---73 frame ---0: 0x00000001d3d6775c libsystem_kernel.dylib__psynch_cvwait + 8
      frame ---1: 0x00000001ef392550 libsystem_pthread.dylib_pthread_cond_wait + 1192 frame ---2: 0x00000001bbf56c8c libc++.1.dylibstd::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28
      frame ---3: 0x000000011b12dab0 ZegoLiveRoom___lldb_unnamed_symbol15991$$ZegoLiveRoom + 116 frame ---4: 0x000000011b12da3c ZegoLiveRoom___lldb_unnamed_symbol15990$$ZegoLiveRoom + 12
      frame ---5: 0x000000011b12db38 ZegoLiveRoom___lldb_unnamed_symbol15992$$ZegoLiveRoom + 44 frame ---6: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320
      thread ---74, name = 'AURemoteIO::IOThread'
      frame ---0: 0x00000001d3d43dd0 libsystem_kernel.dylibmach_msg_trap + 8 frame ---1: 0x00000001d3d43184 libsystem_kernel.dylibmach_msg + 76
      frame ---2: 0x00000001d7b1ef60 libEmbeddedSystemAUs.dylibvoid* caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, AURemoteIO::IOThread::IOThread(AURemoteIO&, caulk::thread::attributes const&, caulk::mach::os_workgroup const&)::'lambda'(), std::__1::tuple<> > >(void*) + 576 frame ---3: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320
      thread ---76, name = 'WebThread'
      frame ---0: 0x00000001d3d43dd0 libsystem_kernel.dylibmach_msg_trap + 8 frame ---1: 0x00000001d3d43184 libsystem_kernel.dylibmach_msg + 76
      frame ---2: 0x00000001a7dbacf8 CoreFoundation__CFRunLoopServiceMachPort + 380 frame ---3: 0x00000001a7db4ea8 CoreFoundation__CFRunLoopRun + 1216
      frame ---4: 0x00000001a7db44bc CoreFoundationCFRunLoopRunSpecific + 600 frame ---5: 0x00000001b514f8d0 WebCoreRunWebThread(void*) + 656
      frame ---6: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320 thread ---596, name = 'rtmp-play-tcp' frame ---0: 0x00000001d3d69c8c libsystem_kernel.dylibpoll + 8
      frame ---1: 0x000000011b257590 ZegoLiveRoom___lldb_unnamed_symbol22824$$ZegoLiveRoom + 284 frame ---2: 0x000000011b256fa4 ZegoLiveRoom___lldb_unnamed_symbol22813$$ZegoLiveRoom + 104
      frame ---3: 0x000000011b2a4038 ZegoLiveRoom___lldb_unnamed_symbol24242$$ZegoLiveRoom + 60 frame ---4: 0x000000011b2a3ec4 ZegoLiveRoom___lldb_unnamed_symbol24238$$ZegoLiveRoom + 60
      frame ---5: 0x000000011b2a3fac ZegoLiveRoom___lldb_unnamed_symbol24240$$ZegoLiveRoom + 168 frame ---6: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320
      thread ---597, name = 'dec_thread'
      frame ---0: 0x00000001d3d43e0c libsystem_kernel.dylibsemaphore_wait_trap + 8 frame ---1: 0x000000011b2a3414 ZegoLiveRoom___lldb_unnamed_symbol24220$$ZegoLiveRoom + 24
      frame ---2: 0x000000011b2a3ee4 ZegoLiveRoom___lldb_unnamed_symbol24238$$ZegoLiveRoom + 92 frame ---3: 0x000000011b2a3fac ZegoLiveRoom___lldb_unnamed_symbol24240$$ZegoLiveRoom + 168
      frame ---4: 0x00000001ef38eca8 libsystem_pthread.dylib_pthread_start + 320 thread ---826, queue = 'com.qgame.vap.render' frame ---0: 0x00000001d3d683d0 libsystem_kernel.dylib__ulock_wait + 8
      frame ---1: 0x0000000121dbe11c libdispatch.dylib_dlock_wait + 56 frame ---2: 0x0000000121dbdec8 libdispatch.dylib_dispatch_thread_event_wait_slow + 56
      frame ---3: 0x0000000121dcdba4 libdispatch.dylib__DISPATCH_WAIT_FOR_QUEUE__ + 368 frame ---4: 0x0000000121dcd51c libdispatch.dylib_dispatch_sync_f_slow + 184
      frame ---5: 0x00000001050f3fa4 MyApp__33-[UIView(.block_descriptor=0x0000000282828800) hwd_renderVideoRun]_block_invoke at UIView+VAP.m:392:17 frame ---6: 0x0000000121dbbb68 libdispatch.dylib_dispatch_call_block_and_release + 32
      frame ---7: 0x0000000121dbd5f0 libdispatch.dylib_dispatch_client_callout + 20 frame ---8: 0x0000000121dc4fa8 libdispatch.dylib_dispatch_lane_serial_drain + 736
      frame ---9: 0x0000000121dc5cb4 libdispatch.dylib_dispatch_lane_invoke + 448 frame ---10: 0x0000000121dd1e38 libdispatch.dylib_dispatch_workloop_worker_thread + 1520
      frame ---11: 0x00000001ef390908 libsystem_pthread.dylib_pthread_wqthread + 276 thread ---827 frame ---0: 0x00000001ef397774 libsystem_pthread.dylibstart_wqthread
      thread ---830
      frame ---0: 0x00000001d3d685bc libsystem_kernel.dylib__workq_kernreturn + 8 thread ---832 frame ---0: 0x00000001ef397774 libsystem_pthread.dylibstart_wqthread
      thread ---833
      frame ---0: 0x00000001ef397774 libsystem_pthread.dylib`start_wqthread
      thread ---836
      frame ---0: 0x0000000000000000
      (lldb)

@Monkey-Sun
Copy link
Author

卡死后,点暂停再bt all的堆栈。

@Monkey-Sun
Copy link
Author

有没有完整的日志文件,有的话可以贴一下

大佬,有联系方式吗?红包奉上。看了好久没找到根因,头大

@wubiner
Copy link
Collaborator

wubiner commented Feb 12, 2022

卡死后,点暂停再bt all的堆栈。

这个堆栈没有看到主线程的情况,你可以参考https://zhuanlan.zhihu.com/p/347468346 这里看一下'com.qgame.vap.render'这个线程unlock_wait是等的哪一个对象,另外可以分析一下主线程又是什么情况。

@wubiner
Copy link
Collaborator

wubiner commented Feb 12, 2022

你这里是很好复现么?是使用vap demo也可以复现?如果是的话,可以提供一下素材等,我这边调试看一下。

@wubiner
Copy link
Collaborator

wubiner commented Feb 12, 2022

有没有完整的日志文件,有的话可以贴一下

大佬,有联系方式吗?红包奉上。看了好久没找到根因,头大

你可以加一下vap的qq讨论群,719738292

@Monkey-Sun
Copy link
Author

https://video.hellobixin.com/video/d6fd8ff7c84f43d78cdda3d968b9e441.mp4

不是vap的demo,在工程里面。不易复现,线上又个用户反馈了一次,我自己试了很多遍才触发一次。

好的我加下群,谢谢。

@wubiner
Copy link
Collaborator

wubiner commented Feb 14, 2022

https://video.hellobixin.com/video/d6fd8ff7c84f43d78cdda3d968b9e441.mp4

不是vap的demo,在工程里面。不易复现,线上又个用户反馈了一次,我自己试了很多遍才触发一次。

好的我加下群,谢谢。

你这边出现的卡死,确定是主线程卡死了么?还是说vap特效画面停留在最后一帧。加群后可@斌儿

@Monkey-Sun
Copy link
Author

https://video.hellobixin.com/video/d6fd8ff7c84f43d78cdda3d968b9e441.mp4
不是vap的demo,在工程里面。不易复现,线上又个用户反馈了一次,我自己试了很多遍才触发一次。
好的我加下群,谢谢。

你这边出现的卡死,确定是主线程卡死了么?还是说vap特效画面停留在最后一帧。加群后可@斌儿

好的,已加群并at相关大神。谢谢哈。我看堆栈就是主线程卡住了。

@aofeng2009
Copy link

@Monkey-Sun @wubiner 可有最新进展?

@wubiner
Copy link
Collaborator

wubiner commented Apr 6, 2022

@Monkey-Sun @wubiner 可有最新进展?

当时提供的信息不能表明是vap导致的主线程卡死,所以没有结论。如果你有类似的crash,可贴附件信息。

@hales1229
Copy link

Thread 0 name: com.qgame.vap.decode (cpu_usage: 0.00%)
libsystem_kernel.dylib ___psynch_cvwait (in libsystem_kernel.dylib)
libsystem_pthread.dylib __pthread_cond_wait$VARIANT$mp (in libsystem_pthread.dylib)
CoreMedia _WaitOnCondition (in CoreMedia)
CoreMedia _FigSemaphoreWaitRelative (in CoreMedia)
VideoToolbox _VTDecompressionSessionRemote_WaitForAsynchronousFrames (in VideoToolbox)
Baiduxxx -[QGMP4FrameHWDecoder _onInputEnd] (in Baiduxxx:60)
Baiduxxx ___33-[QGMP4FrameHWDecoder onInputEnd]_block_invoke (in Baiduxxx:32)
libdispatch.dylib __dispatch_client_callout (in libdispatch.dylib)
libdispatch.dylib __dispatch_lane_barrier_sync_invoke_and_complete (in libdispatch.dylib)
Baiduxxx -[QGMP4FrameHWDecoder onInputEnd] (in Baiduxxx:152)
CoreFoundation _CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER (in CoreFoundation)
CoreFoundation ____CFXRegistrationPost_block_invoke (in CoreFoundation)
CoreFoundation __CFXRegistrationPost (in CoreFoundation)
CoreFoundation __CFXNotificationPost (in CoreFoundation)
Foundation -[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation)
UIKitCore -[UIApplication _deactivateForReason:notify:] (in UIKitCore)
UIKitCore -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] (in UIKitCore)
UIKitCore -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] (in UIKitCore)
UIKitCore -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] (in UIKitCore)
UIKitCore ___186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke (in UIKitCore)
UIKitCore +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] (in UIKitCore)
UIKitCore __UISceneSettingsDiffActionPerformChangesWithTransitionContext (in UIKitCore)
UIKitCore -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] (in UIKitCore)
UIKitCore ___64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke (in UIKitCore)
UIKitCore -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] (in UIKitCore)
UIKitCore -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] (in UIKitCore)
UIKitCore -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] (in UIKitCore)
FrontBoardServices -[FBSScene updater:didUpdateSettings:withDiff:transitionContext:completion:] (in FrontBoardServices)
FrontBoardServices ___94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke_2 (in FrontBoardServices)
FrontBoardServices -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] (in FrontBoardServices)
FrontBoardServices ___94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke (in FrontBoardServices)
libdispatch.dylib __dispatch_client_callout (in libdispatch.dylib)
libdispatch.dylib __dispatch_block_invoke_direct$VARIANT$mp (in libdispatch.dylib)
FrontBoardServices _FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK (in FrontBoardServices)
FrontBoardServices -[FBSSerialQueue _targetQueue_performNextIfPossible] (in FrontBoardServices)
FrontBoardServices -[FBSSerialQueue _performNextFromRunLoopSource] (in FrontBoardServices)
CoreFoundation _CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION (in CoreFoundation)
CoreFoundation ___CFRunLoopDoSource0 (in CoreFoundation)
CoreFoundation ___CFRunLoopDoSources0 (in CoreFoundation)
CoreFoundation ___CFRunLoopRun (in CoreFoundation)
CoreFoundation _CFRunLoopRunSpecific (in CoreFoundation)
GraphicsServices _GSEventRunModal (in GraphicsServices)
UIKitCore -[UIApplication _run] (in UIKitCore)
UIKitCore _UIApplicationMain (in UIKitCore)
Baiduxxx main (in Bai'du:main.m:13)
libdyld.dylib _start (in libdyld.dylib)
Thread 10000 name: Obtained stacks of main thread when main thread was stuck after 9.00s
libsystem_kernel.dylib ___psynch_cvwait (in libsystem_kernel.dylib)
libsystem_pthread.dylib __pthread_cond_wait$VARIANT$mp (in libsystem_pthread.dylib)
CoreMedia _WaitOnCondition (in CoreMedia)
CoreMedia _FigSemaphoreWaitRelative (in CoreMedia)
VideoToolbox _VTDecompressionSessionRemote_WaitForAsynchronousFrames (in VideoToolbox)
Baiduxxx -[QGMP4FrameHWDecoder _onInputEnd] (in Baiduxxx:60)
Baiduxxx ___33-[QGMP4FrameHWDecoder onInputEnd]_block_invoke (in Baiduxxxx'x'x:32)
libdispatch.dylib __dispatch_client_callout (in libdispatch.dylib)
libdispatch.dylib __dispatch_lane_barrier_sync_invoke_and_complete (in libdispatch.dylib)
Baiduxxx -[QGMP4FrameHWDecoder onInputEnd] (in Baiduxxx:152)
CoreFoundation _CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER (in CoreFoundation)
CoreFoundation ____CFXRegistrationPost_block_invoke (in CoreFoundation)
CoreFoundation __CFXRegistrationPost (in CoreFoundation)
CoreFoundation __CFXNotificationPost (in CoreFoundation)
Foundation -[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation)
UIKitCore -[UIApplication _deactivateForReason:notify:] (in UIKitCore)
UIKitCore -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] (in UIKitCore)
UIKitCore -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] (in UIKitCore)
UIKitCore -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] (in UIKitCore)
UIKitCore ___186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke (in UIKitCore)
UIKitCore +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] (in UIKitCore)
UIKitCore __UISceneSettingsDiffActionPerformChangesWithTransitionContext (in UIKitCore)
UIKitCore -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] (in UIKitCore)
UIKitCore ___64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke (in UIKitCore)
UIKitCore -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] (in UIKitCore)
UIKitCore -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] (in UIKitCore)
UIKitCore -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] (in UIKitCore)
FrontBoardServices -[FBSScene updater:didUpdateSettings:withDiff:transitionContext:completion:] (in FrontBoardServices)
FrontBoardServices ___94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke_2 (in FrontBoardServices)
FrontBoardServices -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] (in FrontBoardServices)
FrontBoardServices ___94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke (in FrontBoardServices)
libdispatch.dylib __dispatch_client_callout (in libdispatch.dylib)
libdispatch.dylib __dispatch_block_invoke_direct$VARIANT$mp (in libdispatch.dylib)
FrontBoardServices _FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK (in FrontBoardServices)
FrontBoardServices -[FBSSerialQueue _targetQueue_performNextIfPossible] (in FrontBoardServices)
FrontBoardServices -[FBSSerialQueue _performNextFromRunLoopSource] (in FrontBoardServices)
CoreFoundation _CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION (in CoreFoundation)
CoreFoundation ___CFRunLoopDoSource0 (in CoreFoundation)
CoreFoundation ___CFRunLoopDoSources0 (in CoreFoundation)
CoreFoundation ___CFRunLoopRun (in CoreFoundation)
CoreFoundation _CFRunLoopRunSpecific (in CoreFoundation)
GraphicsServices _GSEventRunModal (in GraphicsServices)
UIKitCore -[UIApplication _run] (in UIKitCore)
UIKitCore _UIApplicationMain (in UIKitCore)
Baiduxxx main (in Baiduxxx:main.m:13)
libdyld.dylib _start (in libdyld.dylib)
Thread 1 name: com.heimdallr.runloop.observer (cpu_usage: 0.00%)
Baiduxxx writeMainFile(HMDRunloopMonitorInfo*) (in Baiduxxx:HMDWatchDog.mm:699)
Baiduxxx timeoutDuration(HMDRunloopMonitorInfo*) (in Baiduxxx:HMDWatchDog.mm:462)
Baiduxxx HMDMainRunloopMonitor::runMonitor() (in Baiduxxx:HMDMainRunloopMonitor.mm:439)
Baiduxxx __DISPATCH_IS_CALLING_block_invoke (in Baiduxxx:HMDCrashAsyncStackTrace.m:174)
libdispatch.dylib __dispatch_call_block_and_release (in libdispatch.dylib)
libdispatch.dylib __dispatch_client_callout (in libdispatch.dylib)
libdispatch.dylib __dispatch_lane_serial_drain$VARIANT$mp (in libdispatch.dylib)
libdispatch.dylib __dispatch_lane_invoke$VARIANT$mp (in libdispatch.dylib)
libdispatch.dylib __dispatch_workloop_worker_thread (in libdispatch.dylib)
libsystem_pthread.dylib __pthread_wqthread (in libsystem_pthread.dylib)
libsystem_pthread.dylib _start_wqthread (in libsystem_pthread.dylib)
Thread 2 name: null (cpu_usage: 0.00%)
libsystem_kernel.dylib ___psynch_cvwait (in libsystem_kernel.dylib)
libsystem_pthread.dylib __pthread_cond_wait$VARIANT$mp (in libsystem_pthread.dylib)
libc++.1.dylib std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) (in libc++.1.dylib)
Baiduxxx FixedThreadPool::FixedThreadPool(unsigned long)::{lambda()#1}::operator()() const (in Baiduxxx:thread_pool.h:28)
Baiduxxx std::__1::__invoke<FixedThreadPool::FixedThreadPool(unsigned long)::{lambda()#1}, >(FixedThreadPool::FixedThreadPool(unsigned long)::{lambda()#1}&&, &&) (in Baiduxxx:type_traits:3747)
Baiduxxx std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, FixedThreadPool::FixedThreadPool(unsigned long)::{lambda()#1}, , >(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, FixedThreadPool::FixedThreadPool(unsigned long)::{lambda()#1}, >&, std::__1::__tuple_indices<()...>) (in Baiduxxx:thread:280)
Baiduxxx std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, FixedThreadPool::FixedThreadPool(unsigned long)::{lambda()#1}> >(void*) (in Baiduxxx:thread:291)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 3 name: null (cpu_usage: 0.00%)
libsystem_kernel.dylib ___psynch_cvwait (in libsystem_kernel.dylib)
libsystem_pthread.dylib __pthread_cond_wait$VARIANT$mp (in libsystem_pthread.dylib)
libc++.1.dylib std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) (in libc++.1.dylib)
Baiduxxx FixedThreadPool::FixedThreadPool(unsigned long)::{lambda()#1}::operator()() const (in Baiduxxx:thread_pool.h:28)
Baiduxxx std::__1::__invoke<FixedThreadPool::FixedThreadPool(unsigned long)::{lambda()#1}, >(FixedThreadPool::FixedThreadPool(unsigned long)::{lambda()#1}&&, &&) (in Baiduxxx:type_traits:3747)
Baiduxxx std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, FixedThreadPool::FixedThreadPool(unsigned long)::{lambda()#1}, , >(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, FixedThreadPool::FixedThreadPool(unsigned long)::{lambda()#1}, >&, std::__1::__tuple_indices<()...>) (in Baiduxxx:thread:280)
Baiduxxx std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, FixedThreadPool::FixedThreadPool(unsigned long)::{lambda()#1}> >(void*) (in Baiduxxx:thread:291)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 4 name: null (cpu_usage: 0.00%)
libsystem_kernel.dylib ___psynch_cvwait (in libsystem_kernel.dylib)
libsystem_pthread.dylib __pthread_cond_wait$VARIANT$mp (in libsystem_pthread.dylib)
libc++.1.dylib std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) (in libc++.1.dylib)
Baiduxxx FixedThreadPool::FixedThreadPool(unsigned long)::{lambda()#1}::operator()() const (in Baiduxxx:thread_pool.h:28)
Baiduxxx std::__1::__invoke<FixedThreadPool::FixedThreadPool(unsigned long)::{lambda()#1}, >(FixedThreadPool::FixedThreadPool(unsigned long)::{lambda()#1}&&, &&) (in Baiduxxx:type_traits:3747)
Baiduxxx std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, FixedThreadPool::FixedThreadPool(unsigned long)::{lambda()#1}, , >(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, FixedThreadPool::FixedThreadPool(unsigned long)::{lambda()#1}, >&, std::__1::__tuple_indices<()...>) (in Baiduxxx:thread:280)
Baiduxxx std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, FixedThreadPool::FixedThreadPool(unsigned long)::{lambda()#1}> >(void*) (in Baiduxxx:thread:291)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 5 name: com.apple.uikit.eventfetch-thread (cpu_usage: 0.50%)
libsystem_kernel.dylib _mach_msg_trap (in libsystem_kernel.dylib)
libsystem_kernel.dylib _mach_msg (in libsystem_kernel.dylib)
CoreFoundation ___CFRunLoopServiceMachPort (in CoreFoundation)
CoreFoundation ___CFRunLoopRun (in CoreFoundation)
CoreFoundation _CFRunLoopRunSpecific (in CoreFoundation)
Foundation -[NSRunLoop(NSRunLoop) runMode:beforeDate:] (in Foundation)
Foundation -[NSRunLoop(NSRunLoop) runUntilDate:] (in Foundation)
UIKitCore -[UIEventFetcher threadMain] (in UIKitCore)
Foundation _NSThread__start (in Foundation)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 6 name: Baiduxxx flutter engine.1.ui (cpu_usage: 0.00%)
libsystem_kernel.dylib _mach_msg_trap (in libsystem_kernel.dylib)
libsystem_kernel.dylib _mach_msg (in libsystem_kernel.dylib)
CoreFoundation ___CFRunLoopServiceMachPort (in CoreFoundation)
CoreFoundation ___CFRunLoopRun (in CoreFoundation)
CoreFoundation _CFRunLoopRunSpecific (in CoreFoundation)
Flutter fml::MessageLoopDarwin::Run() (in Flutter:message_loop_darwin.mm:46)
Flutter std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, fml::Thread::Thread(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)::$_0> >(void*) (in Flutter:thread:352)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 7 name: Baiduxxx flutter engine.1.raster (cpu_usage: 0.00%)
libsystem_kernel.dylib _mach_msg_trap (in libsystem_kernel.dylib)
libsystem_kernel.dylib _mach_msg (in libsystem_kernel.dylib)
CoreFoundation ___CFRunLoopServiceMachPort (in CoreFoundation)
CoreFoundation ___CFRunLoopRun (in CoreFoundation)
CoreFoundation _CFRunLoopRunSpecific (in CoreFoundation)
Flutter fml::MessageLoopDarwin::Run() (in Flutter:message_loop_darwin.mm:46)
Flutter std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, fml::Thread::Thread(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)::$_0> >(void*) (in Flutter:thread:352)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 8 name: Baiduxxx flutter engine.1.io (cpu_usage: 0.00%)
libsystem_kernel.dylib _mach_msg_trap (in libsystem_kernel.dylib)
libsystem_kernel.dylib _mach_msg (in libsystem_kernel.dylib)
CoreFoundation ___CFRunLoopServiceMachPort (in CoreFoundation)
CoreFoundation ___CFRunLoopRun (in CoreFoundation)
CoreFoundation _CFRunLoopRunSpecific (in CoreFoundation)
Flutter fml::MessageLoopDarwin::Run() (in Flutter:message_loop_darwin.mm:46)
Flutter std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, fml::Thread::Thread(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)::$_0> >(void*) (in Flutter:thread:352)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 9 name: io.flutter.worker.1 (cpu_usage: 0.00%)
libsystem_kernel.dylib ___psynch_cvwait (in libsystem_kernel.dylib)
libsystem_pthread.dylib __pthread_cond_wait$VARIANT$mp (in libsystem_pthread.dylib)
libc++.1.dylib std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) (in libc++.1.dylib)
Flutter std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0> >(void*) (in Flutter:thread:352)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 10 name: io.flutter.worker.2 (cpu_usage: 0.00%)
libsystem_kernel.dylib ___psynch_cvwait (in libsystem_kernel.dylib)
libsystem_pthread.dylib __pthread_cond_wait$VARIANT$mp (in libsystem_pthread.dylib)
libc++.1.dylib std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) (in libc++.1.dylib)
Flutter std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0> >(void*) (in Flutter:thread:352)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 11 name: dart:io EventHandler (cpu_usage: 0.00%)
libsystem_kernel.dylib _kevent (in libsystem_kernel.dylib)
Flutter dart::bin::EventHandlerImplementation::EventHandlerEntry(unsigned long) (in Flutter:eventhandler_macos.cc:451)
Flutter dart::bin::ThreadStart(void*) (in Flutter:thread_macos.cc:87)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 12 name: MainRunloopMonitor (cpu_usage: 3.20%)
libsystem_kernel.dylib _semaphore_timedwait_trap (in libsystem_kernel.dylib)
libdispatch.dylib __dispatch_sema4_timedwait$VARIANT$mp (in libdispatch.dylib)
libdispatch.dylib __dispatch_semaphore_wait_slow (in libdispatch.dylib)
Baiduxxx -[BLYMainRunloopMonitorManager monitorThreadRun] (in Baiduxxx:172)
Foundation _NSThread__start (in Foundation)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 13 name: Baiduxxx_profiler_monitor_thread (cpu_usage: 0.00%)
libsystem_kernel.dylib _mach_msg_trap (in libsystem_kernel.dylib)
libsystem_kernel.dylib _mach_msg (in libsystem_kernel.dylib)
CoreFoundation ___CFRunLoopServiceMachPort (in CoreFoundation)
CoreFoundation ___CFRunLoopRun (in CoreFoundation)
CoreFoundation _CFRunLoopRunSpecific (in CoreFoundation)
Foundation -[NSRunLoop(NSRunLoop) runMode:beforeDate:] (in Foundation)
Baiduxxx -[KEPProfiler threadMain:] (in Baiduxxx:KEPProfiler.m:160)
Foundation _NSThread__start (in Foundation)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 14 name: com.hmd.mach_server (cpu_usage: 0.00%)
libsystem_kernel.dylib _mach_msg_trap (in libsystem_kernel.dylib)
libsystem_kernel.dylib _mach_msg (in libsystem_kernel.dylib)
Baiduxxx hmd_mach_server (in Baiduxxx:HMDCrashDetectMach.c:224)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 15 name: null (cpu_usage: 0.00%)
libsystem_kernel.dylib ___psynch_cvwait (in libsystem_kernel.dylib)
libsystem_pthread.dylib __pthread_cond_wait$VARIANT$mp (in libsystem_pthread.dylib)
libc++.1.dylib std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) (in libc++.1.dylib)
Baiduxxx BDAppender::__async_log_thread() (in Baiduxxx:BDAppender.cpp:364)
Baiduxxx std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, void (BDAppender::)(), BDAppender> >(void*) (in Baiduxxx:thread:297)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 16 name: com.hmd.crash.listener (cpu_usage: 0.00%)
libsystem_kernel.dylib _mach_msg_trap (in libsystem_kernel.dylib)
libsystem_kernel.dylib _mach_msg (in libsystem_kernel.dylib)
libsystem_kernel.dylib _thread_suspend (in libsystem_kernel.dylib)
Baiduxxx thread_entrance (in Baiduxxx:HMDCrashDeadLockMonitor.c:89)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 17 name: com.apple.NSURLConnectionLoader (cpu_usage: 0.00%)
libsystem_kernel.dylib _mach_msg_trap (in libsystem_kernel.dylib)
libsystem_kernel.dylib _mach_msg (in libsystem_kernel.dylib)
CoreFoundation ___CFRunLoopServiceMachPort (in CoreFoundation)
CoreFoundation ___CFRunLoopRun (in CoreFoundation)
CoreFoundation _CFRunLoopRunSpecific (in CoreFoundation)
CFNetwork __CFURLStorageSessionCopyCache (in CFNetwork)
Foundation _NSThread__start (in Foundation)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 18 name: com.squareup.SocketRocket.NetworkThread (cpu_usage: 0.00%)
libsystem_kernel.dylib _mach_msg_trap (in libsystem_kernel.dylib)
libsystem_kernel.dylib _mach_msg (in libsystem_kernel.dylib)
CoreFoundation ___CFRunLoopServiceMachPort (in CoreFoundation)
CoreFoundation ___CFRunLoopRun (in CoreFoundation)
CoreFoundation _CFRunLoopRunSpecific (in CoreFoundation)
Foundation -[NSRunLoop(NSRunLoop) runMode:beforeDate:] (in Foundation)
Baiduxxx -[_SRRunLoopThread main] (in Baiduxxx:SRWebSocket.m:1903)
Foundation _NSThread__start (in Foundation)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 19 name: com.apple.CFSocket.private (cpu_usage: 0.00%)
libsystem_kernel.dylib _select$DARWIN_EXTSN (in libsystem_kernel.dylib)
CoreFoundation ___CFSocketManager (in CoreFoundation)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 20 name: null (cpu_usage: 0.00%)
libsystem_kernel.dylib ___psynch_cvwait (in libsystem_kernel.dylib)
libsystem_pthread.dylib __pthread_cond_wait$VARIANT$mp (in libsystem_pthread.dylib)
NIMSDK ((null))
NIMSDK ((null))
NIMSDK ((null))
NIMSDK ((null))
NIMSDK ((null))
NIMSDK ((null))
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 21 name: DataReportTCPChannel (cpu_usage: 0.00%)
libsystem_kernel.dylib _kevent (in libsystem_kernel.dylib)
Baiduxxx txliteav::TXCIOListener::Listen(int) (in Baiduxxx:132)
Baiduxxx std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, txliteav::TXCIOLooper::Start()::$_2> >(void*) (in Baiduxxx:1444)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 22 name: null (cpu_usage: 0.00%)
libsystem_kernel.dylib ___semwait_signal (in libsystem_kernel.dylib)
libsystem_c.dylib _nanosleep (in libsystem_c.dylib)
libsystem_c.dylib _sleep (in libsystem_c.dylib)
QYSDK ((null))
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 23 name: SentryCrash Exception Handler (Secondary) (cpu_usage: 0.00%)
libsystem_kernel.dylib _mach_msg_trap (in libsystem_kernel.dylib)
libsystem_kernel.dylib _mach_msg (in libsystem_kernel.dylib)
libsystem_kernel.dylib _thread_suspend (in libsystem_kernel.dylib)
QYSDK ((null))
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 24 name: SentryCrash Exception Handler (Primary) (cpu_usage: 0.00%)
libsystem_kernel.dylib _mach_msg_trap (in libsystem_kernel.dylib)
libsystem_kernel.dylib _mach_msg (in libsystem_kernel.dylib)
QYSDK ((null))
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 25 name: com.apple.CFNetwork.CustomProtocols (cpu_usage: 0.00%)
libsystem_kernel.dylib _mach_msg_trap (in libsystem_kernel.dylib)
libsystem_kernel.dylib _mach_msg (in libsystem_kernel.dylib)
CoreFoundation ___CFRunLoopServiceMachPort (in CoreFoundation)
CoreFoundation ___CFRunLoopRun (in CoreFoundation)
CoreFoundation _CFRunLoopRunSpecific (in CoreFoundation)
CFNetwork __CFURLStorageSessionCopyCache (in CFNetwork)
Foundation _NSThread__start (in Foundation)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 26 name: AVAudioSession Notify Thread (cpu_usage: 0.00%)
libsystem_kernel.dylib _mach_msg_trap (in libsystem_kernel.dylib)
libsystem_kernel.dylib _mach_msg (in libsystem_kernel.dylib)
CoreFoundation ___CFRunLoopServiceMachPort (in CoreFoundation)
CoreFoundation ___CFRunLoopRun (in CoreFoundation)
CoreFoundation _CFRunLoopRunSpecific (in CoreFoundation)
AudioSession GenericRunLoopThread::Entry(void*) (in AudioSession)
AudioSession CAPThread::Entry(CAPThread*) (in AudioSession)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 27 name: null (cpu_usage: 0.00%)
libsystem_kernel.dylib ___psynch_cvwait (in libsystem_kernel.dylib)
libsystem_pthread.dylib __pthread_cond_wait$VARIANT$mp (in libsystem_pthread.dylib)
libc++.1.dylib std::__1::condition_variable::__do_timed_wait(std::__1::unique_lockstd::__1::mutex&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<(long)1, (long)1000000000> > >) (in libc++.1.dylib)
Baiduxxx std::__1::condition_variable::wait_until<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<(long)1, (long)1000000000> > >(std::__1::unique_lockstd::__1::mutex&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<(long)1, (long)1000000000> > > const&) (in Baiduxxx:120)
Baiduxxx std::__1::condition_variable_any::wait_until<std::__1::unique_lock, std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<(long)1, (long)1000000000> > >(std::__1::unique_lock&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<(long)1, (long)1000000000> > > const&) (in Baiduxxx:100)
Baiduxxx TXCCondition::wait(std::__1::unique_lock&, long) (in Baiduxxx:84)
Baiduxxx TXCCondition::wait(long) (in Baiduxxx:56)
Baiduxxx __async_log_thread() (in Baiduxxx:172)
Baiduxxx std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, void ()()> >(void) (in Baiduxxx:40)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 28 name: AudioDeviceCaptureGuardThread (cpu_usage: 0.00%)
libsystem_kernel.dylib ___psynch_cvwait (in libsystem_kernel.dylib)
libsystem_pthread.dylib __pthread_cond_wait$VARIANT$mp (in libsystem_pthread.dylib)
libc++.1.dylib std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) (in libc++.1.dylib)
Baiduxxx txliteav::MessageLoop::MainLoop() (in Baiduxxx:636)
Baiduxxx std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, void (txliteav::MessageLoop::)(), txliteav::MessageLoop> >(void*) (in Baiduxxx:60)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 29 name: com.apple.coreaudio.AQClient (cpu_usage: 0.00%)
libsystem_kernel.dylib _mach_msg_trap (in libsystem_kernel.dylib)
libsystem_kernel.dylib _mach_msg (in libsystem_kernel.dylib)
CoreFoundation ___CFRunLoopServiceMachPort (in CoreFoundation)
CoreFoundation ___CFRunLoopRun (in CoreFoundation)
CoreFoundation _CFRunLoopRunSpecific (in CoreFoundation)
AudioToolbox GenericRunLoopThread::Entry(void*) (in AudioToolbox)
libAudioToolboxUtility.dylib CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) (in libAudioToolboxUtility.dylib)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 30 name: JavaScriptCore bmalloc scavenger (cpu_usage: 0.00%)
libsystem_kernel.dylib ___psynch_cvwait (in libsystem_kernel.dylib)
libsystem_pthread.dylib __pthread_cond_wait$VARIANT$mp (in libsystem_pthread.dylib)
libc++.1.dylib std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) (in libc++.1.dylib)
JavaScriptCore std::__1::condition_variable_any::wait<std::__1::unique_lockbmalloc::Mutex >(std::__1::unique_lockbmalloc::Mutex&) (in JavaScriptCore)
JavaScriptCore bmalloc::Scavenger::threadRunLoop() (in JavaScriptCore)
JavaScriptCore bmalloc::Scavenger::threadEntryPoint(bmalloc::Scavenger*) (in JavaScriptCore)
JavaScriptCore std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, void ()(bmalloc::Scavenger), bmalloc::Scavenger*> >(void*) (in JavaScriptCore)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 31 name: null (cpu_usage: 0.00%)
libsystem_kernel.dylib _poll (in libsystem_kernel.dylib)
NIMSDK ((null))
NIMSDK ((null))
NIMSDK ((null))
NIMSDK ((null))
NIMSDK ((null))
NIMSDK ((null))
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 32 name: LocalAudioStreamThread (cpu_usage: 0.00%)
libsystem_kernel.dylib ___psynch_cvwait (in libsystem_kernel.dylib)
libsystem_pthread.dylib __pthread_cond_wait$VARIANT$mp (in libsystem_pthread.dylib)
libc++.1.dylib std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) (in libc++.1.dylib)
Baiduxxx txliteav::MessageLoop::MainLoop() (in Baiduxxx:636)
Baiduxxx std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, void (txliteav::MessageLoop::)(), txliteav::MessageLoop> >(void*) (in Baiduxxx:60)
libsystem_pthread.dylib __pthread_start (in libsystem_pthread.dylib)
libsystem_pthread.dylib _thread_start (in libsystem_pthread.dylib)
Thread 33 name: com.qgame.vap.render (cpu_usage: 0.00%)
libsystem_kernel.dylib ___ulock_wait (in libsystem_kernel.dylib)
libdispatch.dylib __dlock_wait (in libdispatch.dylib)
libdispatch.dylib __dispatch_thread_event_wait_slow$VARIANT$mp (in libdispatch.dylib)
libdispatch.dylib _DISPATCH_WAIT_FOR_QUEUE (in libdispatch.dylib)
libdispatch.dylib __dispatch_sync_f_slow (in libdispatch.dylib)
Baiduxxx ___33-[UIView(VAP) hwd_renderVideoRun]_block_invoke (in Baiduxxx:312)
Baiduxxx __DISPATCH_IS_CALLING_block_invoke (in Baiduxxx:HMDCrashAsyncStackTrace.m:174)
libdispatch.dylib __dispatch_call_block_and_release (in libdispatch.dylib)
libdispatch.dylib __dispatch_client_callout (in libdispatch.dylib)
libdispatch.dylib __dispatch_lane_serial_drain$VARIANT$mp (in libdispatch.dylib)
libdispatch.dylib __dispatch_lane_invoke$VARIANT$mp (in libdispatch.dylib)
libdispatch.dylib __dispatch_workloop_worker_thread (in libdispatch.dylib)
libsystem_pthread.dylib __pthread_wqthread (in libsystem_pthread.dylib)
libsystem_pthread.dylib _start_wqthread (in libsystem_pthread.dylib)
Thread 34 name: null (cpu_usage: 0.00%)
libsystem_kernel.dylib ___workq_kernreturn (in libsystem_kernel.dylib)
libsystem_pthread.dylib __pthread_wqthread (in libsystem_pthread.dylib)
libsystem_pthread.dylib _start_wqthread (in libsystem_pthread.dylib)
Thread 35 name: null (cpu_usage: 1.20%)
libsystem_kernel.dylib ___workq_kernreturn (in libsystem_kernel.dylib)
libsystem_pthread.dylib __pthread_wqthread (in libsystem_pthread.dylib)
libsystem_pthread.dylib _start_wqthread (in libsystem_pthread.dylib)
Thread 36 name: null (cpu_usage: 0.00%)
libsystem_kernel.dylib ___workq_kernreturn (in libsystem_kernel.dylib)
libsystem_pthread.dylib __pthread_wqthread (in libsystem_pthread.dylib)
libsystem_pthread.dylib _start_wqthread (in libsystem_pthread.dylib)
Thread 37 name: null (cpu_usage: 3.70%)
libsystem_kernel.dylib ___workq_kernreturn (in libsystem_kernel.dylib)
libsystem_pthread.dylib __pthread_wqthread (in libsystem_pthread.dylib)
libsystem_pthread.dylib _start_wqthread (in libsystem_pthread.dylib)
Thread 38 name: null (cpu_usage: 0.00%)
libsystem_kernel.dylib ___workq_kernreturn (in libsystem_kernel.dylib)
libsystem_pthread.dylib __pthread_wqthread (in libsystem_pthread.dylib)
libsystem_pthread.dylib _start_wqthread (in libsystem_pthread.dylib)
Thread 39 name: null (cpu_usage: 0.00%)

最近监控到卡顿问题频发,@Monkey-Sun @wubiner 看看这个日志是否能确定呢

@XGNoCopy
Copy link

@Monkey-Sun 请问你有解决这个问题吗?我这边也遇到了相同的问题。

@XGNoCopy
Copy link

com.qgame.vap.render
0
libsystem_kernel.dylib
__semwait_signal + 8
1
libsystem_c.dylib
nanosleep + 220
2
Foundation
+[NSThread sleepForTimeInterval:] + 160
3
QGVAPlayer
__33-[UIView(VAP) hwd_renderVideoRun]_block_invoke + 380
4
libdispatch.dylib
_dispatch_call_block_and_release + 32
5
libdispatch.dylib
_dispatch_client_callout + 20
6
libdispatch.dylib
_dispatch_lane_serial_drain + 748
7
libdispatch.dylib
_dispatch_lane_invoke + 380
8
libdispatch.dylib
_dispatch_root_queue_drain_deferred_wlh + 288
9
libdispatch.dylib
_dispatch_workloop_worker_thread + 404
10
libsystem_pthread.dylib
_pthread_wqthread + 288
11
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

5 participants