obs-studio
obs-studio copied to clipboard
Display capture randomly captures different display after a display port connected screen is powered off and back on
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
- Start OBS
- Capture a screen that is connected via display port
- Turn off OBS
- Turn off all monitors
- Turn on all monitors
- Open OBS
- 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.
Are you seeing the same issue with both DXGI mode and Windows 10 mode?
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.
I can confirm this issue.
We've changed how displays are identified for OBS Studio 29. Please retest in OBS Studio 29 Beta 2 (or newer).
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.
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.
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.
If you are still seeing this behavior, please provide the info requested here and provide a new OBS log.