[0.17.67] Crash when starting (SDL_Error: directx not available)

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
kruskal
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Sep 04, 2019 1:34 pm
Contact:

[0.17.67] Crash when starting (SDL_Error: directx not available)

Post by kruskal »

Hello everyone, I encountered this when trying to update from 0.16 stable to the latest version of 0.17. After the update, the game consistently crashes immediately after clicking the "Play" button through steam. This is a fresh install with no mods. The exact same error occurs regardless of whether --force-opengl is set for the launch options. The log file is pasted below.

Code: Select all

   0.001 2019-09-04 14:48:15; Factorio 0.17.67 (build 47051, win64, steam)
   0.001 Operating system: Windows 10 (version 1903) 
   0.002 Program arguments: "C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe" 
   0.002 Read data path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/data
   0.002 Write data path: C:/Users/Danie/AppData/Roaming/Factorio [252496/476673MB]
   0.002 Binaries path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin
   0.011 System info: [CPU: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz, 8 cores, RAM: 4421/8060 MB, page: 6068/10492 MB, virtual: 4321/134217727 MB, extended virtual: 0 MB]
   0.011 Display options: [FullScreen: 1] [VSync: 1] [UIScale: automatic (100.0%)] [Native DPI: 1] [Screen: 255] [Special: 0000] [Lang: en]
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-build-uqd2aa\src\graphics\sdlwindow.cpp (110): SDLWindow::SDLWindow
c:\cygwin64\tmp\factorio-build-uqd2aa\src\globalcontext.cpp (912): GlobalContext::loadGraphics
c:\cygwin64\tmp\factorio-build-uqd2aa\src\globalcontext.cpp (461): GlobalContext::init
c:\cygwin64\tmp\factorio-build-uqd2aa\src\mainloop.cpp (270): MainLoop::run
c:\cygwin64\tmp\factorio-build-uqd2aa\src\main.cpp (1362): wmain
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (288): __scrt_common_main_seh
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFE92927BD4)
00007FFE92927BD4 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFE93EECE71)
00007FFE93EECE71 (ntdll): (filename not available): RtlUserThreadStart
Stack trace logging done
   2.360 Error SDLWindow.cpp:110: SDL couldn't be initialized. SDL_Error: directx not available
Logger::writeStacktrace skipped.
   2.360 C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe
   2.360 C:\WINDOWS\SYSTEM32\ntdll.dll
   2.360 C:\WINDOWS\System32\KERNEL32.DLL
   2.360 C:\WINDOWS\System32\KERNELBASE.dll
   2.360 C:\WINDOWS\System32\WLDAP32.dll
   2.360 C:\WINDOWS\System32\ucrtbase.dll
   2.361 C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\steam_api64.dll
   2.361 C:\WINDOWS\System32\GDI32.dll
   2.361 C:\WINDOWS\System32\ADVAPI32.dll
   2.361 C:\WINDOWS\System32\win32u.dll
   2.361 C:\WINDOWS\System32\msvcrt.dll
   2.361 C:\WINDOWS\System32\gdi32full.dll
   2.361 C:\WINDOWS\System32\sechost.dll
   2.361 C:\WINDOWS\System32\msvcp_win.dll
   2.361 C:\WINDOWS\System32\RPCRT4.dll
   2.361 C:\WINDOWS\System32\USER32.dll
   2.361 C:\WINDOWS\System32\ole32.dll
   2.361 C:\WINDOWS\System32\SHELL32.dll
   2.361 C:\WINDOWS\System32\combase.dll
   2.361 C:\WINDOWS\System32\bcryptPrimitives.dll
   2.361 C:\WINDOWS\System32\cfgmgr32.dll
   2.361 C:\WINDOWS\System32\PSAPI.DLL
   2.361 C:\WINDOWS\System32\shcore.dll
   2.361 C:\WINDOWS\System32\SHLWAPI.dll
   2.361 C:\WINDOWS\System32\windows.storage.dll
   2.361 C:\WINDOWS\System32\IMM32.dll
   2.361 C:\WINDOWS\WinSxS\amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.18362.295_none_17ae9fa26da28c60\gdiplus.dll
   2.361 C:\WINDOWS\SYSTEM32\WINMM.dll
   2.361 C:\WINDOWS\System32\OLEAUT32.dll
   2.361 C:\WINDOWS\System32\profapi.dll
   2.361 C:\WINDOWS\System32\WS2_32.dll
   2.361 C:\WINDOWS\System32\powrprof.dll
   2.361 C:\WINDOWS\System32\CRYPT32.dll
   2.361 C:\WINDOWS\System32\UMPDC.dll
   2.362 C:\WINDOWS\System32\MSASN1.dll
   2.362 C:\WINDOWS\SYSTEM32\winmmbase.dll
   2.362 C:\WINDOWS\System32\kernel.appcore.dll
   2.362 C:\WINDOWS\System32\WINTRUST.dll
   2.362 C:\WINDOWS\System32\imagehlp.dll
   2.362 C:\WINDOWS\System32\cryptsp.dll
   2.362 C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL
   2.362 C:\WINDOWS\SYSTEM32\DSOUND.dll
   2.362 C:\WINDOWS\SYSTEM32\VERSION.dll
   2.362 C:\Program Files (x86)\Steam\gameoverlayrenderer64.dll
   2.362 C:\Program Files (x86)\Steam\steamclient64.dll
   2.362 C:\WINDOWS\System32\SETUPAPI.dll
   2.362 C:\WINDOWS\System32\bcrypt.dll
   2.362 C:\Program Files (x86)\Steam\tier0_s64.dll
   2.362 C:\WINDOWS\SYSTEM32\MSWSOCK.dll
   2.362 C:\Program Files (x86)\Steam\vstdlib_s64.dll
   2.362 C:\WINDOWS\SYSTEM32\Secur32.dll
   2.363 C:\WINDOWS\SYSTEM32\SSPICLI.DLL
   2.363 C:\WINDOWS\SYSTEM32\CRYPTBASE.DLL
   2.363 C:\WINDOWS\system32\uxtheme.dll
   2.363 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.18362.295_none_e6c3acbd13101292\comctl32.dll
   2.363 C:\WINDOWS\SYSTEM32\WindowsCodecs.dll
   2.363 Error Util.cpp:97: Unexpected error occurred. If you're running the latest version of the game you can help us solve the problem by posting the contents of the log file on the Factorio forums.
