Page 1 of 1

Capturing from ADVC-100 causes crash

Posted: 29 Nov 2013 07:03
by chen lung
Hi

Thanks for your work.

I hope this report helps?

1. Open VLC.
2. 'File'>'Open Capture Device...'.
3. Tick 'Video' and 'Audio'.
4. Ensure 'ADVC-100' is selected.
5. 'Open'.

Result: qtcapture appears and then VLC crashes.

Note: It also happens in 2.1.1.

Using VLC 2.2.0 Nightly Build (x86_64-20131128-0118) - Mac 10.8.5.

Thanks!

Re: Capturing from ADVC-100 causes crash

Posted: 29 Nov 2013 07:05
by chen lung
I don't think I can make attachments, so here is the top and then the crashed thread. Sorry, I'm not a developer, so I don't know exactly what will be useful :).

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000b9bacde800

Thread 16 Crashed:
0 libsystem_c.dylib 0x00007fff8f308f98 OSSpinLockUnlock + 0
1 libsystem_c.dylib 0x00007fff8f33cbcd free_tiny_botch + 65
2 com.apple.CoreFoundation 0x00007fff903d6803 CFRelease + 1571
3 com.apple.CoreFoundation 0x00007fff903de313 __CFURLDeallocate + 35
4 com.apple.CoreFoundation 0x00007fff903d63df CFRelease + 511
5 com.apple.CoreServices.CarbonCore 0x00007fff9061df81 CMOpenBundleResourceFilesMapped + 625
6 com.apple.CoreServices.CarbonCore 0x00007fff9061e65f addOneComponent + 1112
7 com.apple.CoreServices.CarbonCore 0x00007fff9061f299 searchForComponents + 2779
8 com.apple.CoreServices.CarbonCore 0x00007fff9061d875 registerSystemComponents + 361
9 com.apple.CoreServices.CarbonCore 0x00007fff90624dc6 FindNextComponentInternal(ComponentRecord*, ComponentDescription*, unsigned int) + 69
10 com.apple.CoreServices.CarbonCore 0x00007fff906255dd FindNextComponent + 44
11 com.apple.audio.toolbox.AudioToolbox 0x00007fff8f52e2b3 AudioComponentMgr::FindNext(OpaqueAudioComponent*, AudioComponentDescription const*) + 79
12 com.apple.audio.toolbox.AudioToolbox 0x00007fff8f45c25d _AT_AudioComponentFindNext + 135
13 com.apple.audio.toolbox.AudioToolbox 0x00007fff8f524ad9 OpenCodecComponent(unsigned int, ComponentInstanceRecord*&, unsigned int) + 50
14 com.apple.audio.toolbox.AudioToolbox 0x00007fff8f524ec4 FetchFormatListFromCodecs(int (*)(ComponentInstanceRecord*, AudioFormatInfo const*, unsigned int*, AudioFormatListItem*), AudioFormatInfo const*, unsigned int, unsigned int*, AudioFormatListItem*) + 220
15 com.apple.audio.toolbox.AudioToolbox 0x00007fff8f52509a AudioFormatProperty_FormatListSize(AudioFormatInfo const*, unsigned int, unsigned int*) + 185
16 com.apple.audio.toolbox.AudioToolbox 0x00007fff8f476f6d AudioFormatGetPropertyInfo + 1462
17 com.apple.CoreMedia 0x00007fff8dc2a6a0 CMAudioFormatDescriptionGetFormatList + 205
18 com.apple.CMIOUnits 0x000000010aa260fc 0x10a9dc000 + 303356
19 com.apple.CMIOUnits 0x000000010a9eb71f 0x10a9dc000 + 63263
20 com.apple.CMIOUnits 0x000000010aa72e20 0x10a9dc000 + 618016
21 com.apple.CMIOUnits 0x000000010a9e7762 0x10a9dc000 + 46946
22 com.apple.CMIOUnits 0x000000010aa25391 0x10a9dc000 + 299921
23 com.apple.CMIOUnits 0x000000010aa5f03e 0x10a9dc000 + 536638
24 com.apple.CMIOUnits 0x000000010aa72daa 0x10a9dc000 + 617898
25 com.apple.CMIOUnits 0x000000010a9e7762 0x10a9dc000 + 46946
26 com.apple.CMIOUnits 0x000000010aa25391 0x10a9dc000 + 299921
27 com.apple.CMIOUnits 0x000000010aa5f03e 0x10a9dc000 + 536638
28 com.apple.CMIOUnits 0x000000010aa5f746 0x10a9dc000 + 538438
29 com.apple.CMIOUnits 0x000000010a9e7762 0x10a9dc000 + 46946
30 com.apple.CMIOUnits 0x000000010aa25391 0x10a9dc000 + 299921
31 com.apple.CMIOUnits 0x000000010aa5f03e 0x10a9dc000 + 536638
32 com.apple.CMIOUnits 0x000000010aa70dda 0x10a9dc000 + 609754
33 com.apple.CMIOUnits 0x000000010a9e7762 0x10a9dc000 + 46946
34 com.apple.CMIOUnits 0x000000010aa25391 0x10a9dc000 + 299921
35 com.apple.CMIOUnits 0x000000010aa5f03e 0x10a9dc000 + 536638
36 com.apple.CMIOUnits 0x000000010aa72daa 0x10a9dc000 + 617898
37 com.apple.CMIOUnits 0x000000010a9e7762 0x10a9dc000 + 46946
38 com.apple.CMIOUnits 0x000000010aa25391 0x10a9dc000 + 299921
39 com.apple.CMIOUnits 0x000000010aa5f03e 0x10a9dc000 + 536638
40 com.apple.CMIOUnits 0x000000010aa7e527 0x10a9dc000 + 664871
41 com.apple.CMIOUnits 0x000000010a9e7762 0x10a9dc000 + 46946
42 com.apple.CMIOUnits 0x000000010aa7ec81 0x10a9dc000 + 666753
43 com.apple.CMIOUnits 0x000000010aa2607c 0x10a9dc000 + 303228
44 com.apple.CoreMediaIO 0x00007fff8fda781a CMIOGraph::PullOutputUnits(bool, bool&, bool&, bool&) + 290
45 com.apple.CoreMediaIO 0x00007fff8fda7ce8 CMIOGraph::DoWork(unsigned int) + 498
46 com.apple.CoreMediaIO 0x00007fff8fdaa793 CMIO::Thread::QueuedTWorkThread<unsigned int>::DoWork() + 105
47 com.apple.CoreMediaIO 0x00007fff8fdb3fa4 CMIO::Thread::SignaledThread::ThreadLoop() + 214
48 com.apple.CoreMediaIO 0x00007fff8fdb3ea8 CMIO::Thread::SignaledThread::WorkQueuedThreadCallback(void*) + 156
49 com.apple.CoreMedia 0x00007fff8dc28379 figThreadMain + 382
50 libsystem_c.dylib 0x00007fff8f31a772 _pthread_start + 327
51 libsystem_c.dylib 0x00007fff8f3071a1 thread_start + 13

