freezy / VisualPinball.Engine

:video_game: Visual Pinball Engine for Unity
https://docs.visualpinball.org
GNU General Public License v3.0
396 stars 62 forks source link

InvalidOperationException: System.IndexOutOfRangeException: #452

Open shntat opened 1 year ago

shntat commented 1 year ago

InvalidOperationException: System.IndexOutOfRangeException: Index {0} is out of range in DynamicBuffer of '{1}' Length. This Exception was thrown from a function compiled with Burst, which has limited exception support. 0x00007ff9c8921d61 (ab189054d47eefa5792d9f1eca0f65a) [unknown:0] VisualPinball.Unity.BallSpinHackSystem/VisualPinball.Unity.OnUpdate_LambdaJob0::VisualPinball.Unity.BallSpinHackSystem.VisualPinball.Unity.OnUpdate_LambdaJob0.IterateEntities 0x00007ff9c892156f (ab189054d47eefa5792d9f1eca0f65a) [IJobChunk.cs:184] Unity.Entities.JobChunkExtensions.RunWithoutJobs 0x00007ff9c8921009 (ab189054d47eefa5792d9f1eca0f65a) 4AD3492990CD63F9 0x000001d6b0a04775 (Mono JIT Code) (wrapper managed-to-native) object:wrapper_native_000001D6AA480F80 (Unity.Entities.ArchetypeChunkIterator,void) 0x000001d6b994e5f8 (Mono JIT Code) [LambdaJobDescription.cs:391] Unity.Entities.InternalCompilerInterface:RunJobChunk<VisualPinball.Unity.BallSpinHackSystem/VisualPinball.Unity.<>cDisplayClass_OnUpdate_LambdaJob0> (VisualPinball.Unity.BallSpinHackSystem/VisualPinball.Unity.<>cDisplayClass_OnUpdate_LambdaJob0&,Unity.Entities.EntityQuery,Unity.Entities.InternalCompilerInterface/JobChunkRunWithoutJobSystemDelegate) 0x000001d6b994e1b3 (Mono JIT Code) [BallSpinHackSystem.cs:29] VisualPinball.Unity.BallSpinHackSystem:OnUpdate () 0x000001d6b7490237 (Mono JIT Code) [SystemBase.cs:401] Unity.Entities.SystemBase:Update () 0x000001d6b990985b (Mono JIT Code) [SimulateCycleSystemGroup.cs:150] VisualPinball.Unity.SimulateCycleSystemGroup:UpdateCycle () 0x000001d6b99096db (Mono JIT Code) [SimulateCycleSystemGroup.cs:118] VisualPinball.Unity.SimulateCycleSystemGroup:OnUpdate () 0x000001d6b7425e16 (Mono JIT Code) [ComponentSystem.cs:115] Unity.Entities.ComponentSystem:Update () 0x000001d6b74cf5a0 (Mono JIT Code) [VisualPinballSimulationSystemGroup.cs:115] VisualPinball.Unity.VisualPinballSimulationSystemGroup:OnUpdate () 0x000001d6b7425e16 (Mono JIT Code) [ComponentSystem.cs:115] Unity.Entities.ComponentSystem:Update () 0x000001d6b7426f44 (Mono JIT Code) [ComponentSystemGroup.cs:474] Unity.Entities.ComponentSystemGroup:UpdateAllSystems () 0x000001d6b7426a13 (Mono JIT Code) [ComponentSystemGroup.cs:417] Unity.Entities.ComponentSystemGroup:OnUpdate () 0x000001d6b7425e16 (Mono JIT Code) [ComponentSystem.cs:115] Unity.Entities.ComponentSystem:Update () 0x000001d6b7425c1d (Mono JIT Code) [ScriptBehaviourUpdateOrder.cs:335] Unity.Entities.ScriptBehaviourUpdateOrder/DummyDelegateWrapper:TriggerUpdate () 0x000001d6ba06a398 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_voidthis (object,intptr,intptr,intptr) 0x00007ff9a216e0a4 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke 0x00007ff9a20ae744 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke 0x00007ff9a20ae8dc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke 0x00007ff7cc17ecf4 (Unity) scripting_method_invoke 0x00007ff7cc179914 (Unity) ScriptingInvocation::Invoke 0x00007ff7cbe40215 (Unity) ExecutePlayerLoop 0x00007ff7cbe40233 (Unity) ExecutePlayerLoop 0x00007ff7cbe45e79 (Unity) PlayerLoop 0x00007ff7ccd85b78 (Unity) PlayerLoopController::UpdateScene 0x00007ff7ccd83d5f (Unity) Application::TickTimer 0x00007ff7cd1cbf7a (Unity) MainMessageLoop 0x00007ff7cd1d084b (Unity) WinMain 0x00007ff7ce4f1d4e (Unity) __scrt_common_main_seh 0x00007ffa288926bd (KERNEL32) BaseThreadInitThunk 0x00007ffa299cdfb8 (ntdll) RtlUserThreadStart

