Page 1 of 1

libVLC crashes on OSX

Posted: 11 Jul 2015 14:07
by vsakos
I'm creating a simple video player using libVLC and Qt5. It works on Windows, but I can't get it work on OSX, it always charshes.
I copied the Frameworks folder to my app and put plugins and lib from VLC's MacOS folder to my MacOS/lib/vlc

Here is the log:

Code: Select all

Starting /Users/vsakos/Desktop/WT/build-WatchTogether-Desktop_Qt_5_5_0_clang_64bit-Release/WatchTogether.app/Contents/MacOS/WatchTogether... [00007fedf5002198] core libvlc debug: VLC media player - 2.2.1 Terry Pratchett (Weatherwax) [00007fedf5002198] core libvlc debug: Copyright © 1996-2015 the VideoLAN team [00007fedf5002198] core libvlc debug: revision 2.2.1-0-ga425c42 [00007fedf5002198] core libvlc debug: configured with ../extras/package/macosx/../../../configure '--prefix=/Users/fpk/Desktop/vlc-2.2/secondrelease/vlc_install_dir' '--enable-macosx' '--enable-merge-ffmpeg' '--enable-growl' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-shout' '--enable-ncurses' '--enable-twolame' '--enable-realrtsp' '--enable-libass' '--enable-macosx-eyetv' '--enable-macosx-qtkit' '--enable-macosx-avfoundation' '--disable-skins2' '--disable-xcb' '--disable-caca' '--disable-sdl' '--disable-samplerate' '--disable-macosx-dialog-provider' '--with-macosx-version-min=10.6' '--build=x86_64-apple-darwin10' 'build_alias=x86_64-apple-darwin10' 'CC=xcrun clang' 'CFLAGS=' 'LDFLAGS=' 'CXX=xcrun clang++' 'OBJC=xcrun clang' [00007fedf5002198] core libvlc debug: searching plug-in modules [00007fedf5002198] core libvlc debug: loading plugins cache file /Users/vsakos/Desktop/WT/build-WatchTogether-Desktop_Qt_5_5_0_clang_64bit-Release/WatchTogether.app/Contents/MacOS/lib/vlc/plugins/plugins.dat [00007fedf5002198] core libvlc debug: recursively browsing `/Users/vsakos/Desktop/WT/build-WatchTogether-Desktop_Qt_5_5_0_clang_64bit-Release/WatchTogether.app/Contents/MacOS/lib/vlc/plugins' [00007fedf5002198] core libvlc debug: saving plugins cache /Users/vsakos/Desktop/WT/build-WatchTogether-Desktop_Qt_5_5_0_clang_64bit-Release/WatchTogether.app/Contents/MacOS/lib/vlc/plugins/plugins.dat [00007fedf5002198] core libvlc debug: plug-ins loaded: 397 modules [00007fedf5002198] core libvlc debug: translation test: code is "C" [00007fedf5002198] core libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 FPU [00007fedf5071bb8] core generic debug: creating audio output [00007fedf5074608] core audio output debug: looking for audio output module matching "any": 4 candidates [00007fedf5074608] auhal audio output debug: Rebuild device list [00007fedf5074608] auhal audio output debug: found 2 audio device(s) [00007fedf5074608] auhal audio output debug: DevID: 46 DevName: Built-in Microphone [00007fedf5074608] auhal audio output debug: this 'Built-in Microphone' is INPUT only. skipping... [00007fedf5074608] auhal audio output debug: DevID: 38 DevName: Built-in Output [00007fedf5074608] auhal audio output debug: found 12 stream formats for stream id 39 [00007fedf5074608] core audio output error: option auhal-volume does not exist [00007fedf5074608] core audio output error: option auhal-audio-device does not exist [00007fedf5074608] core audio output debug: restart requested (2) [00007fedf5074608] core audio output debug: using audio output module "auhal" [00007fedf5071bb8] core generic debug: keeping audio output [00007fedf5074608] core audio output debug: removing module "auhal" [00007fedf5074608] core audio output warning: option auhal-audio-device does not exist [00007fedf2f24d18] core art finder debug: looking for meta fetcher module matching "any": 1 candidates [00007fedf2ea50b8] core input debug: Creating an input for 'hsf-bones-501.avi' [00007fedf2f24d18] lua art finder debug: Trying Lua scripts in /Users/vsakos/Library/Application Support/com.yourcompany.WatchTogether/lua/meta/fetcher [00007fedf2f24d18] lua art finder debug: Trying Lua scripts in /Users/vsakos/Desktop/WT/build-WatchTogether-Desktop_Qt_5_5_0_clang_64bit-Release/WatchTogether.app/Contents/MacOS/lib/vlc/lib/vlc/share/lua/meta/fetcher [00007fedf2f24d18] lua art finder debug: Trying Lua scripts in /Users/vsakos/Desktop/WT/build-WatchTogether-Desktop_Qt_5_5_0_clang_64bit-Release/WatchTogether.app/Contents/MacOS/lib/vlc/lib/vlc/share/share/lua/meta/fetcher [00007fedf2f24d18] core art finder debug: no meta fetcher modules matched [00007fedf5002198] core libvlc debug: searching art for hsf-bones-501.avi [00007fedf572f658] core art finder debug: looking for art finder module matching "any": 2 candidates [00007fedf572f658] core art finder error: option album-art-filename does not exist [00007fedf572f658] lua art finder debug: Trying Lua scripts in /Users/vsakos/Library/Application Support/com.yourcompany.WatchTogether/lua/meta/art [00007fedf572f658] lua art finder debug: Trying Lua scripts in /Users/vsakos/Desktop/WT/build-WatchTogether-Desktop_Qt_5_5_0_clang_64bit-Release/WatchTogether.app/Contents/MacOS/lib/vlc/lib/vlc/share/lua/meta/art [00007fedf572f658] lua art finder debug: Trying Lua scripts in /Users/vsakos/Desktop/WT/build-WatchTogether-Desktop_Qt_5_5_0_clang_64bit-Release/WatchTogether.app/Contents/MacOS/lib/vlc/lib/vlc/share/share/lua/meta/art [00007fedf572f658] core art finder debug: no art finder modules matched [00007fedf5002198] core libvlc debug: art not found for hsf-bones-501.avi [00007fedf5002198] core libvlc debug: meta ok for (null), need to fetch art [00007fedf2f24d18] core art finder debug: looking for meta fetcher module matching "any": 1 candidates [00007fedf2f24d18] lua art finder debug: Trying Lua scripts in /Users/vsakos/Library/Application Support/com.yourcompany.WatchTogether/lua/meta/fetcher [00007fedf2f24d18] lua art finder debug: Trying Lua scripts in /Users/vsakos/Desktop/WT/build-WatchTogether-Desktop_Qt_5_5_0_clang_64bit-Release/WatchTogether.app/Contents/MacOS/lib/vlc/lib/vlc/share/lua/meta/fetcher [00007fedf2f24d18] lua art finder debug: Trying Lua scripts in /Users/vsakos/Desktop/WT/build-WatchTogether-Desktop_Qt_5_5_0_clang_64bit-Release/WatchTogether.app/Contents/MacOS/lib/vlc/lib/vlc/share/share/lua/meta/fetcher [00007fedf2f24d18] core art finder debug: no meta fetcher modules matched [00007fedf5002198] core libvlc debug: searching art for hsf-bones-501.avi [00007fedf59c9fc8] core art finder debug: looking for art finder module matching "any": 2 candidates [00007fedf59c9fc8] core art finder error: option album-art-filename does not exist [00007fedf59c9fc8] lua art finder debug: Trying Lua scripts in /Users/vsakos/Library/Application Support/com.yourcompany.WatchTogether/lua/meta/art [00007fedf59c9fc8] lua art finder debug: Trying Lua scripts in /Users/vsakos/Desktop/WT/build-WatchTogether-Desktop_Qt_5_5_0_clang_64bit-Release/WatchTogether.app/Contents/MacOS/lib/vlc/lib/vlc/share/lua/meta/art [00007fedf59c9fc8] lua art finder debug: Trying Lua scripts in /Users/vsakos/Desktop/WT/build-WatchTogether-Desktop_Qt_5_5_0_clang_64bit-Release/WatchTogether.app/Contents/MacOS/lib/vlc/lib/vlc/share/share/lua/meta/art [00007fedf59c9fc8] core art finder debug: no art finder modules matched [00007fedf5002198] core libvlc debug: art not found for hsf-bones-501.avi [00007fedf50872c8] core input debug: Creating an input for 'hsf-bones-501.avi' [00007fedf50872c8] core input debug: using timeshift granularity of 50 MiB, in path '/tmp' [00007fedf50872c8] core input debug: `file:///Users/vsakos/Movies/Bones.S05.HUN.DVDRip.XviD-HSF/hsf-bones-501.avi' gives access `file' demux `' path `/Users/vsakos/Movies/Bones.S05.HUN.DVDRip.XviD-HSF/hsf-bones-501.avi' [00007fedf50872c8] core input debug: specified demux `any' [00007fedf50872c8] core input debug: creating demux: access='file' demux='any' location='/Users/vsakos/Movies/Bones.S05.HUN.DVDRip.XviD-HSF/hsf-bones-501.avi' file='/Users/vsakos/Movies/Bones.S05.HUN.DVDRip.XviD-HSF/hsf-bones-501.avi' [00007fedf2c88ec8] core demux debug: looking for access_demux module matching "file": 14 candidates [00007fedf2c88ec8] core demux debug: no access_demux modules matched [00007fedf50872c8] core input debug: creating access 'file' location='/Users/vsakos/Movies/Bones.S05.HUN.DVDRip.XviD-HSF/hsf-bones-501.avi', path='/Users/vsakos/Movies/Bones.S05.HUN.DVDRip.XviD-HSF/hsf-bones-501.avi' [00007fedf2c88ec8] core access debug: looking for access module matching "file": 19 candidates [00007fedf2c88ec8] filesystem access debug: opening file `/Users/vsakos/Movies/Bones.S05.HUN.DVDRip.XviD-HSF/hsf-bones-501.avi' [00007fedf2c88ec8] core access debug: using access module "filesystem" [00007fedf56836d8] core stream debug: Using stream method for AStream* [00007fedf56836d8] core stream debug: starting pre-buffering [00007fedf56836d8] core stream debug: received first data after 0 ms [00007fedf56836d8] core stream debug: pre-buffering done 1024 bytes in 0s - 34482 KiB/s [00007fedf5610a28] core stream debug: looking for stream_filter module matching "any": 9 candidates [00007fedf5610a28] core stream debug: no stream_filter modules matched [00007fedf5610a28] core stream debug: looking for stream_filter module matching "record": 9 candidates [00007fedf5610a28] core stream debug: using stream_filter module "record" [00007fedf2c88ec8] core access error: option network-caching does not exist [00007fedf50872c8] core input debug: creating demux: access='file' demux='any' location='/Users/vsakos/Movies/Bones.S05.HUN.DVDRip.XviD-HSF/hsf-bones-501.avi' file='/Users/vsakos/Movies/Bones.S05.HUN.DVDRip.XviD-HSF/hsf-bones-501.avi' [00007fedf56c04e8] core demux debug: looking for demux module matching "avi": 66 candidates [00007fedf56c04e8] core demux error: option avi-interleaved does not exist [00007fedf5610a28] avi stream debug: <list 'AVI '> [00007fedf5610a28] avi stream debug: <list 'hdrl'> [00007fedf5610a28] avi stream debug: <list 'strl'> [00007fedf5610a28] avi stream debug: </list 'strl'> [00007fedf5610a28] avi stream debug: <list 'strl'> [00007fedf5610a28] avi stream debug: </list 'strl'> [00007fedf5610a28] avi stream debug: <list 'odml'> [00007fedf5610a28] avi stream debug: </list 'odml'> [00007fedf5610a28] avi stream debug: </list 'hdrl'> [00007fedf5610a28] avi stream debug: <list 'INFO'> [00007fedf5610a28] avi stream debug: </list 'INFO'> [00007fedf5610a28] avi stream debug: skipping movi chunk [00007fedf5610a28] avi stream debug: </list 'AVI '> [00007fedf5610a28] avi stream debug: * LIST-root size:368830464 pos:0 [00007fedf5610a28] avi stream debug: + RIFF-AVI size:368829706 pos:0 [00007fedf5610a28] avi stream debug: | + LIST-hdrl size:8830 pos:12 [00007fedf5610a28] avi stream debug: | | + avih size:56 pos:24 [00007fedf5610a28] avi stream debug: | | + LIST-strl size:4244 pos:88 [00007fedf5610a28] avi stream debug: | | | + strh size:56 pos:100 [00007fedf5610a28] avi stream debug: | | | + strf size:40 pos:164 [00007fedf5610a28] avi stream debug: | | | + JUNK size:4120 pos:212 [00007fedf5610a28] avi stream debug: | | + LIST-strl size:4234 pos:4340 [00007fedf5610a28] avi stream debug: | | | + strh size:56 pos:4352 [00007fedf5610a28] avi stream debug: | | | + strf size:30 pos:4416 [00007fedf5610a28] avi stream debug: | | | + JUNK size:4120 pos:4454 [00007fedf5610a28] avi stream debug: | | + LIST-odml size:260 pos:8582 [00007fedf5610a28] avi stream debug: | | | + dmlh size:248 pos:8594 [00007fedf5610a28] avi stream debug: | + LIST-INFO size:28 pos:8850 [00007fedf5610a28] avi stream debug: | | + ISFT size:15 pos:8862 [00007fedf5610a28] avi stream debug: | + JUNK size:1346 pos:8886 [00007fedf5610a28] avi stream debug: | + LIST-movi size:366116450 pos:10240 [00007fedf5610a28] avi stream debug: | + idx1 size:2703008 pos:366126698 [00007fedf5610a28] avi stream debug: + JUNK size:742 pos:368829714 [00007fedf56c04e8] avi demux debug: AVIH: 2 stream, flags HAS_INDEX IS_INTERLEAVED [00007fedf56c04e8] avi demux debug: stream[0] rate:2500000 scale:100000 samplesize:0 [00007fedf56c04e8] avi demux debug: stream[0] video(XVID) 624x352 12bpp 25.000000fps [00007fedf50872c8] core input debug: selecting program id=0 [00007fedf56c04e8] avi demux debug: stream[1] rate:48000 scale:1152 samplesize:0 [00007fedf56c04e8] avi demux debug: stream[1] audio(0x55 - MPEG Audio layer 3) 2 channels 48000Hz 0bits [00007fedf56c04e8] core demux error: option avi-index does not exist [00007fedf56c04e8] avi demux debug: selected standard index for stream[0] [00007fedf56c04e8] avi demux debug: selected standard index for stream[1] [00007fedf56c04e8] avi demux debug: stream[0] created 63352 index entries [00007fedf56c04e8] avi demux debug: stream[1] created 105586 index entries [00007fedf56c04e8] avi demux debug: stream[0] length:2534 (based on index) [00007fedf56c04e8] avi demux debug: stream[1] length:2534 (based on index) [00007fedf56c04e8] core demux debug: using demux module "avi" [00007fedf50872c8] core input debug: looking for a subtitle file in /Users/vsakos/Movies/Bones.S05.HUN.DVDRip.XviD-HSF/ [00007fedf312acb8] core decoder debug: looking for decoder module matching "any": 40 candidates [00007fedf312acb8] core decoder error: option quiet does not exist [00007fedf312acb8] avcodec decoder debug: CPU flags: 0x010053db [00007fedf312acb8] core decoder error: option avcodec-codec does not exist [00007fedf312acb8] core decoder error: option avcodec-debug does not exist [00007fedf312acb8] core decoder error: option avcodec-workaround-bugs does not exist [00007fedf312acb8] core decoder error: option avcodec-error-resilience does not exist [00007fedf312acb8] core decoder error: option grayscale does not exist [00007fedf312acb8] core decoder error: option avcodec-vismv does not exist [00007fedf312acb8] core decoder error: option avcodec-skiploopfilter does not exist [00007fedf312acb8] core decoder error: option avcodec-fast does not exist [00007fedf312acb8] core decoder error: option avcodec-hurry-up does not exist [00007fedf312acb8] core decoder error: option avcodec-skip-frame does not exist [00007fedf312acb8] core decoder error: option avcodec-skip-idct does not exist [00007fedf312acb8] core decoder error: option avcodec-dr does not exist [00007fedf312acb8] avcodec decoder debug: direct rendering is disabled [00007fedf312acb8] core decoder error: option avcodec-threads does not exist [00007fedf312acb8] avcodec decoder debug: allowing 4 thread(s) for decoding [00007fedf312acb8] core decoder error: option avcodec-options does not exist [00007fedf312acb8] avcodec decoder debug: avcodec codec (MPEG-4 Video) started [00007fedf312acb8] core decoder debug: using decoder module "avcodec" [00007fedf313b0b8] core decoder debug: looking for decoder module matching "any": 40 candidates [00007fedf313b0b8] core decoder error: option quiet does not exist [00007fedf313b0b8] avcodec decoder debug: CPU flags: 0x010053db [00007fedf313b0b8] core decoder error: option avcodec-codec does not exist [00007fedf313b0b8] core decoder error: option avcodec-debug does not exist [00007fedf313b0b8] core decoder error: option avcodec-options does not exist [00007fedf313b0b8] avcodec decoder debug: avcodec codec (MPEG Audio layer 3) started [00007fedf313b0b8] core decoder debug: using decoder module "avcodec" [00007fedf48008b8] core packetizer debug: looking for packetizer module matching "any": 23 candidates [00007fedf48008b8] core packetizer debug: using packetizer module "mpeg_audio" [00007fedf2f38f78] core demux meta debug: looking for meta reader module matching "any": 2 candidates [00007fedf2f38f78] lua demux meta debug: Trying Lua scripts in /Users/vsakos/Library/Application Support/com.yourcompany.WatchTogether/lua/meta/reader [00007fedf2f38f78] lua demux meta debug: Trying Lua scripts in /Users/vsakos/Desktop/WT/build-WatchTogether-Desktop_Qt_5_5_0_clang_64bit-Release/WatchTogether.app/Contents/MacOS/lib/vlc/lib/vlc/share/lua/meta/reader [00007fedf2f38f78] lua demux meta debug: Trying Lua scripts in /Users/vsakos/Desktop/WT/build-WatchTogether-Desktop_Qt_5_5_0_clang_64bit-Release/WatchTogether.app/Contents/MacOS/lib/vlc/lib/vlc/share/share/lua/meta/reader [00007fedf2f38f78] core demux meta debug: no meta reader modules matched [00007fedf50872c8] core input debug: `file:///Users/vsakos/Movies/Bones.S05.HUN.DVDRip.XviD-HSF/hsf-bones-501.avi' successfully opened [00007fedf50872c8] core input debug: Buffering 0% [00007fedf48008b8] mpeg_audio packetizer debug: MPGA channels:2 samplerate:48000 bitrate:128 [00007fedf50872c8] core input debug: Stream buffering done (25 ms in 0 ms) [00007fedf312acb8] avcodec decoder debug: available software decoder output format 0 (yuv420p) [00007fedf5071bb8] core generic debug: creating audio output [00007fedf2f3ddb8] core audio output debug: looking for audio output module matching "any": 4 candidates [00007fedf2f3ddb8] auhal audio output debug: Rebuild device list [00007fedf2f3ddb8] auhal audio output debug: found 2 audio device(s) [00007fedf2f3ddb8] auhal audio output debug: DevID: 46 DevName: Built-in Microphone [00007fedf2f3ddb8] auhal audio output debug: this 'Built-in Microphone' is INPUT only. skipping... [00007fedf2f3ddb8] auhal audio output debug: DevID: 38 DevName: Built-in Output [00007fedf2f3ddb8] auhal audio output debug: found 12 stream formats for stream id 39 [00007fedf2f3ddb8] core audio output error: option auhal-volume does not exist [00007fedf2f3ddb8] core audio output error: option auhal-audio-device does not exist [00007fedf2f3ddb8] core audio output debug: restart requested (2) [00007fedf2f3ddb8] core audio output debug: using audio output module "auhal" [00007fedf2f3ddb8] core audio output debug: VLC is looking for: 's16l' 48000 Hz Stereo frame=1 samples/4 bytes [00007fedf2f3ddb8] auhal audio output debug: attempting to use device 0 [00007fedf2f3ddb8] auhal audio output debug: using default audio device 38 [00007fedf2f3ddb8] core audio output error: option spdif does not exist [00007fedf2f3ddb8] auhal audio output debug: found 12 stream formats for stream id 39 [00007fedf2f3ddb8] auhal audio output debug: Audio device supports PCM mode only [00007fedf2f3ddb8] auhal audio output debug: Current device has a latency of 89 frames [00007fedf2f3ddb8] auhal audio output debug: current format is: [44100.000000][mcpl][9][8][1][8][2][32] [00007fedf2f3ddb8] auhal audio output debug: layout of AUHAL has 2 channels [00007fedf2f3ddb8] auhal audio output debug: selected 2 physical channels for device output [00007fedf2f3ddb8] auhal audio output debug: VLC will output: Stereo [00007fedf2f3ddb8] auhal audio output debug: we set the AU format: [48000.000000][mcpl][9][8][1][8][2][32] [00007fedf2f3ddb8] auhal audio output debug: the actual set AU format is [48000.000000][mcpl][9][8][1][8][2][32] [00007fedf2f3ddb8] core audio output error: option volume-save does not exist [00007fedf2f3ddb8] core audio output warning: option auhal-volume does not exist [00007fedf2f3ddb8] auhal audio output debug: analog output successfully opened [00007fedf2f3ddb8] core audio output debug: output 'f32l' 48000 Hz Stereo frame=1 samples/8 bytes [00007fedf568fa88] core volume debug: looking for audio volume module matching "any": 2 candidates [00007fedf568fa88] core volume debug: using audio volume module "float_mixer" [00007fedf2f3ddb8] core audio output debug: input 's16l' 48000 Hz Stereo frame=1 samples/4 bytes [00007fedf3963cb8] core audio filter debug: looking for audio filter module matching "scaletempo": 14 candidates [00007fedf3963cb8] scaletempo audio filter debug: format: 48000 rate, 2 nch, 4 bps, fl32 [00007fedf3963cb8] core audio filter error: option scaletempo-stride does not exist [00007fedf3963cb8] core audio filter error: option scaletempo-overlap does not exist [00007fedf3963cb8] core audio filter error: option scaletempo-search does not exist [00007fedf3963cb8] scaletempo audio filter debug: params: -1 stride, -1.000 overlap, -1 search The program has unexpectedly finished. /Users/vsakos/Desktop/WT/build-WatchTogether-Desktop_Qt_5_5_0_clang_64bit-Release/WatchTogether.app/Contents/MacOS/WatchTogether crashed
There is a ~10sec delay between the scaletempo debug message and the crash, if that means something.

Re: libVLC crashes on OSX

Posted: 15 Jul 2015 23:17
by Jean-Baptiste Kempf
Please share the stacktrace.