Page 1 of 1

LibVLC 4.0 MacOS crash

Posted: 22 Apr 2022 15:32
by AlexeyGromov
Hi, i build a VLC with a single command (../extras/package/macosx/build.sh -c) as described here https://wiki.videolan.org/MacOSCompile/.
But after calling the standard initialization code

Code: Select all

QStringList args() { QStringList argsList; QString args = qgetenv("VLC_ARGS"); if (!args.isEmpty()) { argsList = args.split(" ", Qt::SkipEmptyParts); } else { argsList << "--intf=dummy" << "--no-media-library" << "--no-stats" << "--no-osd" << "--no-loop" << "--no-video-title-show" #if defined(Q_OS_DARWIN) << "--vout=macosx" #endif << "--drop-late-frames"; } return argsList; libvlc_instance_t m_vlcInstance = libvlc_new(args.count(), argv); libvlc_media_player_t m_vlcMediaPlayer = libvlc_media_player_new(m_vlcInstance); libvlc_media_t m_vlcMedia = libvlc_media_new_path(m_vlcInstance, loc.toUtf8().data()); libvlc_media_player_play(m_vlcMediaPlayer); }
I got a crash.

Using libvlc version: "4.0.0-dev Otto Chriek"
Assertion failed: (param != NULL), function config_GetPsz, file core.c, line 102.

Image

Re: LibVLC 4.0 MacOS crash

Posted: 22 Apr 2022 17:45
by Rémi Denis-Courmont
Seems like you removed the vmem module.

Re: LibVLC 4.0 MacOS crash

Posted: 25 Apr 2022 08:37
by AlexeyGromov
I didn't remove nothing. How to install this module? And where should it be placed? Thanks.

Re: LibVLC 4.0 MacOS crash

Posted: 25 Apr 2022 09:25
by Rémi Denis-Courmont
The module is enabled by default in official builds.

Re: LibVLC 4.0 MacOS crash

Posted: 25 Apr 2022 11:02
by AlexeyGromov
It looks like I have this module:

Image

Re: LibVLC 4.0 MacOS crash

Posted: 25 Apr 2022 17:23
by Rémi Denis-Courmont
Then LibVLC can't find its modules.

Re: LibVLC 4.0 MacOS crash

Posted: 27 Apr 2022 11:31
by Rémi Denis-Courmont
The crash is tracked as issue 26881. But that's only a symptom of your installation being incomplete or corrupt.

Re: LibVLC 4.0 MacOS crash

Posted: 28 Apr 2022 12:43
by Rémi Denis-Courmont
And of course some other devs prefer to keep the bug than to merge the simple fix.

Well I suppose leaving bugs feeds their consulting fees so it all makes sense.