View Issue Details

IDProjectCategoryLast Update
0026109AI War 2Crash/ExceptionJan 13, 2022 5:20 pm
Reporterwilliam montag Assigned ToChris_McElligottPark  
Severitycrash 
Status resolvedResolutionfixed 
Product VersionBeta 3.783 The Return Of Multiplayer! 
Fixed in VersionBeta 3.784 Tractor Recursion 
Summary0026109: random crash to desktop
Descriptiongot a game going and it will randomly crash to desktop...
TagsNo tags attached.

Activities

william montag

Jan 13, 2022 2:05 pm

reporter  

q.save (3,403,560 bytes)
q.bak (3,145,551 bytes)
ArcenDebugLog.txt (1,526,369 bytes)

Chris_McElligottPark

Jan 13, 2022 4:30 pm

administrator   ~0063755

Here's another one from BobDobbs on discord, where it crashes 3 seconds into the save. I am starting to think it might be related to the Dark Zenith.
fatal_errors.save (500,814 bytes)
fatal_errors.savemet (112 bytes)   
UK
739766208
2398
Newest
<color=#66ffce>Easier </color> Full Ensemble
Difficulty 8
18
<color=#007fff>Jax</color>
fatal_errors.savemet (112 bytes)   

Chris_McElligottPark

Jan 13, 2022 5:11 pm

administrator   ~0063756

Thanks!

* Improved an exception from Dark Zenith long range planning to be less disruptive if it occurs.

* Fixed a very confusing and semi-rare (but extremely consistent when it does happen) crash bug that seemed to be new in the last build. This was a very subtle code bug from myself that I didn't even recognize after putting in an initial fix until Democracy made a further comment.
** This took an incredibly long time to track down because it left no actual errors and just crashed to the desktop, or left only errors unrelated to itself on linux apparently. It took 80 minutes to find this with a savegame in which I could reproduce the error in 3 seconds, and without that save (thank you BobDobbs!) I couldn't have debugged it at all.
** The issue here was "what happens if two tractor beam units both grab one another and try to pull at the same time?" Unlike the peasant railgun, this is isn't an absurd speed that is reached, but rather a stack overflow that is so harsh it causes a segfault (writing to protected memory).
** The general situation was like this: "tractor A grabs B, which is also a tractor, which grabs A. A moves, dragging B with it. B has moved, so it pushes A with it, which causes B to be pulled, which moves A, etc." Actually it probably does work like a railgun, except it essentially accelerates them both to infinity speed within a nanosecond, so the world collapses in a singularity.
** I'm pretty sure that Zeus and I had talked about this a long time ago as a possibility with some DLC2 stuff, but the units in question at the time were set up so that we never had to test this corner case. I take it that the balance has changed such that this corner case became relevant.
** Anyhow, originally I was just going to just make tractors not grab tractors, but then Democracy noted that this case was safely working before (Ensnarer Battlestations would do it). So that reminded me of the code change I did last build, and reviewed earlier today without seeing the issue. Based on that, I managed to let tractors drag tractors again, but keep them from infinite looping.

Chris_McElligottPark

Jan 13, 2022 5:16 pm

administrator   ~0063758

Also thanks!

* Fixed an exception that could happen in AntagonizedDysonDescriptionAppender.AddToDescriptionBuffer.

Chris_McElligottPark

Jan 13, 2022 5:20 pm

administrator   ~0063759

And also thanks!

* Any errors in HandleDeathWithEffectApplied_AfterFullDeathOrPartOfStackDeath will no longer interrupt the sim as much as they did before.

Chris_McElligottPark

Jan 13, 2022 5:20 pm

administrator   ~0063760

Any other popup errors you wind up with, please do report those, because I can't fix them if folks don't report them -- your log here was full of important things for me to fix!

Issue History

Date Modified Username Field Change
Jan 13, 2022 2:05 pm william montag New Issue
Jan 13, 2022 2:05 pm william montag File Added: q.save
Jan 13, 2022 2:05 pm william montag File Added: q.bak
Jan 13, 2022 2:05 pm william montag File Added: ArcenDebugLog.txt
Jan 13, 2022 4:30 pm Chris_McElligottPark Note Added: 0063755
Jan 13, 2022 4:30 pm Chris_McElligottPark File Added: fatal_errors.save
Jan 13, 2022 4:30 pm Chris_McElligottPark File Added: fatal_errors.savemet
Jan 13, 2022 5:11 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Jan 13, 2022 5:11 pm Chris_McElligottPark Status new => resolved
Jan 13, 2022 5:11 pm Chris_McElligottPark Resolution open => fixed
Jan 13, 2022 5:11 pm Chris_McElligottPark Fixed in Version => Beta 3.784 Tractor Recursion
Jan 13, 2022 5:11 pm Chris_McElligottPark Note Added: 0063756
Jan 13, 2022 5:16 pm Chris_McElligottPark Note Added: 0063758
Jan 13, 2022 5:20 pm Chris_McElligottPark Note Added: 0063759
Jan 13, 2022 5:20 pm Chris_McElligottPark Note Added: 0063760