[1.1.76] Crash loading save (ElectricSubNetwork::updateInputValues)

Place for things which are bugs but we have no idea how to solve them. Things related to hardware, libraries, strange setups, etc.
Post Reply
mackhuffer
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu Feb 02, 2023 11:43 pm
Contact:

[1.1.76] Crash loading save (ElectricSubNetwork::updateInputValues)

Post by mackhuffer »

The game consistently crashes when loading the attached "grassland 2" just as the progress bar hits 100% but before the game actually starts. However, when I launch Factorio, load the "solaris" save, and then immediately load the "grassland 2" save, I am able to play without crashes (so far). There are other saves that crash when loaded and not every save acts like the "solaris" save to prevent crashes in other saves.

When it first happened, I had rebooted and relaunched Factorio to resolve FPS issues. This was the first run of the game after updating to 1.1.76. I don't remember what I changed in that save prior to saving and rebooting.

Code: Select all

  10.252 Factorio initialised
  10.254 Steam Storage Quota: 4349/4768
  11.611 Loading map C:\Users\****\AppData\Roaming\Factorio\saves\grassland 2.zip: 19413618 bytes.
  11.650 Loading level.dat: 49580221 bytes.
  11.655 Info Scenario.cpp:199: Map version 1.1.76-0
  12.578 Loading script.dat: 1191 bytes.
  12.582 Checksum for script C:/Users/****/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 2881393120
  12.621 Error CrashHandler.cpp:494: Exception Code: c0000005, Address: 0x00007ff7b4f2d42d
ModuleBase: 0x00007ff7b4ce0000, ImageSize: 01ded000, RelativeAddress: 0024d42d
  12.621 Error CrashHandler.cpp:500: Access Violation: Read at address 0000000000000373
  12.621 Error CrashHandler.cpp:514: Exception Context:
rax=00000203349098a0, rbx=00000202c3898240, rcx=000000000000034b,
rdx=0000000000000002, rsi=00000202c38985a0, rdi=00000202c3898240,
rip=00007ff7b4f2d42d, rsp=000000766b2ff820, rbp=000000766b2ff900,
 r8=000000766b2ff908,  r9=000002034b4f0920, r10=0000000000000000,
r11=000002034b4f0920, r12=00000202ccd25260, r13=000000766b2ff908,
r14=000000766b2ffac0, r15=000002034b4f0920
  12.621 Crashed in C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe (0x00007ff7b4ce0000 - 0x00007ff7b6acd000)
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\tmp\factorio-build-gc97q0\libraries\stackwalker\stackwalker.cpp (924): StackWalker::ShowCallstack
c:\tmp\factorio-build-gc97q0\src\util\logger.cpp (316): Logger::writeStacktrace
c:\tmp\factorio-build-gc97q0\src\util\logger.cpp (323): Logger::logStacktrace
c:\tmp\factorio-build-gc97q0\src\util\crashhandler.cpp (186): CrashHandler::writeStackTrace
c:\tmp\factorio-build-gc97q0\src\util\crashhandler.cpp (543): CrashHandler::SehHandler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB91DE0327)
00007FFB91DE0327 (KERNELBASE): (filename not available): UnhandledExceptionFilter
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB94175530)
00007FFB94175530 (ntdll): (filename not available): memset
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB9415C876)
00007FFB9415C876 (ntdll): (filename not available): _C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB9417241F)
00007FFB9417241F (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB941214A4)
00007FFB941214A4 (ntdll): (filename not available): RtlRaiseException
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB94170F4E)
00007FFB94170F4E (ntdll): (filename not available): KiUserExceptionDispatcher
c:\tmp\factorio-build-gc97q0\src\energy\electricsubnetwork.cpp (1242): ElectricSubNetwork::updateInputValues
c:\tmp\factorio-build-gc97q0\src\energy\electricnetwork.cpp (73): ElectricNetwork::update
c:\tmp\factorio-build-gc97q0\src\energy\electricnetworkmanager.cpp (141): ElectricNetworkManager::update
c:\tmp\factorio-build-gc97q0\src\util\workerthread.cpp (49): WorkerThread::loop
c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.16.27023\include\thr\xthread (230): std::_LaunchPad<std::unique_ptr<std::tuple<void (__cdecl SoundLibrary::AsyncLoader::*)(void),SoundLibrary::AsyncLoader *>,std::default_delete<std::tuple<void (__cdecl SoundLibrary::AsyncLoader::*)(void),SoundLibrary::AsyncLoader *> > > >::_Go
c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.16.27023\include\thr\xthread (209): std::_Pad::_Call_func
minkernel\crts\ucrt\src\appcrt\startup\thread.cpp (97): thread_start<unsigned int (__cdecl*)(void *),1>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB931C7614)
00007FFB931C7614 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB941226A1)
00007FFB941226A1 (ntdll): (filename not available): RtlUserThreadStart
Stack trace logging done
  15.003 Error CrashHandler.cpp:191: Map tick at moment of crash: 19512214
  15.054 Info CrashHandler.cpp:311: Executable CRC: 1960215796
  15.054 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.
  17.345 Uploading log file
  17.358 Error CrashHandler.cpp:262: Heap validation: success.
  17.360 Creating crash dump.
  17.617 CrashDump success
