Repository navigation
Closed
Labels
area/dependencyIssue is in external library or dependency, not OBS itselfissue/confirmedThis bug report has been confirmed by a project memberplatform/linuxCategorizes issue or PR as affecting Linux specifically
Description
Operating System Info
Other
Other OS
Manjaro stable
OBS Studio Version
27.1.3
OBS Studio Version (Other)
No response
OBS Studio Log URL
OBS Studio Crash Log URL
No response
Expected Behavior
Sustained broadcast/recording with no crashes
Current Behavior
Unpredictable crashes every 5 to 180 minutes
Steps to Reproduce
- Run obs on Wayland
- Use a screen capture via PipeWire
- Start recording
- Wait anywhere between 5 to 180 minutes
Anything else we should know?
I'm using:
- OBS Studio 27.1.3, built from aur: obs-studio-browser, with obs-browser, obs-vst, CEF compatibility patch and python binary loading patch
- KDE Plasma 5.22.5
- plasma-wayland-session
- Qt 5.15.2
- PipeWire 0.3.38
- cef-minimal 94.4.9
During recent streaming sessions, I've encountered a lot of random crashes, sometimes minutes apart, sometimes after a couple hours of streaming. Running with debug symbols under gdb has revealed a segfault at plugins/linux-capture/pipewire.c:478:
Thread 73 "PipeWire thread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffe737fe640 (LWP 8002)]
on_process_cb (user_data=0x55555628dd20) at /usr/src/debug/obs-studio-browser/plugins/linux-capture/pipewire.c:478
478 /usr/src/debug/obs-studio-browser/plugins/linux-capture/pipewire.c: No such file or directory.
(gdb) backtrace -full
#0 on_process_cb (user_data=0x55555628dd20) at /usr/src/debug/obs-studio-browser/plugins/linux-capture/pipewire.c:478
bitmap = 0x7fff0bfdf424
format = GS_BGRA
obs_pw = 0x55555628dd20
cursor = 0x7fff0c00f728
drm_format = 4294769916
region = <optimized out>
buffer = <optimized out>
b = 0x5555588b4758
swap_red_blue = <optimized out>
has_buffer = <optimized out>
#1 0x00007fff503f5b68 in () at /usr/lib/libpipewire-0.3.so.0
#2 0x00007fff504807d9 in () at /usr/lib/spa-0.2/support/libspa-support.so
#3 0x00007fff5047cac6 in () at /usr/lib/spa-0.2/support/libspa-support.so
#4 0x00007fff50480e8b in () at /usr/lib/spa-0.2/support/libspa-support.so
#5 0x00007fff503f8fdf in () at /usr/lib/libpipewire-0.3.so.0
#6 0x00007ffff630c259 in start_thread () at /usr/lib/libpthread.so.0
#7 0x00007ffff4ac55e3 in clone () at /usr/lib/libc.so.6
Given that line 478 nullchecks the pointer before using it, I assume it must be a dangling pointer. I'm not sure where to go looking from there, though.
Metadata
Metadata
Assignees
Labels
area/dependencyIssue is in external library or dependency, not OBS itselfissue/confirmedThis bug report has been confirmed by a project memberplatform/linuxCategorizes issue or PR as affecting Linux specifically
Activity
kkartaltepe commentedon Oct 31, 2021
Please provide the entire stack trace
outfrost commentedon Oct 31, 2021
Sorry, should've thought of that. Updated the listing above with a new gdb printout with backtrace.
xpamych commentedon Nov 29, 2021
When adding any 3D application window or browser, it fails with an error. Arch linux. obs-studio-browser from aur.
`
kkartaltepe commentedon Nov 29, 2021
Another user also reported a crash in uploading the texture with debug symbols
kkartaltepe commentedon Nov 29, 2021
@GeorgesStavracas Does this make sense to you? The latest crash is reported as immediately after beginning capture.
GeorgesStavracas commentedon Dec 1, 2021
Thanks for the ping. i don't know what could be causing this crash.
__memmove_avx_unaligned_ermsis usually a general memory corruption - either unintialized or freed memory. So this indeed looks like a use-after-free.xpamych commentedon Dec 1, 2021
@GeorgesStavracas
The error is repeated on different computers. Lenovo ThinkPad L13 Gen2 Laptop
OS: Arch Linux x86_64
Host: 20VH001WRT ThinkPad L13 Gen 2
Kernel: 5.15.5-arch1-1
Shell: zsh 5.8
Resolution: 1920x1080
DE: Plasma 5.23.4
WM: kwin
CPU: 11th Gen Intel i5-1135G7 (8) @ 4.200GHz
GPU: Intel TigerLake-LP GT2 [Iris Xe Graphics]
and PC:
Host: X470 AORUS GAMING 7 WIFI
CPU: AMD Ryzen 9 5900X (24) @ 3.700GHz
GPU: AMD ATI Radeon RX 6800/6800 XT / 6900 XT
Memory: 32053MiB
OS: Arch Linux x86_64
Kernel: linux-lqx
Resolution: 2560x1440, 2560x1080, 2560x1080
minecraft2048 commentedon Dec 2, 2021
I'm also having same segfault on Arch Linux with KDE.. Tried to run it under
valgrind --track-origins=yesbut not helpfulkkartaltepe commentedon Dec 5, 2021
Another user has reported this and posted a log which appears to show the frame data being garbled. https://cdn.discordapp.com/attachments/858151683418226708/914281546196865094/unknown.png They believe it may be packed RGB data being sent to obs, which we dont support IIRC.
minecraft2048 commentedon Dec 8, 2021
After thinking about where the segfault come from:
obs-studio/plugins/linux-capture/pipewire.c
Lines 518 to 521 in b92e941
I found a workaround, which is to uncheck Show Cursor in the Pipewire screen capture properties window. Instead of OBS crashing within several seconds, now its stable for at least 10 minutes
outfrost commentedon Dec 8, 2021
@minecraft2048 Please keep in mind that these crashes can be quite random. At least for me, they could happen in the first 5 minutes, or only after 3+ hours of streaming/recording.
GeorgesStavracas commentedon Dec 8, 2021
Given that the only thing in common between all these reports is that they all use KDE, I'm starting to think the KDE implementation is sending a bogus cursor through PipeWire. That would be the only reasonable explanation. PipeWire itself doesn't touch the contents of the cursor, only OBS Studio, so we end up triggering the crash.
GeorgesStavracas commentedon Dec 8, 2021
CC @grulja - does my comment above make sense to you?
grulja commentedon Dec 9, 2021
HI, I don't know much about the implementation of cursor support in KWin. This was implemented by @Apol and the code is here.
Magi-KS commentedon Dec 9, 2021
having the same issue here.
Distro: Arch
DE: Gnome
Pipewire: yes
crashes both on AUR:obs-studio-browser AND the default obs provided by Arch.
in some cases it froze the whole system.
some observation:
Settings->Audio, the crash occur less often.GeorgesStavracas commentedon Dec 9, 2021
@Magi-KS could you share the backtrace of your crash?
Magi-KS commentedon Dec 9, 2021
ok, so mine appears to be a different case?
GeorgesStavracas commentedon Dec 9, 2021
@Magi-KS yes, your backtrace seems completely different than the other ones shared here. Could you please open another issue with that? Make sure to fill in the template too.
kkartaltepe commentedon Dec 9, 2021
A crash in x264 is almost always due a broken system (and that you have symbols for it is highly suspect). Please use support in that case.
Magi-KS commentedon Dec 9, 2021
I actually followed this
to have the debug symbol added to x264 package because i didn't give any meaningful trace initially, just something about libx264.
what do you mean by use support? @kkartaltepe
kkartaltepe commentedon Dec 9, 2021
Well that's also a perfect recipe for breaking x264. Please use one https://obsproject.com/help probably our discord or forums.
RytoEX commentedon Mar 27, 2024
Is this still occurring with modern OBS Studio (30.1.1+) and a modern environment+dependencies? This doesn't seem like it was our bug to fix, and there have been plenty of changes/fixes in KWin for cursor handling in the meantime.
https://invent.kde.org/plasma/kwin/-/commits/master/src/plugins/screencast/screencaststream.cpp
ogmkp commentedon Nov 25, 2025
I am unable to reproduce the issue with OBS 31+ on Linux Debian 13. Can we close this ticket?
Fenrirthviti commentedon Nov 25, 2025
Closing per above. If this can be replicated with further information, we can reopen.