Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Windowed mode white screen issue with multiple monitors #10099

Closed
ageekhere opened this issue Oct 22, 2022 · 12 comments
Closed

[Bug]: Windowed mode white screen issue with multiple monitors #10099

ageekhere opened this issue Oct 22, 2022 · 12 comments
Labels
needs triage This issue needs further investigation before it becomes actionable

Comments

@ageekhere
Copy link

Version of OpenTTD

OpenTTD 12.2 - Windows 11

Expected result

Set OpenTTD to run as windowed mode and then stretch out the game window across multiple monitors, exit the game, start the game, the game should run.

Actual result

If OpenTTD was closed while having the game window stretch across multiple monitors the next time OpenTTD starts it will hang and show a white screen.

Steps to reproduce

  1. Disable fullscreen
  2. Stretch out game window across multiple monitors (in my case 3x 1920x1080 monitors).
  3. Exit the game
  4. Start the game, you now get a white screen and the game hangs
@PeterN
Copy link
Member

PeterN commented Oct 23, 2022

Cannot reproduce here, at least across 2 monitors.

@ageekhere
Copy link
Author

I am running windows 11, I do not remember having this issue with windows 10.

@krysclarke
Copy link
Contributor

Unable to re-produce on Debian Sid with v12.2, running 2x 1920x1080 monitors.

Is this a Windows-only (Windows 11-only??) issue?

Did you stretch the OpenTTD window across some/all of your 3 monitors, or just across two of them?

@ageekhere
Copy link
Author

Ah, did some more tests, the bug happens when the window passes a certain size.
So in my case 5760x1080, if i make the window 1920x1080 but across multi monitors it does not have the issue.

@James103
Copy link
Contributor

What is the make and model of your GPU?

Full output from dxdiag.exe (run, wait for progress bar, then click Save All Information) if you can.

@ageekhere
Copy link
Author

ageekhere commented Oct 23, 2022

It is a GeForce RTX 3060 TI, come to think of it I had a 1060 the last time i played. Maybe something to do with the 3000 series?

@LordAro LordAro changed the title [Bug]: Windowed mode white screen issue with multiple monitors [Bug]: Windowed mode white screen issue with multiple monitors Oct 23, 2022
@nielsmh
Copy link
Contributor

nielsmh commented Oct 23, 2022

I'm not reproducing it either. Windows 10 with GeForce RTX 2060, OpenTTD 12.2 with hardware acceleration enabled.
I stretched the game out to about 5700 pixels wide across two monitors (3840x2160 and 1920x1080), quit the game, started again. The restored window after restarting the game was smaller than when I quit it.

@James103
Copy link
Contributor

I stretched the game out to about 5700 pixels wide across two monitors (3840x2160 and 1920x1080), quit the game, started again. The restored window after restarting the game was smaller than when I quit it.

  1. What was the value of resolution in the [misc] section of openttd.cfg when you closed the game?
  2. What is the approximate size of the window relative to the monitors when you restarted the game?

Since your monitors were of different resolutions, it's possible stretching the game window across both the 4K and HD monitors then restarting caused the size to be stored as if on the HD monitor, but the window opened on the 4K monitor.

@ageekhere
Copy link
Author

ageekhere commented Oct 23, 2022

I have done some more tests, with 3 1920x1080 monitors, the max width resolution is 5743 before you get the white screen bug.
So for now I have just set my resolution to 5743x1103 (the height is set a bit higher to cut of the white bar at the top).

@krysclarke
Copy link
Contributor

Setting my resolution to 5744x1000 in stock 12.2 on Debian Sid loaded fine. FAR too wide for my 2x 1920x1080 screens, but I got through to the titlescreen.
Increasing the resolution to 6000x1200 didn't lock it up, either.

@ageekhere
Copy link
Author

I am starting to think it could be a windows 11 issue.

@2TallTyler 2TallTyler added the needs triage This issue needs further investigation before it becomes actionable label Nov 3, 2022
@ageekhere
Copy link
Author

This now seems to be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue needs further investigation before it becomes actionable
Projects
None yet
Development

No branches or pull requests

6 participants