I was fiddling with a scenario. I did some console commands to fiddle with the gui via console commands and I thought maybe saving and reloading might provide better results, but I was unable to load the save!
I was getting errors about not being able to access player.gui.top.rpg, so I created another frame with name "rpg", which added another item on the bar up top, and then did rpg.destroy(). Afterwards, "/c for k, v in pairs (game.player.gui.top.children) do game.print(v.name) end" still output "rpg" as one of the names but I couldn't reference it. Frustrated, I saved the game and tried to load and then I got the crash. I tried performing these steps again from an autosave (where the specific element was inaccessible) but no luck.
The relevant log file: https://www.dropbox.com/s/e2o7xr4av5sqf ... 9.zip?dl=0
The relevant save file: https://www.dropbox.com/s/d4v2pwkrnsq3o ... 9.zip?dl=0
[15.10] Crash on load on: "CustomGuiElement::indexRecursively"
Re: Crash on save load
Code: Select all
0.002 2017-05-13 19:16:01; Factorio 0.15.10 (build 29654, win64, steam)
0.002 Operating system: Windows 7 Service Pack 1
0.002 Program arguments: "D:\Games\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe"
0.002 Read data path: D:/Games/Steam/steamapps/common/Factorio/data
0.002 Write data path: C:/Users/Jeff/AppData/Roaming/Factorio
0.002 Binaries path: D:/Games/Steam/steamapps/common/Factorio/bin
0.090 System info: [CPU: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz, 4 cores, RAM: 16345MB]
0.090 Display options: [FullScreen: 0] [VSync: 0] [UIScale: 100.806%] [MultiSampling: OFF] [Screen: 255]
0.091 Available display adapters: 1
0.091 [0]: \\.\DISPLAY1 - Radeon(TM) RX 460 Graphics {0x8080005, [0,0], 1920x1080, 32bit, 144Hz}
0.092 Create display on adapter 0. Size 1280x720 at position [310, 162].
0.198 Initialised Direct3D:[0] Radeon(TM) RX 460 Graphics ; driver: aticfx64.dll 21.19.519.2
0.202 Video memory size (dedicated video/dedicated system/shared system/available): 4040/0/3840/3781 MB
0.287 DSound: Starting _dsound_update thread
0.287 DSound: Enter _dsound_update; tid=12048
0.287 Device reset internal.
0.290 Desktop composition is active.
0.290 Graphics settings preset: very-high
0.291 Graphics options: [Graphics quality: normal] [Video memory usage: high] [Light scale: 25%] [DXT: false]
0.558 Info ModManager.cpp:180: Found duplicate mod BeltUpgrader, using higher version (0.8.0 > 0.7.0).
0.559 Info ModManager.cpp:180: Found duplicate mod BeltUpgrader, using higher version (0.8.1 > 0.8.0).
0.559 Info ModManager.cpp:180: Found duplicate mod BeltUpgrader, using higher version (0.9.0 > 0.8.1).
0.559 Info ModManager.cpp:180: Found duplicate mod BeltUpgrader, using higher version (0.9.1 > 0.9.0).
0.560 Info ModManager.cpp:180: Found duplicate mod BeltUpgrader, using higher version (0.9.2 > 0.9.1).
0.563 Info ModManager.cpp:180: Found duplicate mod BeltUpgrader, using higher version (0.9.3 > 0.9.2).
0.563 Info ModManager.cpp:185: Found duplicate mod BeltUpgrader, using folder version (0.9.3).
0.567 Info ModManager.cpp:180: Found duplicate mod Bluebuild, using higher version (0.7.0 > 0.6.4).
0.567 Info ModManager.cpp:180: Found duplicate mod Bluebuild, using higher version (1.0.0 > 0.7.0).
0.568 Info ModManager.cpp:180: Found duplicate mod Bluebuild, using higher version (1.0.1 > 1.0.0).
0.568 Info ModManager.cpp:180: Found duplicate mod Bluebuild, using higher version (1.0.2 > 1.0.1).
0.568 Info ModManager.cpp:180: Found duplicate mod Bluebuild, using higher version (1.0.3 > 1.0.2).
0.569 Info ModManager.cpp:180: Found duplicate mod Bluebuild, using higher version (1.0.5 > 1.0.3).
0.569 Info ModManager.cpp:180: Found duplicate mod Bluebuild, using higher version (1.1.0 > 1.0.5).
0.573 Info ModManager.cpp:180: Found duplicate mod Bluebuild, using higher version (1.1.1 > 1.1.0).
0.573 Info ModManager.cpp:185: Found duplicate mod Bluebuild, using folder version (1.1.1).
0.624 Info ModManager.cpp:180: Found duplicate mod Concreep, using higher version (0.9.4 > 0.9.3).
0.624 Info ModManager.cpp:180: Found duplicate mod Concreep, using higher version (0.9.5 > 0.9.4).
0.624 Info ModManager.cpp:180: Found duplicate mod Concreep, using higher version (0.9.6 > 0.9.5).
0.625 Info ModManager.cpp:180: Found duplicate mod Concreep, using higher version (0.9.7 > 0.9.6).
0.625 Info ModManager.cpp:180: Found duplicate mod Concreep, using higher version (0.9.8 > 0.9.7).
0.628 Info ModManager.cpp:180: Found duplicate mod Concreep, using higher version (1.0.0 > 0.9.8).
0.629 Info ModManager.cpp:185: Found duplicate mod Concreep, using folder version (1.0.0).
0.629 Info ModManager.cpp:180: Found duplicate mod Dirt_Path, using higher version (0.8.1 > 0.8.0).
0.630 Info ModManager.cpp:180: Found duplicate mod Dirt_Path, using higher version (0.8.2 > 0.8.1).
0.630 Info ModManager.cpp:180: Found duplicate mod Dirt_Path, using higher version (0.8.3 > 0.8.2).
0.630 Info ModManager.cpp:180: Found duplicate mod Dirt_Path, using higher version (0.8.4 > 0.8.3).
0.633 Info ModManager.cpp:180: Found duplicate mod Dirt_Path, using higher version (1.0.0 > 0.8.4).
0.634 Info ModManager.cpp:185: Found duplicate mod Dirt_Path, using folder version (1.0.0).
0.641 Info ModManager.cpp:180: Found duplicate mod GlobalWarming, using higher version (0.6.0 > 0.5.0).
0.641 Info ModManager.cpp:180: Found duplicate mod GlobalWarming, using higher version (0.6.1 > 0.6.0).
0.641 Info ModManager.cpp:180: Found duplicate mod GlobalWarming, using higher version (0.6.2 > 0.6.1).
0.642 Info ModManager.cpp:180: Found duplicate mod GlobalWarming, using higher version (0.7.0 > 0.6.2).
0.642 Info ModManager.cpp:180: Found duplicate mod GlobalWarming, using higher version (0.7.5 > 0.7.0).
0.643 Info ModManager.cpp:180: Found duplicate mod GlobalWarming, using higher version (0.7.6 > 0.7.5).
0.643 Info ModManager.cpp:180: Found duplicate mod GlobalWarming, using higher version (0.7.7 > 0.7.6).
0.646 Info ModManager.cpp:180: Found duplicate mod GlobalWarming, using higher version (0.7.8 > 0.7.7).
0.646 Info ModManager.cpp:185: Found duplicate mod GlobalWarming, using folder version (0.7.8).
0.647 Info ModManager.cpp:180: Found duplicate mod Hardcore_Survival, using higher version (0.9.1 > 0.9.0).
0.647 Info ModManager.cpp:180: Found duplicate mod Hardcore_Survival, using higher version (0.9.2 > 0.9.1).
0.648 Info ModManager.cpp:180: Found duplicate mod Hardcore_Survival, using higher version (0.9.3 > 0.9.2).
0.648 Info ModManager.cpp:180: Found duplicate mod Hardcore_Survival, using higher version (0.9.4 > 0.9.3).
0.649 Info ModManager.cpp:180: Found duplicate mod Hardcore_Survival, using higher version (0.9.5 > 0.9.4).
0.649 Info ModManager.cpp:180: Found duplicate mod Hardcore_Survival, using higher version (0.9.6 > 0.9.5).
0.652 Info ModManager.cpp:180: Found duplicate mod Hardcore_Survival, using higher version (0.9.7 > 0.9.6).
0.652 Info ModManager.cpp:185: Found duplicate mod Hardcore_Survival, using folder version (0.9.7).
0.655 Info ModManager.cpp:180: Found duplicate mod Hardcore_Survival_Expansion, using higher version (0.9.1 > 0.9.0).
0.656 Info ModManager.cpp:185: Found duplicate mod Hardcore_Survival_Expansion, using folder version (0.9.1).
0.679 Info ModManager.cpp:180: Found duplicate mod maptest, using higher version (1.0.1 > 1.0.0).
0.691 Info ModManager.cpp:180: Found duplicate mod Prospector, using higher version (0.6.0 > 0.5.0).
0.691 Info ModManager.cpp:180: Found duplicate mod Prospector, using higher version (0.6.1 > 0.6.0).
0.692 Info ModManager.cpp:180: Found duplicate mod Prospector, using higher version (0.6.2 > 0.6.1).
0.692 Info ModManager.cpp:180: Found duplicate mod Prospector, using higher version (0.6.3 > 0.6.2).
0.693 Info ModManager.cpp:180: Found duplicate mod Prospector, using higher version (0.6.4 > 0.6.3).
0.693 Info ModManager.cpp:180: Found duplicate mod Prospector, using higher version (0.7.0 > 0.6.4).
0.694 Info ModManager.cpp:180: Found duplicate mod Prospector, using higher version (0.7.1 > 0.7.0).
0.694 Info ModManager.cpp:180: Found duplicate mod Prospector, using higher version (0.7.2 > 0.7.1).
0.694 Info ModManager.cpp:180: Found duplicate mod Prospector, using higher version (0.7.3 > 0.7.2).
0.695 Info ModManager.cpp:180: Found duplicate mod Prospector, using higher version (0.8.0 > 0.7.3).
0.695 Info ModManager.cpp:180: Found duplicate mod Prospector, using higher version (0.8.1 > 0.8.0).
0.696 Info ModManager.cpp:180: Found duplicate mod Prospector, using higher version (0.8.2 > 0.8.1).
0.696 Info ModManager.cpp:180: Found duplicate mod Prospector, using higher version (0.9.0 > 0.8.2).
0.697 Info ModManager.cpp:180: Found duplicate mod Prospector, using higher version (0.9.1 > 0.9.0).
0.698 Info ModManager.cpp:180: Found duplicate mod Prospector, using higher version (0.9.2 > 0.9.1).
0.701 Info ModManager.cpp:180: Found duplicate mod Prospector, using higher version (1.0.0 > 0.9.2).
0.701 Info ModManager.cpp:185: Found duplicate mod Prospector, using folder version (1.0.0).
0.730 Info ModManager.cpp:185: Found duplicate mod VictoryTurrets, using folder version (0.8.0).
0.799 Loading mod core 0.0.0 (data.lua)
0.963 Loading mod base 0.15.10 (data.lua)
2.917 Loading mod base 0.15.10 (data-updates.lua)
3.002 Checksum for core: 493117188
3.002 Checksum of base: 3607179770
3.327 Info PlayerData.cpp:56: Local player-data.json available, timestamp 1494692497
3.327 Info PlayerData.cpp:61: Cloud player-data.json available, timestamp 1494692495
3.791 Loaded shader file D:/Games/Steam/steamapps/common/Factorio/data/core/graphics/shaders/game.cso
3.803 Loaded shader file D:/Games/Steam/steamapps/common/Factorio/data/core/graphics/shaders/zoom-to-world.cso
3.815 Initial atlas bitmap size is 16384
3.817 Created atlas bitmap 16384x5455
3.817 Created atlas bitmap 4096x3652
3.817 Created atlas bitmap 4096x1840
3.818 Created atlas bitmap 4096x4092
3.818 Created atlas bitmap 4096x321
3.819 Created atlas bitmap 4096x4094
3.819 Created atlas bitmap 4096x817
3.819 Created atlas bitmap 4096x1568
40.712 Sprites loaded
40.712 Convert atlas 4096x3652 to: mipmap
40.769 Convert atlas 4096x1840 to: trilinear-filtering
40.800 Convert atlas 4096x1568 to: mipmap
40.963 Loading sounds...
50.201 Custom inputs active: 0
50.266 Factorio initialised
54.587 Loading map C:\Users\Jeff\AppData\Roaming\Factorio\saves\factoriorpg.zip: 9104771 bytes.
54.741 Loading Level.dat: 16681687 bytes.
54.744 Info Scenario.cpp:133: Map version 0.15.10-3
55.192 Error CrashHandler.cpp:141: Exception Code: c0000005, Address: 0x000000013fd98c07
ModuleBase: 0x000000013f260000, ImageSize: 011a9000, RelativeAddress: 00b38c07
55.192 Error CrashHandler.cpp:151: Exception Context:
rax=0000000000000000, rbx=0000000059cacec0, rcx=fffffffffffffff8,
rdx=0000000000000008, rsi=0000000000000008, rdi=0000000000000000,
rip=000000013fd98c07, rsp=000000005143c5d8, rbp=0000000000000000,
r8=000000005a9b20e0, r9=00000000533cada0, r10=0000000000000008,
r11=000000000bd62320, r12=0000000000000000, r13=0000000000000000,
r14=0000000000000001, r15=000000005143c860
55.192 Crashed in D:\Games\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe (0x000000013f260000 - 0x0000000140409000)
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-m5gomj\libraries\stackwalker\stackwalker.cpp (923): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-m5gomj\src\util\logger.cpp (354): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-m5gomj\src\util\logger.cpp (408): Logger::logStacktrace
c:\cygwin64\tmp\factorio-m5gomj\src\util\crashhandler.cpp (105): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-m5gomj\src\util\crashhandler.cpp (177): CrashHandler::SehHandler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 000000007764BC10)
000000007764BC10 (kernel32): (filename not available): UnhandledExceptionFilter
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000077750108)
0000000077750108 (ntdll): (filename not available): EtwEventSetInformation
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00000000776E7958)
00000000776E7958 (ntdll): (filename not available): _C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00000000776F812D)
00000000776F812D (ntdll): (filename not available): RtlDecodePointer
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00000000776E855F)
00000000776E855F (ntdll): (filename not available): RtlUnwindEx
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 000000007771BCB8)
000000007771BCB8 (ntdll): (filename not available): KiUserExceptionDispatcher
f:\dd\vctools\crt\vcruntime\src\string\amd64\memcpy.asm (135): memcpy
c:\cygwin64\tmp\factorio-m5gomj\src\player.cpp (250): Player::~Player
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 000000013F848F24)
000000013F848F24 (Factorio): (filename not available): Player::`scalar deleting destructor'
c:\cygwin64\tmp\factorio-m5gomj\src\map\map.cpp (1053): Map::~Map
c:\program files (x86)\microsoft visual studio 14.0\vc\include\memory (1396): std::unique_ptr<Map,std::default_delete<Map> >::~unique_ptr<Map,std::default_delete<Map> >
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 000000013FE2605D)
000000013FE2605D (Factorio): (filename not available): `Map::load'::`1'::dtor$1
f:\dd\vctools\crt\vcruntime\src\eh\amd64\handlers.asm (50): _CallSettingFrame
f:\dd\vctools\crt\vcruntime\src\eh\frame.cpp (1119): __FrameUnwindToState
f:\dd\vctools\crt\vcruntime\src\eh\amd64\trnsctrl.cpp (149): __FrameUnwindToEmptyState
f:\dd\vctools\crt\vcruntime\src\eh\frame.cpp (396): __InternalCxxFrameHandler
f:\dd\vctools\crt\vcruntime\src\eh\amd64\trnsctrl.cpp (186): __CxxFrameHandler3
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00000000776F81AD)
00000000776F81AD (ntdll): (filename not available): RtlDecodePointer
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00000000776E7DDC)
00000000776E7DDC (ntdll): (filename not available): RtlUnwindEx
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00000000775E052E)
00000000775E052E (kernel32): (filename not available): RtlUnwindEx
f:\dd\vctools\crt\vcruntime\src\eh\amd64\trnsctrl.cpp (481): _UnwindNestedFrames
f:\dd\vctools\crt\vcruntime\src\eh\frame.cpp (1268): CatchIt
f:\dd\vctools\crt\vcruntime\src\eh\frame.cpp (679): FindHandler
f:\dd\vctools\crt\vcruntime\src\eh\frame.cpp (449): __InternalCxxFrameHandler
f:\dd\vctools\crt\vcruntime\src\eh\amd64\trnsctrl.cpp (186): __CxxFrameHandler3
f:\dd\vctools\crt\vcstartup\src\gs\amd64\gshandlereh.c (114): __GSHandlerCheck_EH
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00000000776F812D)
00000000776F812D (ntdll): (filename not available): RtlDecodePointer
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00000000776E855F)
00000000776E855F (ntdll): (filename not available): RtlUnwindEx
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00000000776E8B58)
00000000776E8B58 (ntdll): (filename not available): RtlRaiseException
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 000007FEFD43A06D)
000007FEFD43A06D (KERNELBASE): (filename not available): RaiseException
f:\dd\vctools\crt\vcruntime\src\eh\throw.cpp (136): _CxxThrowException
c:\cygwin64\tmp\factorio-m5gomj\src\customgui\customguielement.cpp (56): CustomGuiElement::indexRecursively
c:\cygwin64\tmp\factorio-m5gomj\src\customgui\customguielement.cpp (61): CustomGuiElement::indexRecursively
c:\cygwin64\tmp\factorio-m5gomj\src\customgui\customgui.cpp (52): CustomGui::CustomGui
c:\cygwin64\tmp\factorio-m5gomj\src\player.cpp (107): Player::Player
c:\cygwin64\tmp\factorio-m5gomj\src\map\map.cpp (638): Map::loadData
c:\cygwin64\tmp\factorio-m5gomj\src\map\map.cpp (278): Map::load
c:\cygwin64\tmp\factorio-m5gomj\src\scenario\scenario.cpp (140): Scenario::loadFactory
c:\cygwin64\tmp\factorio-m5gomj\src\scenario\parallelscenarioloader.cpp (116): ParallelScenarioLoader::doLoad
c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread (247): std::_LaunchPad<std::unique_ptr<std::tuple<void (__cdecl*)(ParallelScenarioLoader * __ptr64,MapDeserialiser * __ptr64,enum InputType,InputHandler * __ptr64,MultiplayerManagerBase * __ptr64,bool),ParallelScenarioLoader * __ptr64,MapDeserialiser * __ptr64,enum InputType,InputHandler * __ptr64,MultiplayerManagerBase * __ptr64,bool>,std::default_delete<std::tuple<void (__cdecl*)(ParallelScenarioLoader * __ptr64,MapDeserialiser * __ptr64,enum InputType,InputHandler * __ptr64,MultiplayerManagerBase * __ptr64,bool),ParallelScenarioLoader * __ptr64,MapDeserialiser * __ptr64,enum InputType,InputHandler * __ptr64,MultiplayerManagerBase * __ptr64,bool> > > >::_Run
c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread (210): std::_Pad::_Call_func
d:\th\minkernel\crts\ucrt\src\appcrt\startup\thread.cpp (115): thread_start<unsigned int (__cdecl*)(void * __ptr64)>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00000000775C59CD)
00000000775C59CD (kernel32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00000000776FA561)
00000000776FA561 (ntdll): (filename not available): RtlUserThreadStart
57.200 Error Util.cpp:76: 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.
Re: [15.10] Crash on load on: "CustomGuiElement::indexRecursively"
Have you been able to reproduce what you did to get it into this state?
If you want to get ahold of me I'm almost always on Discord.
Re: [15.10] Crash on load on: "CustomGuiElement::indexRecursively"
I managed to stop crashing, if that helps.
The only relevant change I can think of that stopped this crashing would be changing this block:
to this block:
The Factorio MMO toolkit has a similar chunk of code that adds the admin pane to the player gui every time an admin connects (and doesn't check for duplicates) and they were also having desync problems. Under the first block, the savegame could get to a state where every player would crash on their second login.
The only relevant change I can think of that stopped this crashing would be changing this block:
Code: Select all
--Add levelup gui, called on_player_joined_game
function rpg_add_gui(event)
local player = game.players[event.player_index]
player.gui.top.add{type="frame", name="rpg", caption="Level 1"}
player.gui.top.rpg.add{type="progressbar", name="exp", size=200, tooltip="Kill biter bases or launch rockets to level up."}
end
Code: Select all
--Add levelup gui, called on_player_joined_game
function rpg_add_gui(event)
local player = game.players[event.player_index]
if not player.gui.top.rpg then
player.gui.top.add{type="frame", name="rpg", caption="Level 1"}
player.gui.top.rpg.add{type="progressbar", name="exp", size=200, tooltip="Kill biter bases or launch rockets to level up."}
end
end
Re: [15.10] Crash on load on: "CustomGuiElement::indexRecursively"
Think I am having the same issue as my logs look pretty similar. This is on 15.11.
Logs, Save files and Mod Settings uploaded to dropbox link below.
Have quite a bit of mods but also getting error with all mods disabled as well.
https://www.dropbox.com/sh/yvjd42ns7q59 ... o1yla?dl=0
Logs, Save files and Mod Settings uploaded to dropbox link below.
Have quite a bit of mods but also getting error with all mods disabled as well.
https://www.dropbox.com/sh/yvjd42ns7q59 ... o1yla?dl=0
Re: [15.10] Crash on load on: "CustomGuiElement::indexRecursively"
You're loading a 0.14.13 save which had a specific map corruption issue. if you load it in 0.14.22 and re-save it you can load it in 0.15.ziggyo7 wrote:Think I am having the same issue as my logs look pretty similar. This is on 15.11.
Logs, Save files and Mod Settings uploaded to dropbox link below.
Have quite a bit of mods but also getting error with all mods disabled as well.
https://www.dropbox.com/sh/yvjd42ns7q59 ... o1yla?dl=0
If you want to get ahold of me I'm almost always on Discord.
Re: [15.10] Crash on load on: "CustomGuiElement::indexRecursively"
Can anyone reproduce this crash in 0.15.11 with a new save? It should be fixed. Existing saves may still have problems if it got into the broken state.
If you want to get ahold of me I'm almost always on Discord.