obs-studio icon indicating copy to clipboard operation
obs-studio copied to clipboard

Display capture randomly captures different display after a display port connected screen is powered off and back on

Open MalicT opened this issue 3 years ago • 8 comments

Operating System Info

Windows 10

Other OS

No response

OBS Studio Version

27.1.3

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/M-DSoYVg_Yid3S3M

OBS Studio Crash Log URL

No response

Expected Behavior

Expect OBS to capture center screen, turn off OBS and turn off monitors, turn on monitors, open OBS and OBS still capture center screen

Current Behavior

Desktop capture randomly picks a different screen to capture after displayport screen is turned off and back on, almost displayed personally identifiable info during a livestream.

Steps to Reproduce

  1. Start OBS
  2. Capture a screen that is connected via display port
  3. Turn off OBS
  4. Turn off all monitors
  5. Turn on all monitors
  6. Open OBS
  7. Screen capture randomly captures different monitor instead of the screen I set

Anything else we should know?

My computer is set up in this config: https://i.imgur.com/FuwMPkb.png

I have two video cards. GPU 1 goes to center screen via display port. It is also connected to a Valve Index (behavior still happens with Index unplugged) GPU 2 goes to screens 2,3, and 4. 4 uses a DisplayPort to HDMI adaptor, but is always on (drawing tablet)

When I power off screens 1,2 and 3, Windows sees the new layout as the following: https://i.imgur.com/IT4hdNe.png

The main display screen is not being seen.

When I turn everything back on, it returns to the first image.

When I turn on OBS Studio, the display capture will have done one of the following: Defaulted to capture screen 2, 3, or 4. It is not returning the capture to the center primary screen. OBS was never opened when the monitors were turned off.

MalicT avatar Nov 07 '21 03:11 MalicT

Are you seeing the same issue with both DXGI mode and Windows 10 mode?

WizardCM avatar Nov 07 '21 03:11 WizardCM

Tried all three, Auto, DXGI and Windows 10 mode. All three are doing it. I cannot find out a pattern, but it will not do it if I turn OBS off and back on immediately, and/or turning a screen off and back on. It only tends to happen overnight, after the screens are turned off for several hours, and then only back on will do it, which is why it took a few days to respond to this to test the different settings.

MalicT avatar Nov 17 '21 04:11 MalicT

I can confirm this issue.

LordDragonus avatar Feb 08 '22 21:02 LordDragonus

We've changed how displays are identified for OBS Studio 29. Please retest in OBS Studio 29 Beta 2 (or newer).

RytoEX avatar Dec 07 '22 21:12 RytoEX

Testing displayport on 29 beta 2 and it seems okay for me. The capture did not jump to the other monitor when following the reproduction steps.

flaeri avatar Dec 07 '22 21:12 flaeri

Confirming on my end as well, I had all 3 DP displays configured, and all 3 successfully returned to the correct sources after several times of plugging/unplugging the cables (as well as just power-cycling the displays).

Tested 3 times, no issues.

Fenrirthviti avatar Dec 08 '22 01:12 Fenrirthviti

Am currently running update 29, and it is still happening. Was happening on version 28 as well.

Going back to the first image in the OP however, one thing I have noticed is that to this date, it has never captured screen 3. It always seems to skip to 2 or 4, which become screens 1 and 3 when the single display port screen is shut down.

If there was a way for it to find the last screen that has a specific res for example, would be nice, as my main screen I am trying to capture is 2k and all the others are less then that.

MalicT avatar Jan 12 '23 15:01 MalicT

If you are still seeing this behavior, please provide the info requested here and provide a new OBS log.

RytoEX avatar Apr 13 '24 01:04 RytoEX