Attachments
factorio-dump-current.dmp
(665.87 KiB) Downloaded 45 times
solaris.zip
(4.81 MiB) Downloaded 45 times
grassland 2.zip
(18.51 MiB) Downloaded 51 times

Loewchen
Global Moderator
Global Moderator
Posts: 8339
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [1.1.76] Crash loading save (ElectricSubNetwork::updateInputValues)

Post by Loewchen »

Does not crash for me. Post more logs with crashes please.

mackhuffer
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu Feb 02, 2023 11:43 pm
Contact:

Re: [1.1.76] Crash loading save (ElectricSubNetwork::updateInputValues)

Post by mackhuffer »

Here are four more with the same save. For me to reproduce it for the first three:
  • Launch Factorio
  • Click the continue button (since the save is the last one played)
For number 4, I clicked "single player" instead of continuing and then loaded the save from there.

It's rare, but I can sometimes get it to load without crashing. I can't find any patterns for when it does load without crashing. Maybe try loading the save repeatedly a few times on your side?
Attachments
factorio-dump-current-4.dmp
(666.78 KiB) Downloaded 40 times
factorio-dump-current-3.dmp
(677.34 KiB) Downloaded 38 times
factorio-dump-current-2.dmp
(669.59 KiB) Downloaded 43 times
factorio-dump-current-1.dmp
(676.4 KiB) Downloaded 43 times
factorio-current-4.log
(9.04 KiB) Downloaded 43 times
factorio-current-3.log
(9.04 KiB) Downloaded 42 times
factorio-current-2.log
(9.04 KiB) Downloaded 44 times
factorio-current-1.log
(9.04 KiB) Downloaded 46 times

Loewchen
Global Moderator
Global Moderator
Posts: 8339
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [1.1.76] Crash loading save (ElectricSubNetwork::updateInputValues)

Post by Loewchen »

Ok, I managed to make it crash, but only when doing it exactly like this:
  • Load the game
  • Click on Continue (for me continue loads the grassland 2 save but not sure if relevant)
  • The save loads fine, after loading, exit back to the main menu
  • Load the grassland 2.zip but via Single player, load...
  • It crashes

Code: Select all

0.001 2023-02-03 22:44:55; Factorio 1.1.76 (build 60350, win64, full)
   0.001 Operating system: Windows 10 (build 22000) 
   0.001 Program arguments: "C:\Spiele\Factorio\Factorio_1.1.69\bin\x64\factorio.exe" 
   0.002 Config path: C:/Spiele/Factorio/Factorio_1.1.69/config/config.ini
   0.002 Read data path: C:/Spiele/Factorio/Factorio_1.1.69/data
   0.002 Write data path: C:/Spiele/Factorio/Factorio_1.1.69 [873814/953131MB]
   0.002 Binaries path: C:/Spiele/Factorio/Factorio_1.1.69/bin
   0.025 System info: [CPU: Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz, 4 cores, RAM: 5750/8063 MB, page: 9362/12159 MB, virtual: 4249/134217727 MB, extended virtual: 0 MB]
   0.025 Display options: [FullScreen: 1] [VSync: 1] [UIScale: automatic (100.0%)] [Native DPI: 1] [Screen: 255] [Special: lmw] [Lang: en]
   0.032 Available displays: 1
   0.032  [0]: \\.\DISPLAY1 - Intel(R) HD Graphics 4600 {0x8000005, [0,0], 1920x1080, 32bit, 59Hz}
   0.098 [Direct3D11] Display: 0, Output: 0, DisplayAdapter: 0, RenderingAdapter: 0; d3dcompiler_47.dll
   0.117 Initialised Direct3D[0]: Intel(R) HD Graphics 4600; id: 8086-0412; driver: igdumdim64.dll 20.19.15.5171
   0.117   D3D Feature Level: 11.1, DXGI 1.5+, SwapChain: 3,flip-discard,-,-,-,none
   0.117   [Local Video Memory] Budget: 2048MB, CurrentUsage: 0MB, Reservation: 0/1915MB
   0.117   [Non-Local Vid.Mem.] Budget: 0MB, CurrentUsage: 0MB, Reservation: 0/0MB
   0.117   Tiled resources: Not supported
   0.117   Unified Memory Architecture: Yes
   0.117   BGR 565 Supported: Yes
   0.117   MaximumFrameLatency: 3, GPUThreadPriority: 0
   0.117 Graphics settings preset: integrated-gpulow
   0.117   Dedicated video memory size 112 MB
   0.281 Desktop composition is active.
   0.281 Graphics options: [Graphics quality: normal] [Video memory usage: all] [DXT: low-quality] [Color: 32bit]
   0.281                   [Max threads (load/render): 32/4] [Max texture size: 4096] [Tex.Stream.: 0] [Rotation quality: low] [Other: sTDCwt] [B:0,C:0,S:95]
   0.331 [Audio] Backend:SDL(default); Driver:wasapi, Device:Default device, Depth:16, Channels:2, Frequency:44100
   0.685 Loading mod settings rso-mod 6.2.20 (settings.lua)
   0.692 Loading mod core 0.0.0 (data.lua)
   0.871 Loading mod base 1.1.76 (data.lua)
   1.708 Loading mod rso-mod 6.2.20 (data.lua)
   1.722 Loading mod base 1.1.76 (data-updates.lua)
   1.745 Loading mod rso-mod 6.2.20 (data-final-fixes.lua)
   1.854 Checksum for core: 870127790
   1.854 Checksum of base: 3065294274
   1.854 Checksum of rso-mod: 2466986368
   2.140 Prototype list checksum: 3034860339
   2.192 Loading sounds...
   9.910 Info PlayerData.cpp:71: Local player-data.json available, timestamp 1675440357
   9.910 Info PlayerData.cpp:78: Cloud player-data.json unavailable
  10.099 Initial atlas bitmap size is 4096
  10.113 Created atlas bitmap 4096x4088 [none]
  10.122 Created atlas bitmap 4096x4096 [none]
  10.129 Created atlas bitmap 4096x4056 [none]
  10.135 Created atlas bitmap 4096x4092 [none]
  10.144 Created atlas bitmap 4096x4088 [none]
  10.154 Created atlas bitmap 4096x4092 [none]
  10.162 Created atlas bitmap 4096x4088 [none]
  10.163 Created atlas bitmap 4096x3672 [none]
  10.163 Created atlas bitmap 4096x2152 [decal]
  10.167 Created atlas bitmap 4096x4096 [low-object, linear-minification]
  10.167 Created atlas bitmap 4096x1824 [low-object]
  10.167 Created atlas bitmap 4096x2464 [mipmap, linear-minification, linear-magnification, linear-mip-level]
  10.169 Created atlas bitmap 4096x4064 [terrain, mipmap, linear-minification, linear-mip-level]
  10.169 Created atlas bitmap 4096x3424 [terrain, mipmap, linear-minification, linear-mip-level]
  10.169 Created atlas bitmap 4096x1632 [terrain-effect-map, mipmap, linear-minification, linear-mip-level]
  10.169 Created atlas bitmap 4096x1664 [smoke, mipmap, linear-minification, linear-magnification]
  10.170 Created atlas bitmap 4096x928 [mipmap]
  10.172 Created atlas bitmap 4096x4096 [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
  10.172 Created atlas bitmap 4096x256 [icon, not-compressed, mipmap, linear-minification, linear-magnification]
  10.172 Created atlas bitmap 4096x828 [alpha-mask]
  10.179 Created atlas bitmap 4096x4084 [shadow, linear-magnification, alpha-mask]
  10.186 Created atlas bitmap 4096x4096 [shadow, linear-magnification, alpha-mask]
  10.190 Created atlas bitmap 4096x4068 [shadow, linear-magnification, alpha-mask]
  10.191 Created atlas bitmap 4096x3132 [shadow, linear-magnification, alpha-mask]
  10.191 Created atlas bitmap 4096x1312 [shadow, mipmap, linear-magnification, alpha-mask]
  10.191 Created atlas bitmap 2048x240 [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
  10.196 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
  35.305 Parallel Sprite Loader initialized (threads: 3)
  40.228 Sprites loaded
  40.283 Generated mipmaps (3) for atlas [9] of size 4096x4096   
  40.305 Generated mipmaps (3) for atlas [10] of size 4096x1824   
  40.327 Generated mipmaps (3) for atlas [11] of size 4096x2464   
  40.360 Generated mipmaps (3) for atlas [12] of size 4096x4064   
  40.393 Generated mipmaps (3) for atlas [13] of size 4096x3424   
  40.415 Generated mipmaps (3) for atlas [14] of size 4096x1632   
  40.437 Generated mipmaps (3) for atlas [15] of size 4096x1664   
  40.465 Generated mipmaps (3) for atlas [16] of size 4096x928   
  40.487 Generated mipmaps (5) for atlas [17] of size 4096x4096   
  40.498 Generated mipmaps (5) for atlas [18] of size 4096x256   
  40.509 Generated mipmaps (3) for atlas [24] of size 4096x1312   
  40.537 Custom mipmaps uploaded.
  40.960 Factorio initialised
  40.963 Info HttpSharedState.cpp:54: Downloading https://updater.factorio.com/updater/get-available-versions?username=Loewchen&token=<private>&apiVersion=2
  41.534 0 packages available to download (experimental updates disabled).
 155.886 Loading map C:\Spiele\Factorio\Factorio_1.1.69\saves\grassland 2.zip: 19413618 bytes.
 155.925 Loading level.dat: 49580221 bytes.
 155.930 Info Scenario.cpp:199: Map version 1.1.76-0
 157.602 Loading script.dat: 1191 bytes.
 157.606 Checksum for script C:/Spiele/Factorio/Factorio_1.1.69/temp/currently-playing/control.lua: 2881393120
 157.623 Checksum for script __rso-mod__/control.lua: 1149883165
 157.625 Script @__rso-mod__/control.lua:1866: RSO: Updated resource configurations
 157.626 Script @__rso-mod__/control.lua:1866: RSO: Updated resource configurations
 165.774 Loading map C:\Spiele\Factorio\Factorio_1.1.69\saves\grassland 2.zip: 19413618 bytes.
 165.814 Loading level.dat: 49580221 bytes.
 165.819 Info Scenario.cpp:199: Map version 1.1.76-0
 167.409 Loading script.dat: 1191 bytes.
 167.412 Checksum for script C:/Spiele/Factorio/Factorio_1.1.69/temp/currently-playing/control.lua: 2881393120
 167.429 Checksum for script __rso-mod__/control.lua: 1149883165
 167.431 Script @__rso-mod__/control.lua:1866: RSO: Updated resource configurations
 167.432 Script @__rso-mod__/control.lua:1866: RSO: Updated resource configurations
 167.474 Error CrashHandler.cpp:494: Exception Code: c0000005, Address: 0x00007ff7a9ad200d
ModuleBase: 0x00007ff7a9880000, ImageSize: 01df5000, RelativeAddress: 0025200d
 167.474 Error CrashHandler.cpp:500: Access Violation: Read at address 0000000000000039
 167.474 Error CrashHandler.cpp:514: Exception Context:
rax=000002107f32f690, rbx=000002105ee89a40, rcx=0000000000000011,
rdx=0000000000000002, rsi=000002105ee8a0c0, rdi=000002105ee89a40,
rip=00007ff7a9ad200d, rsp=000000aa95cff550, rbp=000000aa95cff630,
 r8=000000aa95cff638,  r9=0000021078ffa7b0, r10=0000000000000000,
r11=0000021078ffa7b0, r12=0000021028137480, r13=000000aa95cff638,
r14=000000aa95cff7f0, r15=0000021078ffa7b0
 167.474 Crashed in C:\Spiele\Factorio\Factorio_1.1.69\bin\x64\factorio.exe (0x00007ff7a9880000 - 0x00007ff7ab675000)
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\tmp\factorio-build-4tna6t\libraries\stackwalker\stackwalker.cpp (924): StackWalker::ShowCallstack
c:\tmp\factorio-build-4tna6t\src\util\logger.cpp (316): Logger::writeStacktrace
c:\tmp\factorio-build-4tna6t\src\util\logger.cpp (323): Logger::logStacktrace
c:\tmp\factorio-build-4tna6t\src\util\crashhandler.cpp (186): CrashHandler::writeStackTrace
c:\tmp\factorio-build-4tna6t\src\util\crashhandler.cpp (543): CrashHandler::SehHandler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF8F61D5D91)
00007FF8F61D5D91 (KERNELBASE): (filename not available): UnhandledExceptionFilter
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF8F8A8ABAC)
00007FF8F8A8ABAC (ntdll): (filename not available): memset
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF8F8A73B36)
00007FF8F8A73B36 (ntdll): (filename not available): _C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF8F8A88B1F)
00007FF8F8A88B1F (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF8F8A15B9A)
00007FF8F8A15B9A (ntdll): (filename not available): RtlRestoreContext
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF8F8A87B2E)
00007FF8F8A87B2E (ntdll): (filename not available): KiUserExceptionDispatcher
c:\tmp\factorio-build-4tna6t\src\energy\electricsubnetwork.cpp (1242): ElectricSubNetwork::updateInputValues
c:\tmp\factorio-build-4tna6t\src\energy\electricnetwork.cpp (73): ElectricNetwork::update
c:\tmp\factorio-build-4tna6t\src\energy\electricnetworkmanager.cpp (141): ElectricNetworkManager::update
c:\tmp\factorio-build-4tna6t\src\util\workerthread.cpp (49): WorkerThread::loop
c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.16.27023\include\thr\xthread (230): std::_LaunchPad<std::unique_ptr<std::tuple<void (__cdecl SteelSeriesController::*)(void),SteelSeriesController *>,std::default_delete<std::tuple<void (__cdecl SteelSeriesController::*)(void),SteelSeriesController *> > > >::_Go
c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.16.27023\include\thr\xthread (209): std::_Pad::_Call_func
minkernel\crts\ucrt\src\appcrt\startup\thread.cpp (97): thread_start<unsigned int (__cdecl*)(void *),1>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF8F7E255A0)
00007FF8F7E255A0 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF8F89E485B)
00007FF8F89E485B (ntdll): (filename not available): RtlUserThreadStart
Stack trace logging done
 170.522 Error CrashHandler.cpp:191: Map tick at moment of crash: 19512214
 170.574 Info CrashHandler.cpp:311: Executable CRC: 726084301
 170.574 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.
 179.656 Uploading log file
 179.732 Error CrashHandler.cpp:262: Heap validation: success.
 179.733 Creating crash dump.
 180.031 CrashDump success

