Skip to content

Desktop audio input fails if screen resolution changes #8699

Open

Description

@KenSharp

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

  1. Load OBS
  2. Play audio (VLC, for example)
  3. 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.

Activity

  1. added
    platform/linux
    on Apr 9, 2023
  2. Fenrirthviti commented on Apr 27, 2023

    @Fenrirthviti
    Member

    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.

  3. ogmkp commented on Jul 3, 2023

    @ogmkp

    Can't replicate on OBS 29.1.3, Debian 12, amdgpu, pipewire.

  4. ogmkp commented on Nov 25, 2025

    @ogmkp

    Under KDE Wayland, I cannot reproduce the problem on Debian 13 with OBS 31+. Can we close this ticket?

  5. KenSharp commented on Nov 25, 2025

    @KenSharp
    Author

    I don't use Wayland.

  6. Fenrirthviti commented on Nov 26, 2025

    @Fenrirthviti
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform/linux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions