Craxy / ToggleTrafficLights

Mod for Cities:Skylines. Tool to remove or add traffic lights at intersections.
Other
33 stars 10 forks source link

Exception: Not a valid NetNode [System.InvalidOperationException] in ToggleTraficLightsTool.RenderOverlay #14

Closed Craxy closed 9 years ago

Craxy commented 9 years ago

"But sometimes I get the following error:

Not a valid NetNode [System.InvalidOperationException] Details: No details System.InvalidOperationException: Not a valid NetNode at Craxy.CitiesSkylines.ToggleTrafficLights.Tools.ToggleTrafficLightsTool.GetNetNode () [0x00000] in :0 at Craxy.CitiesSkylines.ToggleTrafficLights.Tools.ToggleTrafficLightsTool.RenderOverlay (.CameraInfo cameraInfo) [0x00000] in :0 at ToolManager.EndOverlayImpl (.CameraInfo cameraInfo) [0x00000] in :0" (MayhemMike) "I tried to reproduce it today but it didn't come up a single time. But yesterday it seemed to happen randomly and there wasn't any noticeable effect besides the error popup." (MayhemMike)

Classic Threading error: SimulationStep and RenderOverlay run on different threads. Therefore it's possible for hoverInstance to change (via SimulationStep) while processing RenderOverlay