You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the client doesn't hang on startup then it seems fine until shutdown. If it does hang, it occasionally wakes up but not for long. Looking at the GDB output below it seems that something thread 10 (not explicitly started by the client) is doing makes thread 11 (explicitly started) sleep for quite some time when trying to decode the frame.
(gdb) t a a bt
Thread 11 (process 1383):
#0 0x00007fff8d703e42 in __semwait_signal () #1 0x00007fff8d1f4dea in nanosleep () #2 0x00007fff8d1f4bb5 in usleep () #3 0x000000010a0b6f6b in AVFQTX_CreateMediaAcceleratorInterface ()
#4 0x00007fff8c8f520b in VTImageRotationSessionCreate ()
#5 0x00007fff8c888cbf in VTDecompressionSessionCanAcceptFormatDescription ()
#6 0x00007fff8c888ea3 in VTDecompressionSessionDecodeFrame ()
#7 0x00000001012c98a9 in VDADecoderDecode ()
#8 0x00000001000079cf in Decoder::decode (this=0x7fff5fbff770, data=0x10ab44d90 "", size=1495) at /Users/jhanssen/dev/missouri/client/Decoder.cpp:253
#9 0x0000000100005637 in Client::streamCallback (data=0x10ab44d90 "", size=1495, userData=0x7fff5fbff718) at /Users/jhanssen/dev/missouri/client/Client.cpp:72
#10 0x000000010000d863 in UdpSocketPrivate::run (arg=0x101c2a3d0) at UdpSocket.cpp:115
#11 0x00007fff8d23e8bf in _pthread_start ()
#12 0x00007fff8d241b75 in thread_start ()
Thread 10 (process 1383):
#0 0x00007fff8d703e42 in __semwait_signal () #1 0x00007fff8d1f4dea in nanosleep () #2 0x00007fff8d1f4bb5 in usleep () #3 0x000000010a591b0d in Gen7IntelGVAQueryAVDCommandStatus ()
#4 0x000000010a0abc47 in AVF_CreateMediaAcceleratorInterface ()
#5 0x000000010a0ac20e in AVF_CreateMediaAcceleratorInterface ()
#6 0x000000010a0ac2d1 in AVF_CreateMediaAcceleratorInterface ()
#7 0x000000010a0ac68d in AVF_CreateMediaAcceleratorInterface ()
#8 0x000000010a0abb2e in AVF_CreateMediaAcceleratorInterface ()
#9 0x00007fff8d23e8bf in _pthread_start ()
#10 0x00007fff8d241b75 in thread_start ()
Thread 9 (process 1383):
#0 0x00007fff8d704192 in __workq_kernreturn () #1 0x00007fff8d240594 in _pthread_wqthread () #2 0x00007fff8d241b85 in start_wqthread ()
Thread 8 (process 1383):
#0 0x00007fff8d704192 in __workq_kernreturn () #1 0x00007fff8d240594 in _pthread_wqthread () #2 0x00007fff8d241b85 in start_wqthread ()
Thread 7 (process 1383):
#0 0x00007fff8d703df2 in select$DARWIN_EXTSN () #1 0x000000010000e755 in TcpSocketPrivate::run (arg=0x101c286b0) at TcpSocket.cpp:93 #2 0x00007fff8d23e8bf in _pthread_start () #3 0x00007fff8d241b75 in thread_start ()
Thread 2 (process 1383):
#0 0x00007fff8d7047e6 in kevent () #1 0x00007fff88cb9786 in _dispatch_mgr_invoke () #2 0x00007fff88cb8316 in _dispatch_mgr_thread ()
Thread 1 (process 1383):
#0 0x00007fff8d70267a in mach_msg_trap () #1 0x00007fff8d701d71 in mach_msg () #2 0x00007fff8b13250c in __CFRunLoopServiceMachPort () #3 0x00007fff8b13ac74 in __CFRunLoopRun ()
#4 0x00007fff8b13a486 in CFRunLoopRunSpecific ()
#5 0x00007fff8d2d02bf in RunCurrentEventLoopInMode ()
#6 0x00007fff8d2d756d in ReceiveNextEventCommon ()
#7 0x00007fff8d2d73fa in BlockUntilNextEventMatchingListInMode ()
#8 0x000000010002e779 in _DPSNextEvent ()
#9 0x000000010002e07d in -NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:
#10 0x000000010002a9b9 in -NSApplication run
#11 0x0000000100004fa7 in main (argc=2, argv=0x7fff5fbff918) at /Users/jhanssen/dev/missouri/client/main.mm:136
The text was updated successfully, but these errors were encountered:
If the client doesn't hang on startup then it seems fine until shutdown. If it does hang, it occasionally wakes up but not for long. Looking at the GDB output below it seems that something thread 10 (not explicitly started by the client) is doing makes thread 11 (explicitly started) sleep for quite some time when trying to decode the frame.
(gdb) t a a bt
Thread 11 (process 1383):
#0 0x00007fff8d703e42 in __semwait_signal ()
#1 0x00007fff8d1f4dea in nanosleep ()
#2 0x00007fff8d1f4bb5 in usleep ()
#3 0x000000010a0b6f6b in AVFQTX_CreateMediaAcceleratorInterface ()
#4 0x00007fff8c8f520b in VTImageRotationSessionCreate ()
#5 0x00007fff8c888cbf in VTDecompressionSessionCanAcceptFormatDescription ()
#6 0x00007fff8c888ea3 in VTDecompressionSessionDecodeFrame ()
#7 0x00000001012c98a9 in VDADecoderDecode ()
#8 0x00000001000079cf in Decoder::decode (this=0x7fff5fbff770, data=0x10ab44d90 "", size=1495) at /Users/jhanssen/dev/missouri/client/Decoder.cpp:253
#9 0x0000000100005637 in Client::streamCallback (data=0x10ab44d90 "", size=1495, userData=0x7fff5fbff718) at /Users/jhanssen/dev/missouri/client/Client.cpp:72
#10 0x000000010000d863 in UdpSocketPrivate::run (arg=0x101c2a3d0) at UdpSocket.cpp:115
#11 0x00007fff8d23e8bf in _pthread_start ()
#12 0x00007fff8d241b75 in thread_start ()
Thread 10 (process 1383):
#0 0x00007fff8d703e42 in __semwait_signal ()
#1 0x00007fff8d1f4dea in nanosleep ()
#2 0x00007fff8d1f4bb5 in usleep ()
#3 0x000000010a591b0d in Gen7IntelGVAQueryAVDCommandStatus ()
#4 0x000000010a0abc47 in AVF_CreateMediaAcceleratorInterface ()
#5 0x000000010a0ac20e in AVF_CreateMediaAcceleratorInterface ()
#6 0x000000010a0ac2d1 in AVF_CreateMediaAcceleratorInterface ()
#7 0x000000010a0ac68d in AVF_CreateMediaAcceleratorInterface ()
#8 0x000000010a0abb2e in AVF_CreateMediaAcceleratorInterface ()
#9 0x00007fff8d23e8bf in _pthread_start ()
#10 0x00007fff8d241b75 in thread_start ()
Thread 9 (process 1383):
#0 0x00007fff8d704192 in __workq_kernreturn ()
#1 0x00007fff8d240594 in _pthread_wqthread ()
#2 0x00007fff8d241b85 in start_wqthread ()
Thread 8 (process 1383):
#0 0x00007fff8d704192 in __workq_kernreturn ()
#1 0x00007fff8d240594 in _pthread_wqthread ()
#2 0x00007fff8d241b85 in start_wqthread ()
Thread 7 (process 1383):
#0 0x00007fff8d703df2 in select$DARWIN_EXTSN ()
#1 0x000000010000e755 in TcpSocketPrivate::run (arg=0x101c286b0) at TcpSocket.cpp:93
#2 0x00007fff8d23e8bf in _pthread_start ()
#3 0x00007fff8d241b75 in thread_start ()
Thread 2 (process 1383):
#0 0x00007fff8d7047e6 in kevent ()
#1 0x00007fff88cb9786 in _dispatch_mgr_invoke ()
#2 0x00007fff88cb8316 in _dispatch_mgr_thread ()
Thread 1 (process 1383):
#0 0x00007fff8d70267a in mach_msg_trap ()
#1 0x00007fff8d701d71 in mach_msg ()
#2 0x00007fff8b13250c in __CFRunLoopServiceMachPort ()
#3 0x00007fff8b13ac74 in __CFRunLoopRun ()
#4 0x00007fff8b13a486 in CFRunLoopRunSpecific ()
#5 0x00007fff8d2d02bf in RunCurrentEventLoopInMode ()
#6 0x00007fff8d2d756d in ReceiveNextEventCommon ()
#7 0x00007fff8d2d73fa in BlockUntilNextEventMatchingListInMode ()
#8 0x000000010002e779 in _DPSNextEvent ()
#9 0x000000010002e07d in -NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:
#10 0x000000010002a9b9 in -NSApplication run
#11 0x0000000100004fa7 in main (argc=2, argv=0x7fff5fbff918) at /Users/jhanssen/dev/missouri/client/main.mm:136
The text was updated successfully, but these errors were encountered: