I’m trying to have VLC’s snap build fixed (although the issue is the same on any recent ubuntu, snap or not), and I’ve been advised by @Wimpress to come here for help, so here I am
Basically, our builds are failing because we generate a plugin cache which involves loading and unloading every plugin at build time.
The problem is, some modules depend on
libmirclient, which in turn depends on
libprotobuf-lite. As it turns out, protobuf doesn’t seem to handle multiple shared libraries being loaded/unloaded by the same program quite well.
This issue is demonstrated by this ticket on their bugtracker: https://github.com/google/protobuf/issues/206
On VLC’s side, we are tracking the issue under https://trac.videolan.org/vlc/ticket/18329 (which is probably a bit more detailed than what I wrote here)
We work around the build issue, but things would be worth an unpredictable at runtime. For instance, switching between video output modules would result in a crash, possibly just playing a video file, then an audio file, and a video file again would crash, using the chromecast module would definitely crash after the 2nd media… so I really believe that this is something that needs to be fixed, but I don’t see a way out that doesn’t require a fix in protobuf, and as you can see the issue was closed as
Any help, idea, hints would be highly appreciated! Thanks a lot in advance