FuryoftheStars
Smart Inserter
Smart Inserter
Posts: 2587
Joined: Tue Apr 25, 2017 2:01 pm
Contact:

Re: [1.1.76] Crash loading save (ElectricSubNetwork::updateInputValues)

Post by FuryoftheStars »

It will rarely crash on me. Only time it has was by loading Factorio and then hitting the Continue button, but this doesn't always happen. Following the repo steps above by Loewchen, in the few times I tried it that way, had no issues for me. I got the same exact error, though, in the one time it did crash.
My Mods: Classic Factorio Basic Oil Processing | Sulfur Production from Oils | Wood to Oil Processing | Infinite Resources - Normal Yield | Tree Saplings (Redux) | Alien Biomes Tweaked | Restrictions on Artificial Tiles | New Gear Girl & HR Graphics

User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 2252
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [1.1.76] Crash loading save (ElectricSubNetwork::updateInputValues)

Post by boskid »

Thanks for the report however the crashes that happen are all caused by a corrupted save file: the electric network reports as belonging to a surface with index 2 while the nauvis (the only surface) has an index of 0. The only places where this index can change intentionally is when an ElectricNetwork is created or when a surface is being deleted (in which case it finds a new value to be used by the electric network), which means without any reproduction how the save file got corrupted there is not much i can do. If you want i can try to fix this save file.

mackhuffer
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu Feb 02, 2023 11:43 pm
Contact:

Re: [1.1.76] Crash loading save (ElectricSubNetwork::updateInputValues)

Post by mackhuffer »

After playing that save more, I figured it was corrupted, since nothing I tried worked and the crashing was only getting worse. If you are able to rescue the attached save, that would be amazing. Either way, I appreciate the effort in going after these tricky crashers!
Attachments
grassland 4.zip
(32.54 MiB) Downloaded 35 times

Post Reply

Return to “1 / 0 magic”