Page 1 of 1

[0.12.29] Failed to create display!

Posted: Wed Apr 13, 2016 11:26 am
by torakles
I just updated the game to v0.12.29 and everytime I try to open the game, it crashes and shows a screen saying "failed to create display!". I have windows 10 64 bits and I have never had any problem while playing previous versions of the game. In fact I also have the 0.11.something (pirate) version of the game I used to play before buying the game and it still works right now. So far I've tried to repair the game's cache (playing the steam version), redownload/reinstall and restart the computer, but it didn't help. Anyone has any idea of why this is caused and what could be the fix? Thank you in advance.

Re: [0.12.30] Failed to create display!

Posted: Wed Apr 13, 2016 11:37 am
by Koub
Logfile, or or it never happened :).

Re: [0.12.30] Failed to create display!

Posted: Wed Apr 13, 2016 11:52 am
by torakles
Here you go:
log file

Re: [0.12.30] Failed to create display!

Posted: Wed Apr 13, 2016 12:23 pm
by posila
Try set launch options in Factorio properties in Steam to

Code: Select all

--force-d3d
torakles wrote:

Code: Select all

   0.138  [0]: \\.\DISPLAY1 - Intel(R) HD Graphics 3000 {0x05, [0,0], 1366x768, 32bit, 60Hz}
   0.139 Create display on adapter 0. Size 1266x668 at position [40, 32].
   0.155 Allegro requires at least OpenGL version 1.2 to work.
   0.160 Error Util.cpp:58: failed to create display!
I don't understand why it tries to use OpenGL and why your computer does some old version or doesn't have it at all.

Re: [0.12.29] Failed to create display!

Posted: Wed Apr 13, 2016 12:30 pm
by torakles
I tried setting launch options as you said and it works! Thank you!! :D

Re: [0.12.29] Failed to create display!

Posted: Fri Apr 29, 2016 7:12 pm
by NukerNoah
For what it's worth I've been able to consistently reproduce this error.
When I launch through steam it fires it's wrapper that allows the use of steam overlay and launches the game.
I have found that if, during this time, I switch windows to another active window (I used Chrome) before the game window opens instead of the black background and loading screen it's white instead and shortly throws the error "Failed to create display"

So yeah, make sure the game at least gets to it's loading screen before tabbing out.

Re: [0.12.29] Failed to create display!

Posted: Mon Jul 18, 2016 7:40 pm
by alexzzzz
NukerNoah wrote:For what it's worth I've been able to consistently reproduce this error.
When I launch through steam it fires it's wrapper that allows the use of steam overlay and launches the game.
I have found that if, during this time, I switch windows to another active window (I used Chrome) before the game window opens instead of the black background and loading screen it's white instead and shortly throws the error "Failed to create display"

So yeah, make sure the game at least gets to it's loading screen before tabbing out.
I confirm. When launching the game from Steam, don't Alt-Tab before the loading screen shows up, otherwise: "Failed to create display!"

Reproducible in 0.13.9
Using --force-d3d helps.
Log