Page 1 of 1

[16.3] Crash on start on: "d3d_lock_region"

Posted: Fri Dec 15, 2017 3:18 pm
by Ekelbatzen
Got another reproducable crash after steam upgrade 16.2 -> 16.3 while loading screen displays "Loading Sprites 89%" This may be related to viewtopic.php?f=182&t=54843&hilit=facto ... dInitThunk when I try to compare the logs.

Update: Workaround until fix:
masterodie wrote:Same here. Crash at 89%. For me this seems to be related to texture compression. If i set texture-compression back to false in C:\Users\<username>\AppData\Roaming\Factorio\config\config.ini game starts up normal.

Re: [16.3] Crash on start

Posted: Fri Dec 15, 2017 3:22 pm
by DeathMers
here too - 89 percent loading, crash, vanila

Re: [16.3] Crash on start

Posted: Fri Dec 15, 2017 3:28 pm
by WinKill
I get the same error, reproducable, at 89 percent:

Code: Select all

 0.693 Info PlayerData.cpp:67: Local player-data.json unavailable
   0.693 Info PlayerData.cpp:70: Cloud player-data.json available, timestamp 1513287999
   0.790 Loaded shader file C:/Program Files (x86)/Steam/steamapps/common/Factorio/data/core/graphics/shaders/game.cso
   0.790 Loaded shader file C:/Program Files (x86)/Steam/steamapps/common/Factorio/data/core/graphics/shaders/zoom-to-world.cso
   0.790 Loaded shader file C:/Program Files (x86)/Steam/steamapps/common/Factorio/data/core/graphics/shaders/alpha-mask.cso
   0.805 Initial atlas bitmap size is 16384
   0.810 Created atlas bitmap 16384x11788 [none]
   1.225 Created atlas bitmap 16384x2104 [decal]
   1.309 Created atlas bitmap 8192x7984 [compressed, mask]
   1.388 Created atlas bitmap 8192x8184 [compressed, mask, shadow]
   1.462 Created atlas bitmap 8192x8152 [compressed, mask, shadow]
   1.493 Created atlas bitmap 8192x3576 [compressed, mask, shadow]
   1.494 Created atlas bitmap 8192x5576 [mipmap]
   1.501 Created atlas bitmap 8192x800 [compressed, mipmap, mask, smoke]
   1.573 Created atlas bitmap 8192x8168 [linear-minification, mipmap, terrain]
   1.857 Created atlas bitmap 8192x2100 [no-crop, trilinear-filtering, icon, light]
   1.895 Created atlas bitmap 8192x924 [alpha-mask]
  19.163 Sprites loaded
  19.163 Convert atlas 8192x7984 to: compressed 
  19.163 Error CrashHandler.cpp:419: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-w5rkhq\libraries\stackwalker\stackwalker.cpp (923): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-w5rkhq\src\util\logger.cpp (371): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-w5rkhq\src\util\logger.cpp (470): Logger::logStacktrace
