Error running VLC from the terminal on OSX

macOS specific usage questions
fabricioasap
New Cone
New Cone
Posts: 1
Joined: 27 Apr 2021 20:54

Error running VLC from the terminal on OSX

Postby fabricioasap » 27 Apr 2021 21:04

I'm using MacOS BigSur 11.1
I cloned this git repo: https://github.com/videolan/vlc-3.0

I followed the build instructions and it worked fine: https://wiki.videolan.org/MacOSCompile/
However, when I try to run VLC from the terminal, I see this error:

Code: Select all

➜ ./vlc VLC media player 3.0.13 Vetinari (revision 3.0.12.1-226-gfff5aa90bf) [00007fb0e5c06f70] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. 2021-04-27 15:58:48.671 vlc[14489:4867901] -[NSWindowController loadWindow]: failed to load window nib file 'MainWindow'. [00007fb0e3f0df40] main playlist: playlist is empty 2021-04-27 15:58:48.675 vlc[14489:4867901] Sparkle: ===== build ===== 2021-04-27 15:58:48.677 vlc[14489:4867901] Sparkle: Error: the bundle being updated at NSBundle </Users/fabricio/Documents/projects/waveone/vlc-desktop/vlc-3.0/build> (loaded) has no CFBundleIdentifier! This will cause preference read/write to not work properly. 2021-04-27 15:58:48.687 vlc[14489:4867901] -[NSWindowController loadWindow]: failed to load window nib file 'MainWindow'. 2021-04-27 15:58:48.687 vlc[14489:4867901] -[NSWindowController loadWindow]: failed to load window nib file 'MainWindow'. 2021-04-27 15:58:48.687 vlc[14489:4867901] -[NSWindowController loadWindow]: failed to load window nib file 'MainWindow'. 2021-04-27 15:58:54.901 vlc[14489:4867901] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]' *** First throw call stack: ( 0 CoreFoundation 0x00007fff204e36af __exceptionPreprocess + 242 1 libobjc.A.dylib 0x00007fff2021b3c9 objc_exception_throw + 48 2 CoreFoundation 0x00007fff20597a9a -[__NSCFString characterAtIndex:].cold.1 + 0 3 CoreFoundation 0x00007fff20595ca4 -[__NSPlaceholderArray initWithCapacity:].cold.1 + 0 4 CoreFoundation 0x00007fff203ec5bc -[__NSPlaceholderArray initWithObjects:count:] + 154 5 CoreFoundation 0x00007fff204460d8 +[NSArray arrayWithObjects:count:] + 40 6 libmacosx_plugin.dylib 0x000000011d5fc5bc __46+[SPMediaKeyTap mediaKeyUserBundleIdentifiers]_block_invoke + 540 7 libdispatch.dylib 0x00007fff201c796b _dispatch_once_callout + 20 8 libmacosx_plugin.dylib 0x000000011d5fc38b +[SPMediaKeyTap mediaKeyUserBundleIdentifiers] + 43 ) libc++abi.dylib: terminating with uncaught exception of type NSException fish: './vlc' terminated by signal SIGABRT (Abort)
I checked the error and I only see problems related with XCode, but I'm not directly using Xcode to compile this.
Does anybody know how to fix this problem?

Thanks.

dfuhrmann
Developer
Developer
Posts: 1183
Joined: 02 Jul 2012 11:09

Re: Error running VLC from the terminal on OSX

Postby dfuhrmann » 27 Apr 2021 23:12

You need to execute vlc from the build folder as follows:

./bin/vlc-osx-static

Then it works.


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 5 guests