Desktop audio input fails if screen resolution changes
Operating System Info
Ubuntu 22.04
Other OS
No response
OBS Studio Version
29.0.2
OBS Studio Version (Other)
No response
OBS Studio Log URL
https://obsproject.com/logs/EGdIuc92BvRaUDAF
OBS Studio Crash Log URL
No response
Expected Behavior
OBS should be able to record desktop audio at all times.
Current Behavior
Desktop audio works fine when it is first started, but any change of the monitor's resolution causes audio to immediately fail, and cannot be recovered until OBS is restarted.
Steps to Reproduce
- Load OBS
- Play audio (VLC, for example)
-
xrandr -s 1920x1080
Audio is lost. Reveting the resolution makes no difference. The audio on the computer itself is fine and continues to play as expected.
Anything else we should know?
The monitor briefly flickers when resolution changes. This may cause the PC to see a disconnect of the monitor, but there's nothing in the system log to suggest this. Nonetheless, no other app has an issue with this and all audio continues to be played.
Also tested with audio-recorder and this has no issues with the input and continues to record.
From discussion on this, it sounds like that initiating a resolution switch like this is possibly messing with the EGL context for OBS. It's unclear if there's even anything we could do about that, OBS shouldn't care what the display resolution is, so if this is breaking on change, there is likely some kind of driver restart, or other connection to EGL that is getting severed and causing this.
I'm fine with this staying open in case anyone wants to investigate further, but it's the current opinion of the project that this kind of destructive change is not a supported use case. We would welcome a fix if there is one, but probably won't be spending any time digging further ourselves.
Can't replicate on OBS 29.1.3, Debian 12, amdgpu, pipewire.
Under KDE Wayland, I cannot reproduce the problem on Debian 13 with OBS 31+. Can we close this ticket?
I don't use Wayland.
Is this still happening on the latest version for you? As mentioned in my previous comment, the difference between OBS and other applications is that OBS is rendering a preview, which is tied to the functionality of the application. Stalls in that can affect output, and forcing a display resolution change during use would be, IMO, considered a bit of a destructive act as far as OBS is concerned and things breaking (or not) is outside our control. There may indeed be a bug here, but just setting expectations this is likely a low priority for anyone to take a closer look.