c:\cygwin64\tmp\factorio-w5rkhq\src\util\crashhandler.cpp (127): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-w5rkhq\src\util\crashhandler.cpp (423): CrashHandler::SignalHandler
d:\th\minkernel\crts\ucrt\src\appcrt\misc\exception_filter.cpp (219): _seh_filter_exe
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (299): `__scrt_common_main_seh'::`1'::filt$0
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF68E157134)
00007FF68E157134 (Factorio): (filename not available): __C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFCBD924C3D)
00007FFCBD924C3D (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFCBD89D1B8)
00007FFCBD89D1B8 (ntdll): (filename not available): RtlWalkFrameChain
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFCBD923B6E)
00007FFCBD923B6E (ntdll): (filename not available): KiUserExceptionDispatcher
c:\cygwin64\tmp\factorio-w5rkhq\libraries\allegro\src\win\d3d_bmp.cpp (1150): d3d_lock_region
c:\cygwin64\tmp\factorio-w5rkhq\libraries\allegro\src\bitmap_lock.c (108): al_lock_bitmap_region
c:\cygwin64\tmp\factorio-w5rkhq\libraries\allegro\src\bitmap.c (550): transfer_bitmap_data
c:\cygwin64\tmp\factorio-w5rkhq\libraries\allegro\src\bitmap.c (643): al_clone_bitmap
c:\cygwin64\tmp\factorio-w5rkhq\libraries\allegro\src\bitmap_type.c (169): al_convert_bitmap
c:\cygwin64\tmp\factorio-w5rkhq\src\graphics\atlassystem.cpp (666): AtlasSystem::loadSprites
c:\cygwin64\tmp\factorio-w5rkhq\src\graphics\atlassystem.cpp (1014): AtlasSystem::tryLoadSpritesWithFallbackToMinimalMode
c:\cygwin64\tmp\factorio-w5rkhq\src\graphics\atlassystem.cpp (1066): AtlasSystem::build
c:\cygwin64\tmp\factorio-w5rkhq\src\globalcontext.cpp (510): GlobalContext::init
c:\cygwin64\tmp\factorio-w5rkhq\src\mainloop.cpp (251): MainLoop::run
c:\cygwin64\tmp\factorio-w5rkhq\src\main.cpp (1026): wmain
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (283): __scrt_common_main_seh
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFCBD171FE4)
00007FFCBD171FE4 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFCBD8EEF91)
00007FFCBD8EEF91 (ntdll): (filename not available): RtlUserThreadStart
  20.623 C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe
  20.623 C:\WINDOWS\SYSTEM32\ntdll.dll
  20.623 C:\WINDOWS\System32\KERNEL32.DLL
  20.623 C:\WINDOWS\System32\KERNELBASE.dll
  20.623 C:\WINDOWS\System32\WLDAP32.dll
  20.623 C:\WINDOWS\System32\ucrtbase.dll
  20.623 C:\WINDOWS\System32\GDI32.dll
  20.623 C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\steam_api64.dll
  20.623 C:\WINDOWS\System32\gdi32full.dll
  20.623 C:\WINDOWS\System32\ADVAPI32.dll
  20.623 C:\WINDOWS\System32\msvcp_win.dll
  20.623 C:\WINDOWS\System32\msvcrt.dll
  20.623 C:\WINDOWS\System32\USER32.dll
  20.623 C:\WINDOWS\System32\sechost.dll
  20.623 C:\WINDOWS\System32\win32u.dll
  20.623 C:\WINDOWS\System32\RPCRT4.dll
  20.623 C:\WINDOWS\System32\ole32.dll
  20.623 C:\WINDOWS\System32\combase.dll
  20.623 C:\WINDOWS\System32\SHELL32.dll
  20.623 C:\WINDOWS\System32\bcryptPrimitives.dll
  20.623 C:\WINDOWS\System32\cfgmgr32.dll
  20.623 C:\WINDOWS\System32\PSAPI.DLL
  20.623 C:\WINDOWS\System32\shcore.dll
  20.623 C:\WINDOWS\System32\windows.storage.dll
  20.623 C:\WINDOWS\System32\SHLWAPI.dll
  20.623 C:\WINDOWS\System32\kernel.appcore.dll
  20.623 C:\WINDOWS\System32\WS2_32.dll
  20.623 C:\WINDOWS\System32\powrprof.dll
  20.623 C:\WINDOWS\System32\CRYPT32.dll
  20.623 C:\WINDOWS\System32\profapi.dll
  20.623 C:\WINDOWS\System32\MSASN1.dll
  20.623 C:\WINDOWS\SYSTEM32\WINMM.dll
  20.623 C:\WINDOWS\SYSTEM32\OPENGL32.dll
  20.623 C:\WINDOWS\WinSxS\amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.16299.125_none_46b6c26dedf485d7\gdiplus.dll
  20.623 C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL
  20.623 C:\WINDOWS\SYSTEM32\DSOUND.dll
  20.623 C:\WINDOWS\SYSTEM32\VERSION.dll
  20.623 C:\WINDOWS\SYSTEM32\WINMMBASE.dll
  20.623 C:\WINDOWS\SYSTEM32\GLU32.dll
  20.623 C:\WINDOWS\System32\IMM32.DLL
  20.623 C:\Program Files (x86)\Steam\gameoverlayrenderer64.dll
  20.623 C:\WINDOWS\SYSTEM32\secur32.dll
  20.623 C:\WINDOWS\SYSTEM32\SSPICLI.DLL
  20.623 C:\Program Files (x86)\Steam\steamclient64.dll
  20.623 C:\WINDOWS\System32\imagehlp.dll
  20.623 C:\WINDOWS\System32\SETUPAPI.dll
  20.624 C:\WINDOWS\System32\OLEAUT32.dll
  20.624 C:\Program Files (x86)\Steam\vstdlib_s64.dll
  20.624 C:\WINDOWS\SYSTEM32\MSWSOCK.dll
  20.624 C:\Program Files (x86)\Steam\tier0_s64.dll
  20.624 C:\WINDOWS\SYSTEM32\CRYPTBASE.DLL
  20.624 C:\WINDOWS\system32\d3d9.dll
  20.624 C:\WINDOWS\SYSTEM32\dwmapi.dll
  20.624 C:\WINDOWS\system32\uxtheme.dll
  20.624 C:\WINDOWS\System32\DriverStore\FileRepository\nv_ref_pubwu.inf_amd64_2e7fa54192fe16d0\nvldumdx.dll
  20.624 C:\WINDOWS\System32\WINTRUST.DLL
  20.624 C:\WINDOWS\SYSTEM32\CRYPTSP.dll
  20.624 C:\WINDOWS\system32\rsaenh.dll
  20.624 C:\WINDOWS\SYSTEM32\bcrypt.dll
  20.624 C:\WINDOWS\System32\DriverStore\FileRepository\nv_ref_pubwu.inf_amd64_2e7fa54192fe16d0\nvd3dumx.dll
  20.624 C:\WINDOWS\System32\MSCTF.dll
  20.624 C:\WINDOWS\System32\TextInputFramework.dll
  20.624 C:\WINDOWS\System32\CoreUIComponents.dll
  20.624 C:\WINDOWS\System32\CoreMessaging.dll
  20.624 C:\WINDOWS\SYSTEM32\ntmarta.dll
  20.624 C:\WINDOWS\SYSTEM32\wintypes.dll
  20.624 C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvSCPAPI64.dll
  20.624 C:\WINDOWS\system32\d3dx9_43.dll
  20.624 C:\WINDOWS\SYSTEM32\WindowsCodecs.dll
  20.624 C:\WINDOWS\System32\clbcatq.dll
  20.624 C:\WINDOWS\System32\MMDevApi.dll
  20.624 C:\WINDOWS\System32\DEVOBJ.dll
  20.624 C:\WINDOWS\System32\PROPSYS.dll
  20.624 C:\WINDOWS\SYSTEM32\AUDIOSES.DLL
  20.624 C:\WINDOWS\SYSTEM32\AVRT.dll
  20.624 C:\Windows\System32\Windows.UI.dll
  20.624 Error Util.cpp:67: 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.
  31.947 Creating crash dump.
  32.081 CrashDump success

