0x00002a / DeadlyAccel

Repository for my DeadlyAccel SE mod: https://steamcommunity.com/workshop/filedetails/?id=2422178213
GNU General Public License v3.0
0 stars 0 forks source link

Server crash when joining #4

Closed serialtasted closed 2 years ago

serialtasted commented 2 years ago

Describe the bug The dedicated server crashes when a player joins

To Reproduce Steps to reproduce the behavior: 1-Create dedicated server with mod inside 2-Try to join 3-Read log

Expected behavior Well it should work

Logs Crash log on console:

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Natomic.DeadlyAccel.DeadlyAccelSession.OnPlayerDC(Int64 playerId)
   at Sandbox.Game.SingleKeyPlayerEvent.Invoke(Int64 playerId)
   at Sandbox.Game.Multiplayer.MyPlayerCollection.RemovePlayerFromDictionary(PlayerId playerId)
   at Sandbox.Game.Multiplayer.MyPlayerCollection.RemovePlayer(MyPlayer player, Boolean removeCharacter)
   at Sandbox.Game.AI.MyAIComponent.PerformBotRemovals()
   at Sandbox.Game.AI.MyAIComponent.UpdateAfterSimulation()
   at Sandbox.Game.World.MySession.UpdateComponents()
   at Sandbox.Game.World.MySession.Update(MyTimeSpan updateTime)
   at Sandbox.MySandboxGame.Update()
   at Sandbox.Engine.Platform.Game.UpdateInternal()
   at Sandbox.Engine.Platform.Game.RunSingleFrame()
   at Sandbox.Engine.Platform.FixedLoop.<>c__DisplayClass11_0.<Run>b__0()
   at Sandbox.Engine.Platform.GenericLoop.Run(VoidAction tickCallback)
   at Sandbox.Engine.Platform.Game.RunLoop()
   at Sandbox.MySandboxGame.Run(Boolean customRenderLoop, Action disposeSplashScreen)
   at Torch.VRageGame.DoStart() in C:\ProgramData\Jenkins\.jenkins\workspace\Torch_master\Torch\VRageGame.cs:line 316
   at Torch.VRageGame.Run() in C:\ProgramData\Jenkins\.jenkins\workspace\Torch_master\Torch\VRageGame.cs:line 123
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Natomic.DeadlyAccel.DeadlyAccelSession.OnPlayerDC(Int64 playerId)
   at Sandbox.Game.SingleKeyPlayerEvent.Invoke(Int64 playerId)
   at Sandbox.Game.Multiplayer.MyPlayerCollection.RemovePlayerFromDictionary(PlayerId playerId)
   at Sandbox.Game.Multiplayer.MyPlayerCollection.RemovePlayer(MyPlayer player, Boolean removeCharacter)
   at Sandbox.Game.AI.MyAIComponent.PerformBotRemovals()
   at Sandbox.Game.AI.MyAIComponent.UpdateAfterSimulation()
   at Sandbox.Game.World.MySession.UpdateComponents()
   at Sandbox.Game.World.MySession.Update(MyTimeSpan updateTime)
   at Sandbox.MySandboxGame.Update()
   at Sandbox.Engine.Platform.Game.UpdateInternal()
   at Sandbox.Engine.Platform.Game.RunSingleFrame()
   at Sandbox.Engine.Platform.FixedLoop.<>c__DisplayClass11_0.<Run>b__0()
   at Sandbox.Engine.Platform.GenericLoop.Run(VoidAction tickCallback)
   at Sandbox.Engine.Platform.Game.RunLoop()
   at Sandbox.MySandboxGame.Run(Boolean customRenderLoop, Action disposeSplashScreen)
   at Torch.VRageGame.DoStart() in C:\ProgramData\Jenkins\.jenkins\workspace\Torch_master\Torch\VRageGame.cs:line 316
   at Torch.VRageGame.Run() in C:\ProgramData\Jenkins\.jenkins\workspace\Torch_master\Torch\VRageGame.cs:line 123
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
0x00002a commented 2 years ago

Thanks for the report, I'll take a look

0x00002a commented 2 years ago

I'm having trouble reproducing this, the log suggests that the player was immediately disconnected; can the player join normally if you remove the mod? Also what torch plugins and/or other mods do you have installed?

serialtasted commented 2 years ago

Yes, we can join fine once the mod is removed

serialtasted commented 2 years ago

Torch Plugins:

