[Genhis][2.0.14] Crash of client reordering wait conditions (ScheduleGui::updateScheduleBox)

This subforum contains all the issues which we already resolved.
deej009
Manual Inserter
Manual Inserter
Posts: 1
Joined: Tue Nov 05, 2024 1:50 pm
Contact:

[Genhis][2.0.14] Crash of client reordering wait conditions (ScheduleGui::updateScheduleBox)

Post by deej009 »

Version: 2.0.14
Mods: space age, quality, elevated rails
Client: windows10
Server Type: Headless Linux

I made a train named "Uranium" with the following wait conditions:
11-05-2024, 08-24-09.png
11-05-2024, 08-24-09.png (40.59 KiB) Viewed 1026 times
Reordering any of these wait conditions causes an enum error when the conditions try to refresh, which crashes the game client.

Can't be reproduced in single player or when the game is hosted via the in-game multiplayer option from the main menu. I've only ran into it while connected to a headless linux server. Also seems to only be reproducible with the inactivity wait conditon, though I have not tested exhaustively.

Steps to reproduce:
1. Open Train UI
2. Create 2 Inactivity wait conditions and 1 of any other type
3. While the inactivity wait conditions are being met, reorder any of them.
4. Client Crash

Let me know if you need any additonal info.

Code: Select all

   0.001 2024-11-05 08:10:57; Factorio 2.0.14 (build 79988, win64, steam, space-age)
   0.001 Operating system: Windows 10 (build 19045) 
   0.000 Initializing Steam API.
   0.003 Program arguments: "C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe" 
   0.003 Config path: C:/Users/xrayf/AppData/Roaming/Factorio/config/config.ini
   0.003 Read data path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/data
   0.003 Write data path: C:/Users/xrayf/AppData/Roaming/Factorio [121448/953591MB]
   0.003 Binaries path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin
   0.051 System info: [CPU: 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz, 16 cores, RAM: 10144/16085 MB, page: 14694/27861 MB, virtual: 4354/134217727 MB, extended virtual: 0 MB]
   0.088 Memory info:
   0.088  [0]: Samsung M471A1K43DB1-CWE 8192 MB 3200 MHz 1.2 v
   0.088  [1]: Samsung M471A1K43DB1-CWE 8192 MB 3200 MHz 1.2 v
   0.095 Display options: [FullScreen: true] [VSync: true] [UIScale: automatic (100.0%)] [Native DPI: true] [Screen: 255] [Special: lmw] [Lang: en]
   0.441 Video driver: windows
   0.441 Available displays: 1
   0.441  [0]: \\.\DISPLAY1 - Intel(R) UHD Graphics {0x05, [0,0], 1920x1080, 32bit, 144Hz}
   0.568 [Direct3D11] Display: 0, Output: 0, DisplayAdapter: 0, RenderingAdapter: -1; d3dcompiler_47.dll
   3.037 Initialised Direct3D[0]: NVIDIA GeForce RTX 3070 Laptop GPU; id: 10de-249d; driver: nvldumdx.dll 32.0.15.5599
   3.037   D3D Feature Level: 11.1, DXGI 1.5+, SwapChain: 3,flip-discard,-,-,-,none
   3.037   [Local Video Memory] Budget: 7252MB, CurrentUsage: 23MB, Reservation: 0/3754MB
   3.037   [Non-Local Vid.Mem.] Budget: 7384MB, CurrentUsage: 10MB, Reservation: 0/3820MB
   3.037   Tiled resources: Tier 2
   3.037   Unified Memory Architecture: No
   3.037   BGR 565 Supported: Yes
   3.037   MaximumFrameLatency: 3, GPUThreadPriority: 0
   3.038 Graphics settings preset: very-high
   3.039   Dedicated video memory size 8020 MB
   3.114 Desktop composition is active.
   3.115 Graphics options: [Graphics quality: high] [Video memory usage: all] [DXT: high-quality]
   3.115                   [Max threads (load/render): 32/16] [Max texture size: 0] [Tex.Stream.: false] [Rotation quality: normal] [Other: STDCWTl] [B:100,C:0,S:100]
   3.252 [Audio] Driver:wasapi, Device:Default device, Depth:16, Frequency:44100, Channels:2, Interpolation:linear
   3.610 Razer Chroma Controller initialized.
   3.661 Logitech LED Controller initialized.
   4.613 SteelSeries GameSense Controller initialized.
   4.715 Info ModManager.cpp:434: FeatureFlag expansion-shaders = true
   4.715 Info ModManager.cpp:434: FeatureFlag freezing = true
   4.715 Info ModManager.cpp:434: FeatureFlag quality = true
   4.715 Info ModManager.cpp:434: FeatureFlag rail-bridges = true
   4.715 Info ModManager.cpp:434: FeatureFlag segmented-units = true
   4.715 Info ModManager.cpp:434: FeatureFlag space-travel = true
   4.715 Info ModManager.cpp:434: FeatureFlag spoiling = true
   4.724 Loading mod core 0.0.0 (data.lua)
   4.773 Loading mod base 2.0.14 (data.lua)
   5.192 Loading mod elevated-rails 2.0.14 (data.lua)
   5.292 Loading mod quality 2.0.14 (data.lua)
   5.323 Loading mod space-age 2.0.14 (data.lua)
   6.225 Loading mod base 2.0.14 (data-updates.lua)
   6.249 Loading mod quality 2.0.14 (data-updates.lua)
   6.283 Loading mod space-age 2.0.14 (data-updates.lua)
   6.503 Checksum for core: 3504056361
   6.503 Checksum of base: 48730768
   6.503 Checksum of elevated-rails: 971617432
   6.503 Checksum of quality: 3898255384
   6.503 Checksum of space-age: 1545753807
   7.195 Prototype list checksum: 124222065
   7.282 Loading sounds...
   8.217 Info PlayerData.cpp:68: Local player-data.json unavailable
   8.217 Info PlayerData.cpp:71: Cloud player-data.json available, timestamp 1730814491
   8.967 Initial atlas bitmap size is 16384
   9.000 Created an atlas bitmap (size 16384x16380) [none]
   9.043 Created an atlas bitmap (size 16384x16384) [none]
   9.099 Created an atlas bitmap (size 16384x16384) [none]
   9.102 Created an atlas bitmap (size 16384x15420) [none]
   9.102 Created an atlas bitmap (size 16384x8392) [decal]
   9.114 Created an atlas bitmap (size 16384x16384) [low-object]
   9.114 Created an atlas bitmap (size 4096x960) [low-object]
   9.116 Created an atlas bitmap (size 16384x13440) [corpse-decay]
   9.116 Created an atlas bitmap (size 16384x5596) [none]
   9.116 Created an atlas bitmap (size 1676x79) [not-compressed]
   9.117 Created an atlas bitmap (size 8192x6096) [mipmap, linear-minification, linear-magnification, linear-mip-level]
   9.132 Created an atlas bitmap (size 16384x16320) [terrain, mipmap, linear-minification, linear-mip-level]
   9.132 Created an atlas bitmap (size 16384x4832) [terrain, mipmap, linear-minification, linear-mip-level]
   9.133 Created an atlas bitmap (size 8192x3872) [terrain-effect-map, mipmap, linear-minification, linear-mip-level]
   9.133 Created an atlas bitmap (size 4096x3104) [smoke, mipmap, linear-minification, linear-magnification]
   9.133 Created an atlas bitmap (size 8192x2576) [mipmap]
   9.134 Created an atlas bitmap (size 2048x1520) [mipmap]
   9.134 Created an atlas bitmap (size 4096x3152) [mipmap]
   9.134 Created an atlas bitmap (size 4096x3152) [mipmap]
   9.135 Created an atlas bitmap (size 4096x3152) [mipmap]
   9.135 Created an atlas bitmap (size 8192x3792) [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
   9.138 Created an atlas bitmap (size 16384x6120) [alpha-mask]
   9.192 Created an atlas bitmap (size 16384x16380) [shadow, linear-magnification, alpha-mask]
   9.206 Created an atlas bitmap (size 16384x16368) [shadow, linear-magnification, alpha-mask]
   9.207 Created an atlas bitmap (size 16384x8364) [shadow, linear-magnification, alpha-mask]
   9.207 Created an atlas bitmap (size 8192x2352) [shadow, mipmap, linear-magnification, alpha-mask]
   9.207 Created an atlas bitmap (size 2048x496) [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
   9.207 Loading 3D bitmaps.
   9.232 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
   9.264 Parallel sprite loader initialized (threads: 13, bitmaps: 8227)
  41.334 Sprites loaded
  41.435 Generated mipmaps (4) for atlas [5] of size 16384x16384   
  41.447 Generated mipmaps (4) for atlas [6] of size 4096x960   
  41.470 Generated mipmaps (3) for atlas [10] of size 8192x6096   
  41.525 Generated mipmaps (3) for atlas [11] of size 16384x16320   
  41.547 Generated mipmaps (3) for atlas [12] of size 16384x4832   
  41.558 Generated mipmaps (3) for atlas [13] of size 8192x3872   
  41.570 Generated mipmaps (3) for atlas [14] of size 4096x3104   
  41.639 Generated mipmaps (3) for atlas [15] of size 8192x2576   
  41.651 Generated mipmaps (3) for atlas [16] of size 2048x1520   
  41.663 Generated mipmaps (3) for atlas [17] of size 4096x3152   
  41.703 Generated mipmaps (3) for atlas [18] of size 4096x3152   
  41.715 Generated mipmaps (3) for atlas [19] of size 4096x3152   
  41.727 Generated mipmaps (5) for atlas [20] of size 8192x3792   
  41.739 Generated mipmaps (3) for atlas [25] of size 8192x2352   
  41.784 Custom mipmaps uploaded (3203)
  41.803 Video memory usage: 3555.24 MB (Atlases: 3424.93 MB, Textures: 130.30 MB)
  42.353 Factorio initialised
  42.353 Discord overlay detected (DiscordHook64.dll)
  42.391 Steam Storage Quota: 23429/23841
  59.054 Joining game IP ADDR:({94.9.97.253:34197})
  59.054 Info UDPSocket.cpp:38: Opening socket
  59.059 Info ClientMultiplayerManager.cpp:603: UpdateTick(18446744073709551615) changing state from(Ready) to(Connecting)
  59.348 Connection refused
  59.348 Info ClientMultiplayerManager.cpp:196: Quitting multiplayer connection.
  59.348 Info ClientMultiplayerManager.cpp:603: UpdateTick(18446744073709551615) changing state from(Connecting) to(Disconnected)
  59.349 Info HttpSharedState.cpp:55: Downloading https://auth.factorio.com/generate-user-server-key-2?api_version=6
  59.771 Info AuthServerConnector.cpp:146: Received key from auth server.
  59.772 Info UDPSocket.cpp:233: Closing socket
  59.772 Info UDPSocket.cpp:263: Socket closed
  59.773 Joining game IP ADDR:({94.9.97.253:34197})
  59.773 Info UDPSocket.cpp:38: Opening socket
  59.773 Info ClientMultiplayerManager.cpp:603: UpdateTick(18446744073709551615) changing state from(Ready) to(Connecting)
  60.082 Info ClientSynchronizer.cpp:27: Initialized Synchronizer local peer(1) latency(32).
  60.085 Info ClientMultiplayerManager.cpp:603: UpdateTick(18446744073709551615) changing state from(Connecting) to(ConnectedWaitingForMap)
  60.085 Info ClientRouter.cpp:228: ConnectionAccepted
  60.314 Info ClientMultiplayerManager.cpp:742: Received mapReadyForDownload
  60.314 Downloading file C:\Users\xrayf\AppData\Roaming\Factorio\temp\mp-download.zip (7898662 B, auxiliary 136 B, 15705 blocks)
  60.324 Info ClientMultiplayerManager.cpp:603: UpdateTick(18446744073709551615) changing state from(ConnectedWaitingForMap) to(ConnectedDownloadingMap)
  64.650 Finished download (4 s, 7.8 MB, 1.8 MB/s)
  64.687 Info ClientMultiplayerManager.cpp:722: updateTick(18446744073709551615) map download finished creating scenario
  64.705 Info ClientMultiplayerManager.cpp:603: UpdateTick(18446744073709551615) changing state from(ConnectedDownloadingMap) to(ConnectedLoadingMap)
  64.706 Loading map C:\Users\xrayf\AppData\Roaming\Factorio\temp\mp-download.zip: 7898662 bytes.
  64.793 Loading level.dat: 20479387 bytes.
  64.802 Info Scenario.cpp:178: Map version 2.0.14-2
  65.408 Loading blueprint storage: Local timestamp -1, Cloud timestamp -1
  65.408 Blueprint storage "blueprint-storage-2.dat" was not found, trying to load previous version storage "blueprint-storage.dat"
  65.409 Loading blueprint storage: Local timestamp 1722937791, Cloud timestamp 1724836090
  65.413 Loading script.dat: 1222 bytes.
  65.421 Checksum for script __level__/control.lua: 2463946943
  65.450 Info ClientMultiplayerManager.cpp:603: UpdateTick(6023889) changing state from(ConnectedLoadingMap) to(TryingToCatchUp)
  65.491 Info ClientMultiplayerManager.cpp:603: UpdateTick(6023889) changing state from(TryingToCatchUp) to(WaitingForCommandToStartSendingTickClosures)
  65.683 Info ClientMultiplayerManager.cpp:603: UpdateTick(6023889) changing state from(WaitingForCommandToStartSendingTickClosures) to(InGame)
  65.684 Info GameActionHandler.cpp:4309: UpdateTick (6023889) processed PlayerJoinGame peerID(29) playerIndex(1) mode(connect) 
  72.533 Info ClientSynchronizer.cpp:319: Latency changed to (14)
 102.533 Info ClientSynchronizer.cpp:319: Latency changed to (13)
 107.532 Info ClientSynchronizer.cpp:319: Latency changed to (11)
Factorio crashed. Generating symbolized stacktrace, please wait ...
C:\Users\build\AppData\Local\Temp\factorio-build-OBGG9f\src\Gui\Schedule\ScheduleConditionGui.cpp(153): ScheduleConditionGui::TimeConditionEdit::refreshValues
C:\Users\build\AppData\Local\Temp\factorio-build-OBGG9f\src\Gui\ScheduleGui.cpp(223): ScheduleGui::updateScheduleBox
C:\Users\build\AppData\Local\Temp\factorio-build-OBGG9f\src\Gui\ScheduleGui.cpp(140): ScheduleGui::update
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\functional(823): std::_Func_impl_no_alloc<`ScheduleGui::ScheduleGui'::`2'::<lambda_8>,void,GameNotification const &>::_Do_call
C:\Users\build\AppData\Local\Temp\factorio-build-OBGG9f\src\Gui\GameNotifications.cpp(34): GameNotifications::process
C:\Users\build\AppData\Local\Temp\factorio-build-OBGG9f\src\GameView.cpp(841): GameView::update
C:\Users\build\AppData\Local\Temp\factorio-build-OBGG9f\src\Game.cpp(348): Game::processGameViewFlags
C:\Users\build\AppData\Local\Temp\factorio-build-OBGG9f\src\MainLoop.cpp(598): MainLoop::prePrepare
C:\Users\build\AppData\Local\Temp\factorio-build-OBGG9f\src\MainLoop.cpp(682): MainLoop::mainLoopStep
C:\Users\build\AppData\Local\Temp\factorio-build-OBGG9f\src\MainLoop.cpp(412): MainLoop::run
C:\Users\build\AppData\Local\Temp\factorio-build-OBGG9f\src\Main.cpp(1348): fmain
C:\Users\build\AppData\Local\Temp\factorio-build-OBGG9f\src\Main.cpp(1370): wmain
D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl(288): __scrt_common_main_seh
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA37467374)
00007FFA37467374 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA38BDCC91)
00007FFA38BDCC91 (ntdll): (filename not available): RtlUserThreadStart
Stack trace logging done
 139.170 Error WaitCondition.cpp:434: Unknown enum value: 3
 139.170 Error CrashHandler.cpp:643: Received 22
