Page 1 of 1

[0.17.49] Crash: "GraphicsInterfaceDX11::createDeviceAndSwapchain"

Posted: Thu Jun 13, 2019 9:37 pm
by alfocep
i just launch the game and black screen appears, few seconds later a crash dialog shows (image) telling me that i have to send the log file (attached)

Re: Crash while launching Factorio

Posted: Thu Jun 13, 2019 9:44 pm
by boskid

Code: Select all

   0.033 Available displays: 1
   0.033  [0]: \\.\DISPLAY1 - AMD Radeon HD 8650G {0x05, [0,0], 1366x768, 32bit, 60Hz}
   0.132 [Direct3D11] Display: 0, Output: 0, DisplayAdapter: 0, RenderingAdapter: 0; d3dcompiler_47.dll
   0.182 Error CrashHandler.cpp:582: Received SIGSEGV

Code: Select all

ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF8BB045A38)
00007FF8BB045A38 (d3d11): (filename not available): D3D11CreateDeviceAndSwapChain
c:\cygwin64\tmp\factorio-build-kilrvo\src\graphics\dx11\graphicsinterfacedx11.cpp (588): GraphicsInterfaceDX11::createDeviceAndSwapchain
c:\cygwin64\tmp\factorio-build-kilrvo\src\graphics\dx11\graphicsinterfacedx11.cpp (1199): GraphicsInterfaceDX11::initialize
c:\cygwin64\tmp\factorio-build-kilrvo\src\graphics\sdlwindow.cpp (248): SDLWindow::initializeGraphicsInterface
c:\cygwin64\tmp\factorio-build-kilrvo\src\graphics\sdlwindow.cpp (194): SDLWindow::SDLWindow
c:\cygwin64\tmp\factorio-build-kilrvo\src\globalcontext.cpp (896): GlobalContext::loadGraphics
c:\cygwin64\tmp\factorio-build-kilrvo\src\globalcontext.cpp (453): GlobalContext::init
c:\cygwin64\tmp\factorio-build-kilrvo\src\mainloop.cpp (268): MainLoop::run
Ref 71927
Can you provide dump file - factorio-dump-current.dmp (if you did not start factorio again yet) or factorio-dump-previous.dmp ?

Formally this is "duplicate" but i say "Ref" so you provide some new details

Re: [0.17.49] Crash: "GraphicsInterfaceDX11::createDeviceAndSwapchain"

Posted: Thu Jun 13, 2019 9:59 pm
by posila
Hello, try to open Factorio properties in Steam Library and set launch options to

Code: Select all

--dxgi-blit-model

Re: [0.17.49] Crash: "GraphicsInterfaceDX11::createDeviceAndSwapchain"

Posted: Fri Jun 14, 2019 2:26 am
by alfocep
posila wrote:
Thu Jun 13, 2019 9:59 pm
Hello, try to open Factorio properties in Steam Library and set launch options to

Code: Select all

--dxgi-blit-model
It worked, now i can launch the game normally, but those launching parameters always need to be there?

Re: [0.17.49] Crash: "GraphicsInterfaceDX11::createDeviceAndSwapchain"

