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

The client occasionally "hangs" on startup #2

Open
jhanssen opened this issue Sep 24, 2012 · 0 comments
Open

The client occasionally "hangs" on startup #2

jhanssen opened this issue Sep 24, 2012 · 0 comments

Comments

@jhanssen
Copy link
Owner

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

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

1 participant