FS#70794 - [obs-studio] [vlc] VLC is not build with same Lua package as OBS causing segfault

Attached to Project: Community Packages
Opened by Trystan Mata (tytan652) - Tuesday, 11 May 2021, 08:40 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:02 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jonathan Steel (jsteel)
David Runge (dvzrv)
Levente Polyak (anthraxx)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
Using VLC sources in OBS will provoke "Segmentation fault" because VLC and OBS have not been built with the same Lua package.


Additional info:
* luajit is used for obs-studio
* lua52 is used for vlc

Steps to reproduce:
Just add a VLC source and or switch to a scene with a VLC sources will cause a crash
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:02 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/obs-studio/issues/1
Comment by Trystan Mata (tytan652) - Tuesday, 11 May 2021, 08:44 GMT
I forgot to specify that luajit shall be installed as optional dependency for OBS to enable lua scripting
Comment by Trystan Mata (tytan652) - Sunday, 30 May 2021, 09:12 GMT
If you don't want OBS users to crash because of this incompatibility.

You can build VLC with luajit

OR

Disable VLC sources compilation from OBS with the `DISABLE_VLC` cmake flag
Comment by Jonathan Steel (jsteel) - Sunday, 30 May 2021, 09:27 GMT
I assume we don't want to change the VLC dep? And if that's true I'll try the second option.
Comment by Jason Begley (jayray) - Wednesday, 31 August 2022, 21:22 GMT
Disabling a default behavior due to upstream dependency, and upstream incompatibilities doesn't seem like the correct approach nor the Arch way. A wiki article to reference the incompatibility would suffice without altering the intended functions from upstream.
Comment by Toolybird (Toolybird) - Wednesday, 31 August 2022, 21:26 GMT
Not sure I agree here. @jayray, will you write the wiki entry? And how will it stop the crashing? Upstream report here [1] for reference.

[1] https://github.com/obsproject/obs-studio/issues/4305
Comment by Jason Begley (jayray) - Wednesday, 31 August 2022, 23:14 GMT
@Toolybird you're right. After further thought it's not necessarily and upstream issue, it's a build issue. We shouldn't have to rely on AUR packages to build against a common LUA to get these to work as intended by upstream.
Comment by Alois Nespor (anespor) - Sunday, 29 January 2023, 10:33 GMT
Kinda related  FS#76931 
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.
Comment by Frederik “Freso” S. Olesen (Freso) - Saturday, 11 November 2023, 15:15 GMT
To appease bugbot: This is still an issue. OBS is still built against `luajit` and VLC is still built against `lua`.

Loading...