Posted: Fri Jun 14, 2019 6:37 am
by posila
alfocep wrote:
Fri Jun 14, 2019 2:26 am
It worked, now i can launch the game normally, but those launching parameters always need to be there?
On this computer, yes. Or until you upgrade your GPU (which I don't know if it is possible - depends if it a desktop or a laptop). It's a graphics driver issue, but there is no newer graphics driver for your current GPU.

Re: [0.17.49] Crash: "GraphicsInterfaceDX11::createDeviceAndSwapchain"

Posted: Sun Jun 23, 2019 2:06 pm
by Tricus
I've been having the same issue but using the --dxgi-blit-model method didn't fix it for me.

I can roll back to an earlier version of Factorio to get the game to start.

Thanks!

Re: [0.17.49] Crash: "GraphicsInterfaceDX11::createDeviceAndSwapchain"

Posted: Sun Jun 23, 2019 2:13 pm
by posila
Tricus wrote:
Sun Jun 23, 2019 2:06 pm
I can roll back to an earlier version of Factorio to get the game to start.
To which version did you roll back?

Re: [0.17.49] Crash: "GraphicsInterfaceDX11::createDeviceAndSwapchain"

Posted: Sun Jun 23, 2019 2:35 pm
by Tricus
I removed the --dxgi-blit-model parameter and went backwards through each version.

0.17.38 through 0.17.50 all crashed (all available experimental builds) but 0.16 stable didn't crash.

Re: [0.17.49] Crash: "GraphicsInterfaceDX11::createDeviceAndSwapchain"

Posted: Sun Jun 23, 2019 4:43 pm
by Tricus
I changed my version back to 0.17 Experimental then verified the integrity of game files (all good) and the game was able to load normally without crashing. I didn't update windows or drivers so I'm not sure what changed.

Re: [0.17.49] Crash: "GraphicsInterfaceDX11::createDeviceAndSwapchain"

Posted: Mon Jun 24, 2019 2:26 am
by Tricus
Final conclusion here:

I'm playing on a laptop plugged into a docking station. If I start factorio plugged into the docking station, the game crashes upon startup. If I start the game not plugged into the docking station then it loads properly. If I start unplugged in the docking station, get the game running, then plug into the docking station, that also works.

Re: [0.17.49] Crash: "GraphicsInterfaceDX11::createDeviceAndSwapchain"

Posted: Mon Jun 24, 2019 6:52 am
by posila
Tricus wrote:
Mon Jun 24, 2019 2:26 am
Final conclusion here:

I'm playing on a laptop plugged into a docking station. If I start factorio plugged into the docking station, the game crashes upon startup. If I start the game not plugged into the docking station then it loads properly. If I start unplugged in the docking station, get the game running, then plug into the docking station, that also works.
Can you please post here also factorio-dump-previous.dmp (it's in the same folder as the log)? You might need to pack it to ZIP to be able to upload it here.

Do other games work when your laptop is plugged into the docking station? (Factorio 0.16 was using DirectX 9, 0.17 was updated to DirectX 11 ... so I am interested whether other DirectX 11 games work)

EDIT: Also crashlog from 0.17.52 could help to diagnose the problem. Thank you.

Re: [0.17.49] Crash: "GraphicsInterfaceDX11::createDeviceAndSwapchain"

Posted: Mon Jun 24, 2019 5:19 pm
by MasterZenII
I'm having the same problem but my post was considered a duplicate. Any Factorio version that is 0.17.46 or newer crashes on startup.
I do not have the Steam version of the game. This is a clean install from the exe installer on Factorio.com with no mods whatsoever.

I'm on a Laptop so upgrading my GPU is not an option.

Re: [0.17.49] Crash: "GraphicsInterfaceDX11::createDeviceAndSwapchain"

Posted: Mon Jun 24, 2019 5:37 pm
by posila
MasterZenII wrote:
Mon Jun 24, 2019 5:19 pm
I'm having the same problem but my post was considered a duplicate. Any Factorio version that is 0.17.46 or newer crashes on startup.
I do not have the Steam version of the game. This is a clean install from the exe installer on Factorio.com with no mods whatsoever.

I'm on a Laptop so upgrading my GPU is not an option.
It is the same issue as original post (but different issue than Tricus has); Since you don't play on Steam, open Factorio's config.ini (%APPDATA%\Factorio\config\config.ini) and add following line at the bottom of the file

Code: Select all

use-flip-presentation-model=false

Re: [0.17.49] Crash: "GraphicsInterfaceDX11::createDeviceAndSwapchain"

Posted: Mon Jun 24, 2019 6:09 pm
by MasterZenII
posila wrote:
Mon Jun 24, 2019 5:37 pm
MasterZenII wrote:
Mon Jun 24, 2019 5:19 pm
I'm having the same problem but my post was considered a duplicate. Any Factorio version that is 0.17.46 or newer crashes on startup.
I do not have the Steam version of the game. This is a clean install from the exe installer on Factorio.com with no mods whatsoever.

I'm on a Laptop so upgrading my GPU is not an option.
It is the same issue as original post (but different issue than Tricus has); Since you don't play on Steam, open Factorio's config.ini (%APPDATA%\Factorio\config\config.ini) and add following line at the bottom of the file

Code: Select all

use-flip-presentation-model=false
Thank you for such a swift response!

I just tried that and started up Factorio again and got the same crash, it deleted my config.ini file on its own (leaving just a default_config.ini file)
New crash log included.

Edit: Tried making a duplicate of the default_config.ini file and renaming it config.ini and adding the code you provided to the bottom of that and it didn't work either.

Re: [0.17.49] Crash: "GraphicsInterfaceDX11::createDeviceAndSwapchain"

Posted: Mon Jun 24, 2019 6:15 pm
by Loewchen
MasterZenII wrote:
Mon Jun 24, 2019 6:09 pm
New crash log included.
That log is ancient.

Re: [0.17.49] Crash: "GraphicsInterfaceDX11::createDeviceAndSwapchain"

Posted: Mon Jun 24, 2019 6:18 pm
by posila
I just noticed, the log says you run the game on Intel HD Graphics 3000, but you have Radeon drivers; so your laptop has also dedicated GPU, can you try to update the driver for the Radeon GPU?

Re: [0.17.49] Crash: "GraphicsInterfaceDX11::createDeviceAndSwapchain"

Posted: Mon Jun 24, 2019 6:22 pm
by MasterZenII
My drivers are up to date. I could try uninstalling the driver for the Intel graphics?

This is the first and last laptop I'll ever buy that has an Intel processor and AMD graphics I swear.

Also derp on my part with that last log I posted, that's from my backup folder.
This is the most recent. File explorer trying to be too smart for it's own damn good.

Re: [0.17.49] Crash: "GraphicsInterfaceDX11::createDeviceAndSwapchain"

Posted: Mon Jun 24, 2019 6:34 pm
by posila
MasterZenII wrote:
Mon Jun 24, 2019 6:22 pm
My drivers are up to date. I could try uninstalling the driver for the Intel graphics?
You are right ... I don't know what model you have, but as far as I could find the latest drivers for anything older than Radeon HD 8000M series are from 2015, so that's a bummer.

Attached is minimal config you'll need.

Re: [0.17.49] Crash: "GraphicsInterfaceDX11::createDeviceAndSwapchain"

Posted: Mon Jun 24, 2019 7:15 pm
by MasterZenII
posila wrote:
Mon Jun 24, 2019 6:34 pm
MasterZenII wrote:
Mon Jun 24, 2019 6:22 pm
My drivers are up to date. I could try uninstalling the driver for the Intel graphics?
You are right ... I don't know what model you have, but as far as I could find the latest drivers for anything older than Radeon HD 8000M series are from 2015, so that's a bummer.

Attached is minimal config you'll need.
Boys we're automating again! I could cry. I haven't fulfilled my fix in a few days. Thank you!