Re: [16.3] Crash on start

Posted: Fri Dec 15, 2017 3:39 pm
by dog80
same here: crash at 89%

Re: [16.3] Crash on start

Posted: Fri Dec 15, 2017 3:40 pm
by krotalwarrior
I also have this error.

Re: [16.3] Crash on start

Posted: Fri Dec 15, 2017 3:43 pm
by Leopard1800
Same here too.
According to Taskmanager there is 1.5GB VideoRAM still aviable and plenty of normal RAM too.

Edit:
In case it matters it's a ZIP install of 0.16 and updated with the updater to 16.1, 16.2 and then 16.3.

Edit 2:
Setting texture compression (from auto) to false seems to have fixed the issue.

Re: [16.3] Crash on start

Posted: Fri Dec 15, 2017 3:45 pm
by 129828
Same here

Re: [16.3] Crash on start

Posted: Fri Dec 15, 2017 3:48 pm
by masterodie
Same here. Crash at 89%. For me this seems to be related to texture compression. If i set texture-compression back to false in C:\Users\<username>\AppData\Roaming\Factorio\config\config.ini game starts up normal.

Re: [16.3] Crash on start

Posted: Fri Dec 15, 2017 3:58 pm
by VFaalcatnodriiro
Same here. 89% on Startup. With or withouts mods.

Also, setting texture-compression to false fixed it

Re: [16.3] Crash on start on: "d3d_lock_region"

Posted: Fri Dec 15, 2017 4:27 pm
by Loewchen
According to: viewtopic.php?f=7&t=54900 this started happening after activating texture compression.

Re: [16.3] Crash on start on: "d3d_lock_region"

Posted: Fri Dec 15, 2017 4:36 pm
by HSquishy
I seem to be getting this as well.

Log file and Screenshot attached.

Re: [16.3] Crash on start on: "d3d_lock_region"

Posted: Fri Dec 15, 2017 4:42 pm
by Gnorok
And one more...

Re: [16.3] Crash on start on: "d3d_lock_region"

Posted: Fri Dec 15, 2017 4:50 pm
by DF1229
Same error here
Happens every time I try to launch the game in 0.16.3. Same happens on my 'portable version' (different install on USB).

Re: [16.3] Crash on start on: "d3d_lock_region"

Posted: Fri Dec 15, 2017 5:34 pm
by GenBOOM
same here. was on auto compression so I had to manually turn it to false

Re: [16.3] Crash on start on: "d3d_lock_region"

Posted: Fri Dec 15, 2017 5:39 pm
by posila
Oh, no ... by fixing 54551 I broke texture compression. I am sorry ... expect fix on Saturday.

To workaround this in mean time you can do one of the following things:
- Downgrade back to 0.16.2, disable texture compression in graphics options
- Change texture-compression to false manually in config.ini (in config subfolder that's in the same directory that contains factorio-current.log)
- Use --force-opengl launch option, as the bug was introduced only to DirectX renderer
- Delete config.ini completely - texture compression won't be turned on by default

Re: [16.3] Crash on start on: "d3d_lock_region"

Posted: Fri Dec 15, 2017 6:43 pm
by posila
Thanks for all the reports.
Fixed for 0.16.4