Factorio 1.1.18 keeps switching to default adapter and hangs

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Post Reply
russell78
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Jan 30, 2021 7:36 pm
Contact:

Factorio 1.1.18 keeps switching to default adapter and hangs

Post by russell78 »

System info is in DxDiag (notebook HP Elitebook with dual GPU)
Worked solid for about month.
Now is hanging on loading screen (42% to 75%) intermittently.
After few hours of fiddling around (on/off, radeon driver settings, praying and swearing), usually starts working and loads the game and it keeps working until computer shutdown/reboot/sleep. Even game restart works after that.
Problems started few weeks ago after switching among multiple external displays and/or docking station (my observation).
There was no change in HW/SW.
Tried many command line options - does not change anything, sometimes it works sometimes it doesn't.
In current state "--force-d3d" "--d3d-adapter" "0x699F" options were working for few sessions
But they don't anymore - see log:
0.095 D3D11_ERROR: IDXGIFactory::EnumAdapters failed in getAdapter on line 413. Error [0x887a0002] - DXGI_ERROR_NOT_FOUND
0.096 D3D11_ERROR: D3D11CreateDeviceAndSwapChain failed in createDeviceAndSwapchain on line 717. Error [0x80070057] - E_INVALIDARG
0.096 Failed to create device on desired adapter, trying default one.
My observation is, that whenever it switches to default intel UHD graphic, it will freeze.

I have updated Bios, ATI drivers (21.1.1), uninstalled and reinstalled the game few times (or downloaded unpacked zip) on about 3 versions, killed processes, did restart many times. Did not find any problems in any diagnostics...

But it is still in Schrodinger state, it either works or it does not.
HELP
Attachments
factorio-current.log
(4.66 KiB) Downloaded 58 times
DxDiag.txt
(105.1 KiB) Downloaded 54 times

posila
Factorio Staff
Factorio Staff
Posts: 5201
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: Factorio 1.1.18 keeps switching to default adapter and hangs

Post by posila »

Hello, --d3d-adapter parameter is not device ID, but index of the adapter. Available adapters are listed when verbose logging is enabled. You can use --verbose parameter to do that.
On my computer, it lists following

Code: Select all

   0.103 Verbose GraphicsInterfaceDX11.cpp:263: DXGI 1.5 detected, Allow tearing is supported
   0.104  Adapter [0]: NVIDIA GeForce GTX 1060 3GB {10de-1c02} (27.21.14.6089)
   0.106  Adapter [1]: Intel(R) HD Graphics 530 {8086-1912} (27.20.100.8682)
   0.107  Adapter [2]: Microsoft Basic Render Driver {1414-8c} (10.0.19041.546)
So, I can use --d3d-adapter=0 to make the game run on GTX 1060, or -d3d-adapter=1 to make it run on Intel HD 530. Microsoft Basic Render Driver is kind of useless, it is software renderer (no HW acceleration) and on some computers it crashes under load of Factorio.

That said. If you have a laptop with switchable graphics, which GPU is being used is controlled heavilly by drivers, so it would be best to set high-performance profile for Factorio in Radeon Control Panel

russell78
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Jan 30, 2021 7:36 pm
Contact:

Re: Factorio 1.1.18 keeps switching to default adapter and hangs

Post by russell78 »

Hi,
thanks for help with --verbose and selecting correct driver (and yes I did the power options fiddling on all the places I could find, win 10 + ATI drivers) .

But it does not work again. I upgraded to 1.1.19, still no luck.
I honestly do not know what could be wrong anymore.
It always hangs on sprite loading (but sometimes it works like charm).

Sending you latest verbose log (nothing seems to be wrong)

Thanks for your patience
Attachments
factorio-current.log
(4.74 KiB) Downloaded 58 times

russell78
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Jan 30, 2021 7:36 pm
Contact:

Re: Factorio 1.1.18 keeps switching to default adapter and hangs

Post by russell78 »

The only thing I can think of is changing monitors and docking stations.
Yesterday I played for a while on laptop standalone - worked fine (but after hour of frustration).
Today I run it at the office on docking station and external monitor - it hangs (identical config, no change from yesterday)
Last week I tried it on this identical setup and it worked.
Also at home on external monitor it gives me hard time.

But once it starts working it seems to be fine.
Maybe something with changing different display configurations?

And I always check ATI Radeon control center, power mode and all kinds of dancing around, but there is nothing specific that seems to make it work. It just starts working after many trials and errors, reboots, cmd options...

russell78
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Jan 30, 2021 7:36 pm
Contact:

Re: Factorio 1.1.18 keeps switching to default adapter and hangs

Post by russell78 »

And it works again, no intentional changes since last few failed trials.
Attaching verbose log from this success.
I do not know what I did... It drives me crazy...
Attachments
factorio-1.1.19-success-2021.02.01.log
(5.72 KiB) Downloaded 59 times

russell78
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Jan 30, 2021 7:36 pm
Contact:

RESOLVED

Post by russell78 »

Hi,

I found out that there was unrelated problem with my laptop. 1 core was stuck on full memory diagnostic after certain events. It lead to USB driver. After firmware update and new drivers all seems to be working fine now.

Thank you for bearing with me.

Full problem/solution is described here, it may help someone:
https://superuser.com/questions/1482766 ... -of-a-core

Post Reply

Return to “Technical Help”