Crash when product name is "MacVLC"

macOS specific usage questions
Williams_
Blank Cone
Blank Cone
Posts: 15
Joined: 27 Oct 2017 11:10

Crash when product name is "MacVLC"

Postby Williams_ » 13 Nov 2017 09:20

As the title describes, developers can try it.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Crash when product name is "MacVLC"

Postby Jean-Baptiste Kempf » 13 Nov 2017 12:07

What product?
What are you talking about?
Where is the crash log?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Williams_
Blank Cone
Blank Cone
Posts: 15
Joined: 27 Oct 2017 11:10

Re: Crash when product name is "MacVLC"

Postby Williams_ » 14 Nov 2017 03:11

"What product?"
When creating a new project, you need to enter the product name.
I use the latest code compiled VLCKit library in my project.The reason for the crash is that the number of plugins loaded is 1, and the code asserts that when the number of plugins is less than or equal to 1, a crash is thrown.
When I changed the product name to something else, or even changed the case of a letter, it would work "MacVLc" like this.
2017-11-14 10:07:33.834149 MacVLC[45458:4901459] *** Assertion failure in -[VLCLibrary prepareInstanceWithOptions:], /Users/qimac/Desktop/VLCDebug/VLCKit/Sources/VLCLibrary.m:93
2017-11-14 10:07:33.836520 MacVLC[45458:4901459] [General] An uncaught exception was raised

2017-11-14 10:07:33.836558 MacVLC[45458:4901459] [General] libvlc failed to initialize
2017-11-14 10:07:33.837058 MacVLC[45458:4901459] [General] (
0 CoreFoundation 0x00007fffab0cbe7b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fffbfcabcad objc_exception_throw + 48
2 CoreFoundation 0x00007fffab0d0b82 +[NSException raise:format:arguments:] + 98
3 Foundation 0x00007fffacb1ad50 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
4 VLCKit 0x00000001000b1c24 -[VLCLibrary prepareInstanceWithOptions:] + 836
5 VLCKit 0x00000001000b17e5 -[VLCLibrary init] + 133
6 VLCKit 0x00000001000b16e2 __27+[VLCLibrary sharedLibrary]_block_invoke + 50
7 libdispatch.dylib 0x0000000100242f5c _dispatch_client_callout + 8
8 libdispatch.dylib 0x0000000100242f3c dispatch_once_f + 272
9 VLCKit 0x00000001000b1684 +[VLCLibrary sharedLibrary] + 84
10 MacVLC 0x000000010000132c -[ViewController viewDidLoad] + 76
11 AppKit 0x00007fffa8bc2d53 -[NSViewController _sendViewDidLoad] + 97
12 AppKit 0x00007fffa8bb97b3 -[NSViewController _loadViewIfRequired] + 380
13 AppKit 0x00007fffa8bb95ed -[NSViewController view] + 30
14 AppKit 0x00007fffa8d50ece -[NSWindow _contentViewControllerChanged] + 109
15 Foundation 0x00007fffaca84661 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 329
16 AppKit 0x00007fffa8d99144 -[NSWindow setValue:forKey:] + 112
17 AppKit 0x00007fffa8d990a0 -[NSIBUserDefinedRuntimeAttributesConnector establishConnection] + 694
18 AppKit 0x00007fffa8b41369 -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 1284
19 AppKit 0x00007fffa8c49f06 -[NSNib _instantiateNibWithExternalNameTable:options:] + 696
20 AppKit 0x00007fffa8c49b3a -[NSNib _instantiateWithOwner:options:topLevelObjects:] + 143
21 AppKit 0x00007fffa936be96 -[NSStoryboard instantiateControllerWithIdentifier:] + 234
22 AppKit 0x00007fffa8b32687 NSApplicationMain + 780
23 MacVLC 0x00000001000013d2 main + 34
24 libdyld.dylib 0x00007fffc058f255 start + 1
25 ??? 0x0000000000000003 0x0 + 3
)
2017-11-14 10:07:33.837569 MacVLC[45458:4901459] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'libvlc failed to initialize'
*** First throw call stack:
(
0 CoreFoundation 0x00007fffab0cbe7b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fffbfcabcad objc_exception_throw + 48
2 CoreFoundation 0x00007fffab0d0b82 +[NSException raise:format:arguments:] + 98
3 Foundation 0x00007fffacb1ad50 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
4 VLCKit 0x00000001000b1c24 -[VLCLibrary prepareInstanceWithOptions:] + 836
5 VLCKit 0x00000001000b17e5 -[VLCLibrary init] + 133
6 VLCKit 0x00000001000b16e2 __27+[VLCLibrary sharedLibrary]_block_invoke + 50
7 libdispatch.dylib 0x0000000100242f5c _dispatch_client_callout + 8
8 libdispatch.dylib 0x0000000100242f3c dispatch_once_f + 272
9 VLCKit 0x00000001000b1684 +[VLCLibrary sharedLibrary] + 84
10 MacVLC 0x000000010000132c -[ViewController viewDidLoad] + 76
11 AppKit 0x00007fffa8bc2d53 -[NSViewController _sendViewDidLoad] + 97
12 AppKit 0x00007fffa8bb97b3 -[NSViewController _loadViewIfRequired] + 380
13 AppKit 0x00007fffa8bb95ed -[NSViewController view] + 30
14 AppKit 0x00007fffa8d50ece -[NSWindow _contentViewControllerChanged] + 109
15 Foundation 0x00007fffaca84661 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 329
16 AppKit 0x00007fffa8d99144 -[NSWindow setValue:forKey:] + 112
17 AppKit 0x00007fffa8d990a0 -[NSIBUserDefinedRuntimeAttributesConnector establishConnection] + 694
18 AppKit 0x00007fffa8b41369 -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 1284
19 AppKit 0x00007fffa8c49f06 -[NSNib _instantiateNibWithExternalNameTable:options:] + 696
20 AppKit 0x00007fffa8c49b3a -[NSNib _instantiateWithOwner:options:topLevelObjects:] + 143
21 AppKit 0x00007fffa936be96 -[NSStoryboard instantiateControllerWithIdentifier:] + 234
22 AppKit 0x00007fffa8b32687 NSApplicationMain + 780
23 MacVLC 0x00000001000013d2 main + 34
24 libdyld.dylib 0x00007fffc058f255 start + 1
25 ??? 0x0000000000000003 0x0 + 3
)
libc++abi.dylib: terminating with uncaught exception of type NSException

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Crash when product name is "MacVLC"

Postby Jean-Baptiste Kempf » 14 Nov 2017 11:23

You should see why the libvlc failed to initialize then with libvlc logs.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 33 guests