Logger::writeStacktrace skipped.
 139.170 Error CrashHandler.cpp:190: Map tick at moment of crash: 6028082
 139.287 Info CrashHandler.cpp:318: Executable CRC: 4096785034
 139.288 Error Util.cpp:95: 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.
 197.577 Uploading log file
 197.602 Error CrashHandler.cpp:270: Heap validation: success.
 197.604 Creating crash dump.
 198.150 CrashDump success
Attachments
factorio-current.log
(13.16 KiB) Downloaded 22 times
train scheduling crash.zip
(7.98 MiB) Downloaded 20 times
Last edited by deej009 on Tue Nov 05, 2024 3:04 pm, edited 1 time in total.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3336
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.14] Reording Wait Conditions Causes Client Crash on Linux Server

Post by boskid »

Suspicious, at first i was looking like similar type of issue as 119233 however i verified that it still crashes in 2.0.15. So it is a new weird corner case in gui that also needs to be handled.
Genhis
Factorio Staff
Factorio Staff
Posts: 709
Joined: Wed Dec 24, 2014 8:19 am
Contact:

Re: [Genhis][2.0.14] Crash of client reordering wait conditions (ScheduleGui::updateScheduleBox)

Post by Genhis »

Thank you for attaching the save file and reproduction steps. I managed to fix it for 2.0.24.
Post Reply

Return to “Resolved Problems and Bugs”