obsproject / obsproject/obs-studio

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

Open
#5,502 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

platform/windows
Dominant language
C
Stars
76.4k
Forks
10.2k
Avg merge
4d 23h
Merged PRs (30d)
12

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked OBS Studio log and reproducing the issue on Windows 10 with the described multi-monitor DisplayPort setup. Check whether restarting OBS after the monitors are powered off and on selects a different display. Done means the configured center display remains selected after this power cycle.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.