Please also include the save file(s), any mods you may be using, and any steps you know of to reproduce the crash.
  13.727 Error CrashHandler.cpp:245: Heap validation: success.
  13.729 Creating crash dump.
  14.013 CrashDump success
The game runs perfectly fine with 0.16 stable. Since the log file for running 0.16 contains a bit more information, it is also pasted below.

Code: Select all

   0.002 2019-09-04 15:06:31; Factorio 0.16.51 (build 36654, win64, steam)
   0.002 Operating system: Windows 10 (build 18362) 
   0.002 Program arguments: "C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe" 
   0.002 Read data path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/data
   0.002 Write data path: C:/Users/Danie/AppData/Roaming/Factorio [251720/476673MB]
   0.002 Binaries path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin
   0.016 System info: [CPU: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz, 8 cores, RAM: 4462/8060 MB, page: 6258/11485 MB, virtual: 4314/134217727 MB, extended virtual: 0 MB]
   0.018 Display options: [FullScreen: 1] [VSync: 0] [UIScale: system (100.0%)] [MultiSampling: OFF] [Screen: 255] [Lang: en]
   0.021 Available display adapters: 1
   0.021  [0]: \\.\DISPLAY1 - Intel(R) HD Graphics 530 {0x05, [0,0], 1920x1080, 32bit, 60Hz}
   0.021 Create display on adapter 0. Size 1280x720 at position [310, 162].
   1.953 Initialised Direct3D:[0] NVIDIA GeForce GTX 960M; driver: nvldumdx.dll 26.21.14.3615
   1.963   Video memory size (dedicated video/dedicated system/shared system/available): 4055/0/4030/4088 MB
   2.107 DSound: Starting _dsound_update thread
   2.108 DSound: Enter _dsound_update; tid=13492
   2.109 Device reset internal.
   2.126 Desktop composition is active.
   2.126 Graphics settings preset: very-high
   2.126 Graphics options: [Graphics quality: high] [Video memory usage: all] [Light scale: 100%] [DXT: false] [Shader: 1]
   2.126                   [Parallel sprite loading: 1] [Max texture size: 0/8192] [Bmp cache: 0] [Sprite slicing: 1] [Low quality rotation: 0]
   2.240 Loading mod core 0.0.0 (data.lua)
   2.270 Loading mod base 0.16.51 (data.lua)
   2.493 Loading mod base 0.16.51 (data-updates.lua)
   2.580 Checksum for core: 840319042
   2.580 Checksum of base: 3323233190
   2.764 Loading sounds...
   2.953 Info PlayerData.cpp:67: Local player-data.json unavailable
   2.953 Info PlayerData.cpp:70: Cloud player-data.json available, timestamp 1567594476
   3.183 Loaded shader file C:/Program Files (x86)/Steam/steamapps/common/Factorio/data/core/graphics/shaders/game.cso
   3.223 Loaded shader file C:/Program Files (x86)/Steam/steamapps/common/Factorio/data/core/graphics/shaders/zoom-to-world.cso
   3.223 Loaded shader file C:/Program Files (x86)/Steam/steamapps/common/Factorio/data/core/graphics/shaders/alpha-mask.cso
   3.279 Initial atlas bitmap size is 16384
   3.387 Created atlas bitmap 16384x16383 [none]
   4.397 Created atlas bitmap 16384x4290 [none]
   4.620 Created atlas bitmap 16384x6916 [shadow]
   4.995 Created atlas bitmap 16384x2104 [decal]
   5.111 Created atlas bitmap 8192x5572 [mipmap]
   5.260 Created atlas bitmap 8192x800 [mipmap, smoke]
   5.288 Created atlas bitmap 8192x8172 [linear-minification, mipmap, terrain]
   5.583 Created atlas bitmap 8192x1360 [linear-minification, mipmap, terrain]
   5.635 Created atlas bitmap 8192x2092 [no-crop, trilinear-filtering, icon, light]
   8.281 Created atlas bitmap 8192x924 [alpha-mask]
  97.951 Sprites loaded
  97.951 Convert atlas 8192x5572 to: mipmap 
  98.299 Convert atlas 8192x800 to: mipmap 
  98.345 Convert atlas 8192x8172 to: min-linear 
  98.811 Convert atlas 8192x1360 to: min-linear 
  98.893 Convert atlas 8192x2092 to: trilinear-filtering 
  99.015 Convert atlas 8192x924 to: alpha-mask
 101.295 Custom inputs active: 0
 101.904 Factorio initialised
 108.040 DSound: Stopping voice
 108.040 DSound: Joining thread
 108.046 DSound: Exit _dsound_update; tid=13492
 108.046 DSound: Waiting for voice to stop ... signaled
 108.079 DSound: Joined thread
 108.079 DSound: Destroying thread
 108.079 DSound: Thread destroyed
 108.079 DSound: Releasing buffer
 108.080 DSound: Voice stopped
 108.080 DSound: Deallocating voice
 108.080 DSound: Deallocated voice
 109.287 Steam API shutdown.
 109.506 Goodbye
