#5991·FEX

Slay the Spire 2 (Godot/Mono 原生 Linux 版本) 在 ARM64 上进行多线程资源预加载时会出现重复崩溃

作者: theoleuthardt创建于 2026年9月25日更新于 2026年9月25日

Summary The game's native Linux build launches fine (Vulkan/Turnip initialization succeeds, Steamworks succeeds, the intro logo loads and displays correctly), but crashes reproducibly and deterministically every time during the main menu asset preload step, right after: INFO Preloading 'MainMenuEssentials' assets... count=5 vfx=0 Multiple related exceptions appear leading up to the fatal crash, e.g.: ERROR: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'System.Reflection.RuntimeMethodInfo'. at Godot.GodotObject.GetPtr(GodotObject instance) at Godot.Noise.GetNoise1D(Single x) at ScreenTraumaRumble.Update(Double delta) at NScreenShake._Process(Double delta) Fatal crash: Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at System.Collections.Generic.Dictionary`2.FindValue(TKey key) at Godot.Bridge.ScriptManagerBridge.GetOrCreateScriptBridgeForType(Type, godot_ref*) at Godot.Bridge.ScriptManagerBridge.GetOrCreateScriptBridgeForPath(godot_string*, godot_ref*) What I've tried (none prevented the crash, only shifted the exact exception/line slightly) `--rendering-driver vulkan` vs `opengl3` `--rendering-method mobile` vs `forward_plus` `FEX_TSOENABLED=1` `FEX_TSOENABLED=1` + `FEX_PARANOIDTSO=1` `taskset -c 0,1,2,3` and `taskset -c 0` (single core) The fact that full TSO emulation doesn't fix it, but reducing available CPU cores changes exactly when/where it crashes, points away from a pure memory-ordering issue and toward a timing-sensitive race. Hypothesis Godot's `WorkerThreadPool` (8 threads on this device) loads/registers many C# scripts concurrently during this preload step, causing Mono's JIT to compile code on multiple threads at once. This looks like it could be hitting the same class of bug described in #3032 (self-modifying-code tracking marking a code page read-only, followed by a