You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: live multi-source conference sessions repeatedly crash on Arch Linux (#3710) #3799
Split from #3710, reported by @alerque: at least six unexpected crashes during live conference shots, plus several before going live, on Arch Linux with clean-chroot AUR obs-studio-rust-git build 1.0.0.r101.g46f152b. Two PTZ cameras over NDI, HDMI capture, four-channel DAC plus camera audio, Browser sources, streaming, main recording and per-camera source-record outputs were in use. The user had to restore service and could not collect crash diagnostics during the event. A Monday build also failed during the session; the earlier working build hash is unknown.
Location / class
Unexpected process termination in a live multi-source/multi-output session. No stack or failing component is available, so no source line or root cause is assigned. This is distinct from a GUI that closes but leaves a process spinning (#3739).
Existing work checked
#3739 covers shutdown hang / false already-running prompts; #3742 source-record audio; #3745 NDI reconnects; #3740 docks. #3747 / #3752 fix an audio-dropout trigger, not proven live-session crash coverage. #3763 tracks a different reporter's Browser-source crash and streaming freeze on an AnduinOS v1.0.0 package; there is no evidence yet that these are the same failure. Do not duplicate that worker's Browser investigation.
Investigation and failing-test plan
Run the real app under Xvfb with a saved scene containing several active sources and recording, then add matching plugin versions/output combinations as available. Collect a terminating signal/core and backtrace before choosing a fix. Reduce the crashing setup to a regression test, record RED, then fix and validate with the full app configuration. A startup survival check alone cannot resolve intermittent production crashes.
Missing evidence
Next crash: retain its OBS session log and the local systemd core, if enabled (coredumpctl info obs-studio-rust-gui and a debugger backtrace). Record exact DistroAV, NDI runtime and source-record versions, the action/output state at termination, and whether OBS vanished or became unresponsive. Redact stream keys, tokens and private addresses. No need to recreate a production conference merely to collect this.
Just a little more info. I'll try to get coredumps on this at some point, but so far it only happend at inconvenient times! Two more hard crashes today, both with no moments to space for debugging.
The common thread I see is that all the ones today and at least some of the ones yesterday happen right at or within about 2 seconds of starting recording. I've learned to start recording early to get past the crash point, then let it run for a few minutes before actually needing it. Not a good defensive habit to need if the stack wasn't flaky, but it seems likely related to recording or things triggered by recording.
Picking up your comment on #3710 here, where the crashes are tracked: two more crashes yesterday, right after starting the recordings, with the main and the source-record files created but 0 bytes.
That is the same pattern as your 7 November comment (within about 2 s of starting the recording), and the 0-byte files make it more precise: the crash comes after the outputs created their files, before the first packet was written. So it is in the start of the recording outputs or their encoders.
To find where, we need a stack of one crash. You do not need a debugger attached or any time during the session: on Arch, systemd-coredump keeps a core file of every crash. After the next one, at any later time:
coredumpctl list --since today
coredumpctl debug <PID> --debugger-arguments="-batch -ex 'thread apply all bt'" > obs-crash-bt.txt 2>&1
Use the PID of the OBS line in the list. Please attach obs-crash-bt.txt and the OBS log of that session. (I ran both commands on an Arch machine with a test crash; the file then has the backtraces of all threads.)
Two more details would help:
The encoders of the main recording and of the source-record filters (for example NVENC, VA-API or x264), and the GPU.
Whether it also happens with only the main recording, without the source-record filters.
Frames without function names are still useful: the library names show which part crashed.
Okay looking at one of the 0 byte output files I have I see a timestamp of 16:43 yesterday, and another at 19:30. Those roughly correspond to some coredumps too:
Note that one of these has crashes listed at the exact timestamp from just OBS, the other is about a minute behind the empty file and has both an OBS ad Pipewire crash. I don't see even an empty output file for the later one. I think I was playing with NDI disconnects at that time. The 16:43 time would also have been testing, I think I was specifically testing the PTZ plugin shutdown problem at that point. The 19:30 crash was "production" ... I had everything setup for a live stream and it had been soundchecked and sitting with a virtual camera running for about 10 minutes, and at 19:30 I hit the "record" button and it crashed.
Since that's the most interesting one I'll attach the dumps from those two PIDs here:
Thanks, the backtrace of the 19:30 crash shows where it happens. The crashing thread:
obs_output_release → (libobs: the output's destroy and stop) → signal_handler_signal → release_output_stopped (source-record.so) → glibc abort()
glibc aborts there on a double free. release_output_stopped is the handler that older source-record versions connect to a recording output's stop signal. It frees its data and never disconnects itself, so it is safe only if stop comes once.
We think obs-rust sends stop twice in this case, and that this is our regression. On 6 November a change for a stop that never finished (#3764, the hang at exit) made libobs end the capture of an output that never got a packet. Your 0-byte files show exactly that case. When the source-record output is then released while it still counts as active, the destroy runs that stop again and sends a second stop. The handler then runs on freed memory. Upstream OBS sends stop only once there. That fits the crashes within about 2 seconds of starting a recording, which you reported from 7 November on.
Next steps on our side: a test that reproduces the second stop, then a fix in libobs so that an output sends stop once per stop, as upstream does. Your trace also shows that source-record 0.5.0 (7 November) no longer has this handler. We have not checked whether its new one avoids the crash, so we cannot recommend the update as a workaround yet.
The PipeWire crash 34 s later (pipewire-pulse, pw_stream_trigger_process) looks like a PipeWire bug triggered when OBS went away, not a second OBS problem.
If you still have the cores of the 16:43 crash (SIGSEGV) and the 21:04 crash (SIGABRT, OBS only 1.5 MB), backtraces of those would show whether they are the same crash or a different one. A SIGSEGV is a different signal, so it may be something else.
Claiming: #3799 (the crash in the backtrace above: a second stop signal for one stop)
Plan, one PR:
RED: a libobs test with an encoded output that never gets a packet. Force-stop it, then release it while it still counts as active. Count the stop signals: today 2, upstream 1.
Here are the other two core dumps. Note that the earlier one is going to be running DistroAV (which I continued to run through the evening getting ready for and running the stream starting at 19:30), and the later one (21:04) is going to be after I was done with production and starting to fiddle with experiments. In fact it would be right at the time I was uninstalling distroav and installing obs-avip. It's even possible that crash was due to installing DistraAV while OBS was running (I don't remember the sequence, but that's possible). The timestamp for the crash is about a minute before the package installation timestamp for obs-avip, so I wouldn't put much stock in what happened there.
Thanks for the two other cores. The fix for the crash in your traces is now on master (#4843, 3e5f397), so this issue closed with it.
16:43 (SIGSEGV): the same crash as 19:30. The crashing thread has the same frames: obs_output_release → libobs stop → signal_handler_signal → release_output_stopped (source-record.so). This time the handler crashed while it read the memory it had freed, and glibc did not detect a double free first. So both crashes when you started a recording have one cause: a second stop signal from libobs.
21:04 (SIGABRT, 1.5 MB): a different case. OBS stopped at startup, in Qt (QGuiApplicationPrivate::createPlatformIntegration), before it loaded a scene. Qt does this when it cannot open its display platform plugin, for example when OBS starts from a shell that has no Wayland or X11 display. That agrees with the start from tmux at the time you changed the plugins. It is not a fault of OBS itself.
What changed: an output now sends stop only once when it is stopped and then destroyed while it still counts as active, as in upstream OBS. A test in libobs now does what source-record does (a stop handler that stays connected, a force stop before the first packet, a release after the first stop). Before the fix it got 2 signals; now it gets 1.
To check: a build from master that includes 3e5f397 (the next obs-studio-rust-git build). Then start the recordings with the source-record filters active, as you did at 19:30. If it crashes again within seconds of the start, please attach the backtrace in the same way; that would be a different cause. The issue can be reopened.
Activity
alerque commentedon Nov 7, 2026
Just a little more info. I'll try to get coredumps on this at some point, but so far it only happend at inconvenient times! Two more hard crashes today, both with no moments to space for debugging.
The common thread I see is that all the ones today and at least some of the ones yesterday happen right at or within about 2 seconds of starting recording. I've learned to start recording early to get past the crash point, then let it run for a few minutes before actually needing it. Not a good defensive habit to need if the stack wasn't flaky, but it seems likely related to recording or things triggered by recording.
vpacher commentedon Nov 13, 2026
Picking up your comment on #3710 here, where the crashes are tracked: two more crashes yesterday, right after starting the recordings, with the main and the source-record files created but 0 bytes.
That is the same pattern as your 7 November comment (within about 2 s of starting the recording), and the 0-byte files make it more precise: the crash comes after the outputs created their files, before the first packet was written. So it is in the start of the recording outputs or their encoders.
To find where, we need a stack of one crash. You do not need a debugger attached or any time during the session: on Arch, systemd-coredump keeps a core file of every crash. After the next one, at any later time:
Use the PID of the OBS line in the list. Please attach
obs-crash-bt.txtand the OBS log of that session. (I ran both commands on an Arch machine with a test crash; the file then has the backtraces of all threads.)Two more details would help:
Frames without function names are still useful: the library names show which part crashed.
alerque commentedon Nov 13, 2026
Okay looking at one of the 0 byte output files I have I see a timestamp of 16:43 yesterday, and another at 19:30. Those roughly correspond to some coredumps too:
Note that one of these has crashes listed at the exact timestamp from just OBS, the other is about a minute behind the empty file and has both an OBS ad Pipewire crash. I don't see even an empty output file for the later one. I think I was playing with NDI disconnects at that time. The 16:43 time would also have been testing, I think I was specifically testing the PTZ plugin shutdown problem at that point. The 19:30 crash was "production" ... I had everything setup for a live stream and it had been soundchecked and sitting with a virtual camera running for about 10 minutes, and at 19:30 I hit the "record" button and it crashed.
Since that's the most interesting one I'll attach the dumps from those two PIDs here:
obs-crash-bt-17876.txt
obs-crash-bt-2182109.txt
vpacher commentedon Nov 13, 2026
Thanks, the backtrace of the 19:30 crash shows where it happens. The crashing thread:
obs_output_release→ (libobs: the output's destroy and stop) →signal_handler_signal→release_output_stopped(source-record.so) → glibcabort()glibc aborts there on a double free.
release_output_stoppedis the handler that older source-record versions connect to a recording output'sstopsignal. It frees its data and never disconnects itself, so it is safe only ifstopcomes once.We think obs-rust sends
stoptwice in this case, and that this is our regression. On 6 November a change for a stop that never finished (#3764, the hang at exit) made libobs end the capture of an output that never got a packet. Your 0-byte files show exactly that case. When the source-record output is then released while it still counts as active, the destroy runs that stop again and sends a secondstop. The handler then runs on freed memory. Upstream OBS sendsstoponly once there. That fits the crashes within about 2 seconds of starting a recording, which you reported from 7 November on.Next steps on our side: a test that reproduces the second
stop, then a fix in libobs so that an output sendsstoponce per stop, as upstream does. Your trace also shows that source-record 0.5.0 (7 November) no longer has this handler. We have not checked whether its new one avoids the crash, so we cannot recommend the update as a workaround yet.The PipeWire crash 34 s later (
pipewire-pulse,pw_stream_trigger_process) looks like a PipeWire bug triggered when OBS went away, not a second OBS problem.If you still have the cores of the 16:43 crash (SIGSEGV) and the 21:04 crash (SIGABRT, OBS only 1.5 MB), backtraces of those would show whether they are the same crash or a different one. A SIGSEGV is a different signal, so it may be something else.
vpacher commentedon Nov 13, 2026
Claiming: #3799 (the crash in the backtrace above: a second
stopsignal for one stop)Plan, one PR:
stopsignals: today 2, upstream 1.stoponce per stop, also when the end-capture added for libobs: End the stop of an output that never got a packet #3764 and the stop inobs_output_destroyboth run. The libobs: End the stop of an output that never got a packet #3764 case (no hang at exit) must keep passing.First PR with the RED test today.
libobs: send an output's stop signal once when it is stopped again du…
alerque commentedon Nov 13, 2026
Here are the other two core dumps. Note that the earlier one is going to be running DistroAV (which I continued to run through the evening getting ready for and running the stream starting at 19:30), and the later one (21:04) is going to be after I was done with production and starting to fiddle with experiments. In fact it would be right at the time I was uninstalling
distroavand installingobs-avip. It's even possible that crash was due to installing DistraAV while OBS was running (I don't remember the sequence, but that's possible). The timestamp for the crash is about a minute before the package installation timestamp for obs-avip, so I wouldn't put much stock in what happened there.obs-crash-bt-2288328.txt
obs-crash-bt-2166904.txt
vpacher commentedon Nov 13, 2026
Thanks for the two other cores. The fix for the crash in your traces is now on master (#4843, 3e5f397), so this issue closed with it.
16:43 (SIGSEGV): the same crash as 19:30. The crashing thread has the same frames:
obs_output_release→ libobs stop →signal_handler_signal→release_output_stopped(source-record.so). This time the handler crashed while it read the memory it had freed, and glibc did not detect a double free first. So both crashes when you started a recording have one cause: a secondstopsignal from libobs.21:04 (SIGABRT, 1.5 MB): a different case. OBS stopped at startup, in Qt (
QGuiApplicationPrivate::createPlatformIntegration), before it loaded a scene. Qt does this when it cannot open its display platform plugin, for example when OBS starts from a shell that has no Wayland or X11 display. That agrees with the start from tmux at the time you changed the plugins. It is not a fault of OBS itself.What changed: an output now sends
stoponly once when it is stopped and then destroyed while it still counts as active, as in upstream OBS. A test in libobs now does what source-record does (astophandler that stays connected, a force stop before the first packet, a release after the firststop). Before the fix it got 2 signals; now it gets 1.To check: a build from master that includes 3e5f397 (the next
obs-studio-rust-gitbuild). Then start the recordings with the source-record filters active, as you did at 19:30. If it crashes again within seconds of the start, please attach the backtrace in the same way; that would be a different cause. The issue can be reopened.libobs: send an output's stop signal once when it is stopped again du…