Thank you very much for the help!

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

Re: [0.17.67] Crash when starting (SDL_Error: directx not available)

Post by posila »

You have environment variable SDL_VIDEODRIVER=directx in your OS. Do you remember setting it?

kruskal
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Sep 04, 2019 1:34 pm
Contact:

Re: [0.17.67] Crash when starting (SDL_Error: directx not available)

Post by kruskal »

posila wrote:
Wed Sep 04, 2019 2:33 pm
You have environment variable SDL_VIDEODRIVER=directx in your OS. Do you remember setting it?
You are right! But I don't remember ever setting it, no. Should I just delete this variable?

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

Re: [0.17.67] Crash when starting (SDL_Error: directx not available)

Post by posila »

kruskal wrote:
Wed Sep 04, 2019 2:40 pm
You are right! But I don't remember ever setting it, no. Should I just delete this variable?
Yeah, deleting it will fix the crash. For next release I changed our version of SDL so it doesn't fail initialization when the variable has unrecognized value.

kruskal
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Sep 04, 2019 1:34 pm
Contact:

Re: [0.17.67] Crash when starting (SDL_Error: directx not available)

Post by kruskal »

posila wrote:
Wed Sep 04, 2019 2:45 pm
kruskal wrote:
Wed Sep 04, 2019 2:40 pm
You are right! But I don't remember ever setting it, no. Should I just delete this variable?
Yeah, deleting it will fix the crash. For next release I changed our version of SDL so it doesn't fail initialization when the variable has unrecognized value.
That worked, thanks a lot for your help!

Post Reply

Return to “Technical Help”