dimtpap / obs-pipewire-audio-capture

🔊 Audio device and application capture for OBS Studio using PipeWire
https://obsproject.com/forum/resources/pipewire-audio-capture.1458/
GNU General Public License v2.0
300 stars 9 forks source link

Crash on add source #7

Closed AlbinoGeek closed 2 years ago

AlbinoGeek commented 2 years ago

Hello,

OBS crashes to desktop (Fedora 36) whenever I try to add one of these pipewire sources.

Here's the error (only shown when OBS run from terminal):

[E] pw.context [pipewire.c:256 load_spa_handle()] load lib: plugin directory undefined, set SPA_PLUGIN_DIR
[E] pw.loop [loop.c:83 pw_loop_new()] 0x560b08944810: can't make support.system handle: No such file or directory
'obs' terminated by signal SIGSEGV (Address boundary error)
dimtpap commented 2 years ago

Does it work if you run OBS using the command OBS_USE_EGL=1 obs?

MurdoMaclachlan commented 2 years ago

Getting the same error over here (Slackware Current), OBS_USE_EGL=1 obs makes no difference for me.

My error log has a slight difference, with the final line just being Segmentation fault instead.

Notably, it's only happening with 1.0.0 for me; if I roll back to the last version before that, it works fine. I also note, with 1.0.0 installed, none of my existing PipeWire sources from the older version do anything, and their 'Properties' options are greyed out.

dimtpap commented 2 years ago

Hopefully it's happening because I just forgot to call pw_init, can you try this build?

MurdoMaclachlan commented 2 years ago

No more crashing and the video sources are fully working again, but the existing audio sources still have 'Properties' greyed out and don't appear in the audio mixer or record any audio. Newly-added audio sources work as expected.

Interestingly, for existing audio sources with filters, the 'Filters' menu is still acessible, but looks like this:

image

Only displays one filter, with no option to change to others (though I know others do exist for it) or add/remove ones.

dimtpap commented 2 years ago

Existing sources from previous updates don't work because I stupidly changed the source IDs. I will push an update soon to fix both of the issues.