Page 1 of 1

[posila] Display refresh freezes when video output is changed

Posted: Fri Jun 30, 2017 12:10 am
by rideawalrus
This happens on all versions through the latest experimental, across multiple games and menus. While the game is running full-screen if I change the video output source on my computer the display stops refreshing, but everything else continues. I can still hear sounds, I can walk around (can hear factories get closer or farther), it still autosaves, but the graphics are frozen. The only way to fix it is to force close the game and reopen. I usually play on a DVI monitor but like to switch to HDMI to a TV. They are the same resolution and are both outputting from an Nvidia gtx 770.

Re: Display refresh freezes when video output is changed

Posted: Fri Jun 30, 2017 9:02 am
by Loewchen
Post the log after a session with the issue, see my signature.

Re: Display refresh freezes when video output is changed

Posted: Fri Jun 30, 2017 11:16 pm
by rideawalrus
Log with the issue, used force alt-f4 to quit.

Re: [posila] Display refresh freezes when video output is changed

Posted: Tue Jul 04, 2017 6:48 pm
by posila
Hi, I'd like to clarify - do you switch to the TV or duplicate output to the TV?

The log doesn't contain error I expected it would. Do other DirectX9 games survive this transition? (For example anything using Source engine - Half Life 2, Portal 1/2)

Does it also freeze if you try to force OpenGL rendering? Open Factorio properties in Steam library and set launch options to

Code: Select all

--force-opengl

Re: [posila] Display refresh freezes when video output is changed

Posted: Wed Jul 05, 2017 7:49 am
by TruePikachu
posila wrote:(For example anything using Source engine - Half Life 2, Portal 1/2)
If you need something free to use as a test, since you're already on Steam, I'd suggest TF2.

Re: [posila] Display refresh freezes when video output is changed

Posted: Thu Jul 06, 2017 12:01 am
by Harkonnen
You can also try to hit Alt-Enter twice (go fullscreen and back) - might reset something.

Re: [posila] Display refresh freezes when video output is changed

Posted: Mon Jul 10, 2017 11:56 pm
by rideawalrus
I am duplicating output to the TV (HDMI), or when I go back to single output to monitor (DVI). It does the same thing with Half Life 2 and Portal 2. I'm not running Factorio in fullscreen, but Half life 2 and portal 2 were in full screen, same results. Using Alt-Enter twice just makes it crash with an unable to create sprites error, and didn't do anything on the other two games since they went out of focus when the problem occurs. It does not happen when I force OpenGL.

Re: [posila] Display refresh freezes when video output is changed

Posted: Tue Jul 11, 2017 12:21 am
by TruePikachu
Since it happens in other games using DX9, it is likely to be an issue with your video card driver. My suggestion is to force OpenGL if you don't want it to crash, there really isn't anything else that can be done on the Factorio side of things.

Re: [posila] Display refresh freezes when video output is changed

Posted: Sun Nov 18, 2018 2:13 am
by Lizzy
Hi, I don't know if it's related or not, but here goes. My display crashes (with an error message) every time I switch between HDMI output or native laptop display. This is an exclusive switch (I'm only used the two highlighted options from project-menu.png), and the screen resolutions are different.

Re: [posila] Display refresh freezes when video output is changed

Posted: Sun Nov 18, 2018 4:05 am
by TruePikachu
Ekevoo wrote:
Sun Nov 18, 2018 2:13 am
Hi, I don't know if it's related or not, but here goes. My display crashes (with an error message) every time I switch between HDMI output or native laptop display. This is an exclusive switch (I'm only used the two highlighted options from project-menu.png), and the screen resolutions are different.
That is an unrelated issue, it belongs in a separate thread, but it would be likely to be closed anyway because of the backend rewrite for 0.17.