obsproject / obsproject/obs-studio

OBS Crash with High DPI Scaling Override

Open
#10,686 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Operating System Info

Windows 11

Other OS

No response

OBS Studio Version

30.1.2

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/SYXqOLTdz4TovGSX

OBS Studio Crash Log URL

https://obsproject.com/logs/h0m6NwBx2PkbvQvB

Expected Behavior

Unlock the Twitch chat dock, or any other dock, and move it to another monitor, to allow for OBS to be on a third monitor without blocking my view of chat on the second monitor.

Current Behavior

OBS does not seem to handle 4K displays / high DPI scaling correctly. No issues prior when using 1440p displays, but now with 4K displays, text fields and other aspects of OBS are squished and hard to read. Resizing them does not help. The screenshot attached at the bottom of this report shows an example of what OBS looks like without overriding scaling. If I override the DPI scaling in Windows with the "System (Enhanced)" option, OBS looks as expected. However, this eventually leads to a crash.

After clicking to unlock the Twitch chat dock, nothing happens immediately. Once I click on the title bar and try to drag it, OBS pops up a window that is has crashed. Stream remains live until I click OK, at which point OBS closes, and the stream goes offline.

Steps to Reproduce
  1. Using a 4K display, set to the default 150% or 300% scaling
  2. Set the High DPI override in Windows to "System (Enhanced)"
  3. Unlock a dock with the intention of moving it to another place on the same or other display
  4. Clicking on the dock title bar and starting to move it will cause OBS to crash
  5. The crash does not happen every time while offline, but it does happen to me whenever I am streaming (not sure why this is)
  6. If I do not attempt to move a dock, OBS will run the entire time and not crash
    ...
Anything else we should know?

I have reproduced this with 2 different 4K monitor models, used in sets of 3, connected over combinations of DP/HDMI to my RTX 4080. All 3 monitors are set to the same resolution and DPI in Windows (150%). This was the default scaling for my current Acer XV272K V3 monitors, but my prior Philips 4K monitors defaulted to 300% in Windows and I changed them to 150%.

My screenshot is from the current Twitch Enhanced Beta build of OBS, but this also happened to me using the mainline build.
image

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 reproducing the crash with the supplied OBS Studio log and crash log URLs, using Windows 11, 4K displays, high-DPI override, and a movable dock. Confirm that unlocking and dragging a dock no longer crashes OBS while streaming, and that high-DPI dock rendering remains usable.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.