Re: Capturing from ADVC-100 causes crash

Posted: 29 Nov 2013 08:04
by chen lung
The device doesn't seem to be working properly now, so I may not be able to test anymore. Will try again and say if there's any change.

There was no crash on Windows XP SP3, but it gave a message about being unable (can't remember exactly what).

The crash occurred on Mac 10.7.5 too. I couldn't test the nightly, so here's some details from the stable 2.1.1 version:

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000106a00000

Thread 8 Crashed:
0 libsystem_c.dylib 0x00007fff948e5686 longcopy + 310
1 libsystem_c.dylib 0x00007fff948d0f8f memmove$VARIANT$sse3x + 210
2 libqtcapture_plugin.dylib 0x000000010052bd13 -[VLCDecompressedVideoOutput copyCurrentFrameToBuffer:] + 163
3 libqtcapture_plugin.dylib 0x000000010052bdd6 Demux + 118
4 libvlccore.7.dylib 0x000000010005a088 MainLoop + 456
5 libvlccore.7.dylib 0x000000010005b257 Run + 39
6 libsystem_c.dylib 0x00007fff948f78bf _pthread_start + 335
7 libsystem_c.dylib 0x00007fff948fab75 thread_start + 13

Re: Capturing from ADVC-100 causes crash

Posted: 09 Dec 2013 17:31
by Jean-Baptiste Kempf
Yeah, copying the frames does not work...

Re: Capturing from ADVC-100 causes crash

Posted: 09 Dec 2013 18:39
by chen lung
Hi Jean-Baptiste

What does work then?

I believe my device is broken, so I'm unlikely to reproduce anymore. If you aren't able to do anything, that's fine.

Thanks