Hi
I am working on iphone application in which I m trying to play a video clip and application hangs after 12 sec. Crash shows error mach_msg_trap. I tried debugging and it show error in this format.
Attaching to process 3114. [Switching to process 3114 thread 0x8d03] (gdb) apply thread all bt Undefined command: "apply". Try "help". (gdb) thread all bt No symbol "all" in current context. (gdb) thread apply all bt
Thread 14 (process 3114 thread 0xb003):
0 0x9632846e in __semwait_signal ()
1 0x963533e6 in _pthread_cond_wait ()
2 0x96352dcd in pthread_cond_wait$UNIX2003 ()
3 0x03efd83e in WaitOnCondition ()
4 0x03efdaf1 in FigSemaphoreWaitRelative ()
5 0x03f33eb1 in vtDecompressionDuctAsyncPixelTransfer_WorkerThread ()
6 0x96352155 in _pthread_start ()
7 0x96352012 in thread_start ()
Thread 13 (process 3114 thread 0x9e03):
0 0x963212e6 in semaphore_timedwait_signal_trap ()
1 0x963532af in _pthread_cond_wait ()
2 0x96354b33 in pthread_cond_timedwait_relative_np ()
3 0x03cb5699 in CAGuard::WaitFor ()
4 0x03cb6c58 in CAGuard::WaitUntil ()
5 0x03cb5b30 in HP_IOThread::WorkLoop ()
6 0x03cb56fb in HP_IOThread::ThreadEntry ()
7 0x03ca7760 in CAPThread::Entry ()
8 0x96352155 in _pthread_start ()
9 0x96352012 in thread_start ()
Thread 12 (process 3114 thread 0x9c07):
0 0x9632846e in __semwait_signal ()
1 0x963533e6 in _pthread_cond_wait ()
2 0x96352dcd in pthread_cond_wait$UNIX2003 ()
3 0x03967499 in CAGuard::Wait ()
4 0x0395eb3e in AQConverterManager::AQConverterThread::Run ()
5 0x0395e981 in AQConverterManager::AQConverterThread::ConverterThreadEntry ()
6 0x039263d9 in CAPThread::Entry ()
7 0x96352155 in _pthread_start ()
8 0x96352012 in thread_start ()
Thread 11 (process 3114 thread 0x9003):
0 0x9632846e in __semwait_signal ()
1 0x963533e6 in _pthread_cond_wait ()
2 0x96352dcd in pthread_cond_wait$UNIX2003 ()
3 0x03efd83e in WaitOnCondition ()
4 0x03efdaf1 in FigSemaphoreWaitRelative ()
5 0x04368808 in videoMentorThreadWaitForOutputQueueToDropBelowHighWater ()
6 0x043690ae in videoMentorThreadGenerateAndEnqueueFrame ()
7 0x0436e12a in videoMentorThread ()
8 0x96352155 in _pthread_start ()
9 0x96352012 in thread_start ()
Thread 10 (process 3114 thread 0x8f03):
0 0x9632846e in __semwait_signal ()
1 0x963533e6 in _pthread_cond_wait ()
2 0x96352dcd in pthread_cond_wait$UNIX2003 ()
3 0x03efd83e in WaitOnCondition ()
4 0x03efdaf1 in FigSemaphoreWaitRelative ()
5 0x04362c86 in audioMentorThread ()
6 0x96352155 in _pthread_start ()
7 0x96352012 in thread_start ()
Thread 9 (process 3114 thread 0x8e03):
0 0x963212e6 in semaphore_timedwait_signal_trap ()
1 0x963532af in _pthread_cond_wait ()
2 0x96354b33 in pthread_cond_timedwait_relative_np ()
3 0x03efdb3a in FigSemaphoreWaitRelative ()
4 0x03efbdda in FigScheduledFileIOThread ()
5 0x96352155 in _pthread_start ()
6 0x96352012 in thread_start ()
Thread 8 (process 3114 thread 0x8d03):
0 0x0425dba1 in CBitStreamDeco::PeekBits ()
1 0x0425d22b in ReadAVideoPacket ()
2 0x0425d9a8 in MPEG4DMPR_Decompress ()
3 0x03f4f0a3 in MPEG4VideoDecoder_DecodeFrame ()
4 0x03f35657 in vtDecompressionDuctDecodeSingleFrame ()
5 0x03f36960 in VTDecompressionSessionDecodeFrame ()
6 0x04336bd0 in vmc2DecodeUntilHighWaterMet ()
7 0x043b4516 in activitySchedulerOnThread ()
8 0x96352155 in _pthread_start ()
9 0x96352012 in thread_start ()
Thread 7 (process 3114 thread 0x8c03):
0 0x963212e6 in semaphore_timedwait_signal_trap ()
1 0x963532af in _pthread_cond_wait ()
2 0x96354b33 in pthread_cond_timedwait_relative_np ()
3 0x03efdb3a in FigSemaphoreWaitRelative ()
4 0x043ba9c4 in piqca_PollingThread ()
5 0x96352155 in _pthread_start ()
6 0x96352012 in thread_start ()
Thread 6 (process 3114 thread 0x8b03):
0 0x9632846e in __semwait_signal ()
1 0x963533e6 in _pthread_cond_wait ()
2 0x96352dcd in pthread_cond_wait$UNIX2003 ()
3 0x03efd83e in WaitOnCondition ()
4 0x03efdaf1 in FigSemaphoreWaitRelative ()
5 0x04333556 in faq_EnqueueSourceDataThread ()
6 0x96352155 in _pthread_start ()
7 0x96352012 in thread_start ()
Thread 5 (process 3114 thread 0x8603):
0 0x96321286 in mach_msg_trap ()
1 0x96328a7c in mach_msg ()
2 0x00883382 in CFRunLoopRunSpecific ()
3 0x00882c48 in CFRunLoopRunInMode ()
4 0x03ca78d5 in HALRunLoop::OwnThread ()
5 0x03ca7760 in CAPThread::Entry ()
6 0x96352155 in _pthread_start ()
7 0x96352012 in thread_start ()
Thread 4 (process 3114 thread 0x4813):
0 0x96321286 in mach_msg_trap ()
1 0x96328a7c in mach_msg ()
2 0x00883382 in CFRunLoopRunSpecific ()
3 0x00882c48 in CFRunLoopRunInMode ()
4 0x03926870 in GenericRunLoopThread::RunLoop ()
5 0x03949b32 in TRunLoop::Entry ()
6 0x039263d9 in CAPThread::Entry ()
7 0x96352155 in _pthread_start ()
8 0x96352012 in thread_start ()
Thread 3 (process 3114 thread 0x4903):
0 0x9632846e in __semwait_signal ()
1 0x963533e6 in _pthread_cond_wait ()
2 0x96352dcd in pthread_cond_wait$UNIX2003 ()
3 0x03efd83e in WaitOnCondition ()
4 0x03efdaf1 in FigSemaphoreWaitRelative ()
5 0x043491be in fpa_AsyncMovieControlThread ()
6 0x96352155 in _pthread_start ()
7 0x96352012 in thread_start ()
Thread 2 (process 3114 thread 0x1103):
0 0x96321286 in mach_msg_trap ()
1 0x96328a7c in mach_msg ()
2 0x00883382 in CFRunLoopRunSpecific ()
3 0x00882c48 in CFRunLoopRunInMode ()
4 0x02d6f803 in RunWebThread ()
5 0x96352155 in _pthread_start ()
6 0x96352012 in thread_start ()
Thread 1 (process 3114 thread 0x20b):
0 0x96321286 in mach_msg_trap ()
1 0x96328a7c in mach_msg ()
2 0x00883382 in CFRunLoopRunSpecific ()
3 0x00882c48 in CFRunLoopRunInMode ()
4 0x0005a78d in GSEventRunModal ()
5 0x0005a852 in GSEventRun ()
6 0x0168a003 in UIApplicationMain ()
7 0x00001c48 in main (argc=1, argv=0xbfffee14) at /Users/sanjay1/Desktop/SANJAY SHARMA/WING CHUN MASTERS-17FEB-2010/22-FEB-2010/WingChunMasters/main.m:14
(gdb)
and code Im using to call the function is
NSString *mediaName=[[NSString alloc]initWithString:[[NSBundle mainBundle] pathForResource:[arrVideoLink objectAtIndex:indexPath.row] ofType:@"mp4" inDirectory:@""]];
if(mediaName!=nil)
{
NSURL *movieUrl=[NSURL fileURLWithPath:[mediaName stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]];
[appDelegate playMovieAtURL:movieUrl];
}
[mediaName release];
Means error in thread no 8. This thread is related to playing the video. Please help me to sort out this prob.
Thanks