Unity.Entities.InternalCompilerInterface.RunJobChunk[T] (T& jobData, Unity.Entities.EntityQuery query, Unity.Entities.InternalCompilerInterface+JobChunkRunWithoutJobSystemDelegate functionPointer) (at Library/PackageCache/com.unity.entities@0.17.0-preview.42/Unity.Entities/CodeGeneratedJobForEach/LambdaJobDescription.cs:390) VisualPinball.Unity.BallSpinHackSystem.OnUpdate () (at Library/PackageCache/org.visualpinball.engine.unity@0.0.1-preview.123/VisualPinball.Unity/VisualPinball.Unity/VPT/Ball/BallSpinHackSystem.cs:29) Unity.Entities.SystemBase.Update () (at Library/PackageCache/com.unity.entities@0.17.0-preview.42/Unity.Entities/SystemBase.cs:412) VisualPinball.Unity.SimulateCycleSystemGroup.UpdateCycle () (at Library/PackageCache/org.visualpinball.engine.unity@0.0.1-preview.123/VisualPinball.Unity/VisualPinball.Unity/Physics/SystemGroup/SimulateCycleSystemGroup.cs:148) VisualPinball.Unity.SimulateCycleSystemGroup.OnUpdate () (at Library/PackageCache/org.visualpinball.engine.unity@0.0.1-preview.123/VisualPinball.Unity/VisualPinball.Unity/Physics/SystemGroup/SimulateCycleSystemGroup.cs:111) Unity.Entities.ComponentSystem.Update () (at Library/PackageCache/com.unity.entities@0.17.0-preview.42/Unity.Entities/ComponentSystem.cs:114) VisualPinball.Unity.VisualPinballSimulationSystemGroup.OnUpdate () (at Library/PackageCache/org.visualpinball.engine.unity@0.0.1-preview.123/VisualPinball.Unity/VisualPinball.Unity/Game/VisualPinballSimulationSystemGroup.cs:112) Unity.Entities.ComponentSystem.Update () (at Library/PackageCache/com.unity.entities@0.17.0-preview.42/Unity.Entities/ComponentSystem.cs:114) Unity.Entities.ComponentSystemGroup.UpdateAllSystems () (at Library/PackageCache/com.unity.entities@0.17.0-preview.42/Unity.Entities/ComponentSystemGroup.cs:472) UnityEngine.Debug:LogException(Exception) Unity.Debug:LogException(Exception) (at Library/PackageCache/com.unity.entities@0.17.0-preview.42/Unity.Entities/Stubs/Unity/Debug.cs:19) Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at Library/PackageCache/com.unity.entities@0.17.0-preview.42/Unity.Entities/ComponentSystemGroup.cs:477) Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/com.unity.entities@0.17.0-preview.42/Unity.Entities/ComponentSystemGroup.cs:417) Unity.Entities.ComponentSystem:Update() (at Library/PackageCache/com.unity.entities@0.17.0-preview.42/Unity.Entities/ComponentSystem.cs:114) Unity.Entities.DummyDelegateWrapper:TriggerUpdate() (at Library/PackageCache/com.unity.entities@0.17.0-preview.42/Unity.Entities/ScriptBehaviourUpdateOrder.cs:333)