SE Mods: (Big List incoming...) - Camera Panning - rotate camera view (+reset 1st person character view) - AiEnabled [Beta] - Planet Creature Spawner - Bigger Explosions - Scope Framework - Paint Gun - realistic painting for survival + special creative features - HUD Compass - AQD - LCD Image Extension - Build Vision 3.0 - More Pistons - Sleep Mod - AQD - Armored Thrusters - Cargo Fill Level LCDs - AQD - Conveyor Expansion - AQD - Banner LCDs - AQD - Armor Expansion - AQD - Vanilla Extension - Core - [QoL] Mechanical Keybinds - [QoL] Production Quota - GridPickupMod - AQD - Upgradeable Gyroscopes - AQD - Reinforced Windows - AQD - Small Grid Expansion - BuildInfo (extra block+terminal info, air leak finder) - Light Block Improvements - easy control panel access - GPS Distance Helper - Projections To Assembler - Faction Ownership Helper - Build Colors - Smarter Suit - Sneaky Sounds - Quieter Tools - Easy Control Button Access - AutoCloseDoors - Suit Toggles (while in a cockpit) - Klime - InFlightButtons - Klime - AutoRun - Klime - Clean Assembler Tab - TeamSpot - Tool Switcher - Autofill Bottles - Automatic Ore Pickup - AQD - Quality of Life - Core - Relative Top Speed - Critical Reactor Explosions - Jump Drive Critical Explosion - AQD - Combat Balance - Core - Definition Extension API - Rich HUD Master - Bot_spawner - Small Blocks as Static Grid - The Sun is not yellow - HUD - Modern and Fancy (Color) - [MES] Agaris at War - Does not work with the Ares Systen - Modular Encounters Systems - Text HUD API - Water Mod Dev (3.0 Physics Overhaul) - [AaW] Planet Agaris with roads - (AR) Armored Windows - (AR) Ceramic Armor - (AR) Cooling System - (AR) Frames (completed) - (AR) Furnace - (AR) Offset Air Vent - (AR) Round Windows - (AR) Wheel 7x7 - (AR) Wind & Solar Energy - (AR) Windows Wall - (DX11) Shutter - (Z) 7x7 15x15 Lifted Wheel Suspension - (Z) Lifted Wheel Suspension - Abandoned Settlements - Advanced Welding - detaching and reattaching blocks! - Aerodynamic Physics - Aerodynamic Wings - blocks for planet atmosphere - Air Traffic - Alarms, SFX, and Ambiences of the A L I E N Franchise - AQD - Combat Balance - AQD - Concrete - AQD - Emissive Colors - AQD - No Armor Edges - AQD - Quality of Life - AQD - Sleek Corridors - AQD - Vanilla Extension - AQD - Vanilla Ore Distribution - Aryx Weapon Enterprises [WeaponCore] - AwwScrap: I Found Your Crap! - AwwScrap - BalCorp - Letters SE Font (up to 3x3) - BalCorp - Sticker Parts - Block Combinations V2 - Ceiling Lights V3.0 - SEDE - Chillz Floor Pack - Clean Freak - ColorPix Pixel Font + Image Converter - Concrete Tool - placing voxels in survival - Corner LCD Information - Corruption - PvE Combat - No Hacker - Cover Walls - Expanded - Coupling Blocks - Defense Shields - v2.0(38) - Designer-Pack - Disable vanilla paint input - Dot Matrix font - DoorsRemasterd - Easy Block Renaming - Eat. Drink. Sleep. Repeat! - Editable Enemy Hacking Speed - Fast Cargo Ship Spawn Rate - Gear Blocks - GLaDOS Voice HUD replacement mod - Grated Catwalks Expansion - Harpoon (Rope) - High-power Spotlight - Hollow Planet Clean-Up - Hostile Takeover - Hydrodgen Vent/Dump - Improved Interior Turrets - Kinetic Devastation - KK91 - Wind Turbine Damage From Strong Winds - Laser Antenna Grid Firmware - Life'Tech-Algaetechnology (Eng/De/Es) - Life'Tech-Powers (Eng/Esp/De) - Life'Tech_LCD Console - Long Range Searchlight - MA Panel Hinge - MA Pole Parts - Medium LCD Panel for Large Grids - MES - Earthlike animals - More Beams - More Loot & Lootboxes - More NPC Encounters V6 - Rival Ai (Now with NPCs for Water Mod) - MorePassages [WIP] - No More Free Energy! - No Player Angular Damping - NorthWind Weapons - NPC Programming Extender - PassageIntersections - Perpetually Perturbed Pirates - Pipelines - Piston Head Tools - Plant and Cook - Pressurize Your Room! - Railing Button Panel - RB - Piston Pack (Small & Large Grid) - Reavers: Terror of the Verse - Rebels Lights 1.2.01 - Reduced Signals - Refill Station - Robot Raider Pods - Rust Mechanics - Sci Fi Button Images - SE - Font Mod - SE MiniMap (RADAR) - Ship AI Voice Basic - Skimt's SolarMap Mod - Slope LCD Panels Redux - Slow Backpacks - Small Advanced Rotor - Small Grid Cryo Gone Large - Smooth Voxels - Spacebar Bridge Consoles - Split Stairs & Ramps With Railings - SEDE - Stairs & Ramps With Railings - SEDE - Stamina - Store Block - Create your own Trade Station - Suppress Vanilla Cargo Ships - Surface Occupation - Survival Kit Only Heals - Survival... Less Likely Re-Modified - Tiny LCD Panels for Large Grids - UfoL's Bullet Trails (Tracers) - Orange - UOH | LetterMod v1.2 - USEA Programmable block - U_Window_IRP - Vanilla Radar Antenna Dish Extended - VCZ Multifloor Elevator 1.199 Fix - Vessapaperi's LCD Signs - Victims of Clang - Wall Mount Battery - A Single PowerCell Solution for Survival - Wave Spawner (Space) - WeaponCore - 2.2(12)-Stable - WeaponCore - Replace Vanilla Weapons - Weather Improvements - Window Doors - Welder Eyestrain Reduction - Zardos Connector Passageway - [CRD] Scaffolding Repack - [Mafoo] More LCDs - [Mexpex] MWI - Homing Weaponry (23) - [QoL] Build Helper - [QoL] Radio Spectrometry
0x00002a commented 2 years ago

I've pushed a new version that should *hopefully* fix this, I couldn't fully reproduce your issue but I found at least 1 bug and the mod certainly shouldn't be crashing the entire server after startup so that should also be fixed.

Please let me know if the issue still persists for you

serialtasted commented 2 years ago

It has been fixed! Thank you for the great work