Open IlyaBokovenko opened 6 months ago
Hate this thing. Makes debugging a huge pain.
recently had this happen again
This keeps happening to me after 2-3 minutes on the dev map. Debugging is almost impossible for me.
same
Still having this on Across The Veil, which last pulled upstream from commit ce0a51fc29675b3b0afb90296b6a8ce90c3f9cd3.
Still happening randomly.
Happened twice on Core.
2023-12-16T12:37:56.8557266+01:00 [FATL] unhandled: Robust.Shared.Utility.DebugAssertException: Exception of type 'Robust.Shared.Utility.DebugAssertException' was thrown. at Robust.Shared.Utility.DebugTools.Assert(Boolean condition) in C:\Projects\space-station-14\RobustToolbox\Robust.Shared\Utility\DebugTools.cs:line 37 at Content.Server.Power.Pow3r.BatteryRampPegSolver.UpdateNetwork(Network network, PowerState state, Single frameTime) in C:\Projects\space-station-14\Content.Server\Power\Pow3r\BatteryRampPegSolver.cs:line 278 at Content.Server.Power.Pow3r.BatteryRampPegSolver.UpdateNetworkJob.Execute(Int32 index) in C:\Projects\space-station-14\Content.Server\Power\Pow3r\BatteryRampPegSolver.cs:line 371 at Robust.Shared.Threading.ParallelManager.InternalParallelJob.Execute() in C:\Projects\space-station-14\RobustToolbox\Robust.Shared\Threading\ParallelManager.cs:line 231 at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
While debugging I have noticed that battery.SupplyRampTarget have some reasonable amount (assigned from unmet) but battery.LoadingNetworkDemand is 0 The only place where battery.LoadingNetworkDemand get zero is ClearBatteries which is called at the end of Tick So this is probably multihreading issue in
parallel.ProcessNow(_networkJob, group.Count);