Facepunch / sbox-sdf

Library providing marching cubes / squares mesh generation
MIT License
16 stars 7 forks source link

Resource is sometimes null in EnsureLayerExists, causing an error #32

Open trundlr opened 3 months ago

trundlr commented 3 months ago
Value cannot be null. (Parameter 'key')
System.ThrowHelper.ThrowArgumentNullException
System.Collections.Generic.Dictionary`2.FindValue
Sandbox.Sdf.SdfWorld`6.EnsureLayerExists(SdfWorld.cs:487)
Sandbox.Sdf.SdfWorld`6.AddAsync(SdfWorld.cs:511)
Sandbox.Sdf.SdfWorld`6.ReadRange(SdfWorld.cs:318)
Sandbox.Sdf.SdfWorld`6.Read(SdfWorld.cs:298)
Sandbox.Sdf.SdfWorld`6+<>c__DisplayClass8_0.<Rpc_SendModifications>b__0(SdfWorld.Network.cs:62)
Sandbox.Rpc.Resume(Rpc.cs:85)

This error seems to be quite rare: image

trundlr commented 2 months ago

https://sbox.game/apetavern/grubs/errors/view/501f547fb3163ae00f6addfec980180946e0a62af785497f8f9943ad621f9e78

This has happened again!