Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Unity 2022.3.1f1 crash with Obi
#1
Hey,

I upgraded to Unity 2022.3.1f1 LTS yesterday and was using 2022.3.0f1 before without any issues. After the upgrade, when I am in play mode and while playing the game with Obi Rope implementation, I am getting random Unity crashes. Crash logs suggest something related to Obi. Any solution would be great.

Thanks.

Code:
Obtained 35 stack frames
0x00007ff6ef1d7729 (Unity) ScheduleManagedJob
0x00007ff6ee6bcced (Unity) JobsUtility_CUSTOM_Schedule_Injected
0x000002660546b53c (Mono JIT Code) (wrapper managed-to-native) Unity.Jobs.LowLevel.Unsafe.JobsUtility:Schedule_Injected (Unity.Jobs.LowLevel.Unsafe.JobsUtility/JobScheduleParameters&,Unity.Jobs.JobHandle&)
0x000002660546b363 (Mono JIT Code) Unity.Jobs.LowLevel.Unsafe.JobsUtility:Schedule (Unity.Jobs.LowLevel.Unsafe.JobsUtility/JobScheduleParameters&)
0x00000266056877e3 (Mono JIT Code) Unity.Jobs.IJobExtensions:Schedule<Obi.BurstColliderCollisionConstraintsBatch/CollisionConstraintsBatchJob> (Obi.BurstColliderCollisionConstraintsBatch/CollisionConstraintsBatchJob,Unity.Jobs.JobHandle)
0x0000026605687493 (Mono JIT Code) Obi.BurstColliderCollisionConstraintsBatch:Evaluate (Unity.Jobs.JobHandle,single,single,int) (at C:/Users/Aderae/blossom/Assets/Obi/Scripts/Common/Backends/Burst/Constraints/ColliderCollision/BurstColliderCollisionConstraintsBatch.cs:83)
0x000002660567ab6b (Mono JIT Code) Obi.BurstConstraintsImpl`1<T_REF>:EvaluateSequential (Unity.Jobs.JobHandle,single,single,int) (at C:/Users/Aderae/blossom/Assets/Obi/Scripts/Common/Backends/Burst/Constraints/BurstConstraintsImpl.cs:113)
0x000002660567a56d (Mono JIT Code) Obi.BurstConstraintsImpl`1<T_REF>:Project (Unity.Jobs.JobHandle,single,single,int) (at C:/Users/Aderae/blossom/Assets/Obi/Scripts/Common/Backends/Burst/Constraints/BurstConstraintsImpl.cs:93)
0x000002660567d0de (Mono JIT Code) Obi.BurstSolverImpl:ApplyConstraints (Unity.Jobs.JobHandle,single,single,int) (at C:/Users/Aderae/blossom/Assets/Obi/Scripts/Common/Backends/Burst/Solver/BurstSolverImpl.cs:854)
0x0000026605678763 (Mono JIT Code) Obi.BurstSolverImpl:Substep (single,single,int) (at C:/Users/Aderae/blossom/Assets/Obi/Scripts/Common/Backends/Burst/Solver/BurstSolverImpl.cs:737)
0x0000026605675b11 (Mono JIT Code) Obi.ObiSolver:Substep (single,single,int) (at C:/Users/Aderae/blossom/Assets/Obi/Scripts/Common/Solver/ObiSolver.cs:1594)
0x00000266053ac383 (Mono JIT Code) Obi.ObiUpdater:Substep (single,single,int) (at C:/Users/Aderae/blossom/Assets/Obi/Scripts/Common/Updaters/ObiUpdater.cs:91)
0x00000266053a5853 (Mono JIT Code) Obi.ObiFixedUpdater:FixedUpdate () (at C:/Users/Aderae/blossom/Assets/Obi/Scripts/Common/Updaters/ObiFixedUpdater.cs:52)
0x0000026606b81088 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007ff948aee084 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ff948a2eb84 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ff948a2ed1c (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
0x00007ff6ef5b0b14 (Unity) scripting_method_invoke
0x00007ff6ef58f794 (Unity) ScriptingInvocation::Invoke
0x00007ff6ef576db4 (Unity) MonoBehaviour::CallMethodIfAvailable
0x00007ff6ef576eda (Unity) MonoBehaviour::CallUpdateMethod
0x00007ff6ef011f6b (Unity) BaseBehaviourManager::CommonUpdate<FixedBehaviourManager>
0x00007ff6ef0197da (Unity) FixedBehaviourManager::Update
0x00007ff6ef248b66 (Unity) `InitPlayerLoopCallbacks'::`2'::FixedUpdateScriptRunBehaviourFixedUpdateRegistrator::Forward
0x00007ff6ef22855a (Unity) ExecutePlayerLoop
0x00007ff6ef2286e6 (Unity) ExecutePlayerLoop
0x00007ff6ef22ef35 (Unity) PlayerLoop
0x00007ff6f01e78ff (Unity) PlayerLoopController::InternalUpdateScene
0x00007ff6f01f44dd (Unity) PlayerLoopController::UpdateSceneIfNeededFromMainLoop
0x00007ff6f01f27e1 (Unity) Application::TickTimer
0x00007ff6f0664bea (Unity) MainMessageLoop
0x00007ff6f0669bf0 (Unity) WinMain
0x00007ff6f1a4e32e (Unity) __scrt_common_main_seh
0x00007ff9c6c326ad (KERNEL32) BaseThreadInitThunk
0x00007ff9c866a9f8 (ntdll) RtlUserThreadStart
Reply
#2
(13-06-2023, 03:29 PM)aderae Wrote: Hey,

I upgraded to Unity 2022.3.1f1 LTS yesterday and was using 2022.3.0f1 before without any issues. After the upgrade, when I am in play mode and while playing the game with Obi Rope implementation, I am getting random Unity crashes. Crash logs suggest something related to Obi. Any solution would be great.

Thanks.

Code:
Obtained 35 stack frames
0x00007ff6ef1d7729 (Unity) ScheduleManagedJob
0x00007ff6ee6bcced (Unity) JobsUtility_CUSTOM_Schedule_Injected
0x000002660546b53c (Mono JIT Code) (wrapper managed-to-native) Unity.Jobs.LowLevel.Unsafe.JobsUtility:Schedule_Injected (Unity.Jobs.LowLevel.Unsafe.JobsUtility/JobScheduleParameters&,Unity.Jobs.JobHandle&)
0x000002660546b363 (Mono JIT Code) Unity.Jobs.LowLevel.Unsafe.JobsUtility:Schedule (Unity.Jobs.LowLevel.Unsafe.JobsUtility/JobScheduleParameters&)
0x00000266056877e3 (Mono JIT Code) Unity.Jobs.IJobExtensions:Schedule<Obi.BurstColliderCollisionConstraintsBatch/CollisionConstraintsBatchJob> (Obi.BurstColliderCollisionConstraintsBatch/CollisionConstraintsBatchJob,Unity.Jobs.JobHandle)
0x0000026605687493 (Mono JIT Code) Obi.BurstColliderCollisionConstraintsBatch:Evaluate (Unity.Jobs.JobHandle,single,single,int) (at C:/Users/Aderae/blossom/Assets/Obi/Scripts/Common/Backends/Burst/Constraints/ColliderCollision/BurstColliderCollisionConstraintsBatch.cs:83)
0x000002660567ab6b (Mono JIT Code) Obi.BurstConstraintsImpl`1<T_REF>:EvaluateSequential (Unity.Jobs.JobHandle,single,single,int) (at C:/Users/Aderae/blossom/Assets/Obi/Scripts/Common/Backends/Burst/Constraints/BurstConstraintsImpl.cs:113)
0x000002660567a56d (Mono JIT Code) Obi.BurstConstraintsImpl`1<T_REF>:Project (Unity.Jobs.JobHandle,single,single,int) (at C:/Users/Aderae/blossom/Assets/Obi/Scripts/Common/Backends/Burst/Constraints/BurstConstraintsImpl.cs:93)
0x000002660567d0de (Mono JIT Code) Obi.BurstSolverImpl:ApplyConstraints (Unity.Jobs.JobHandle,single,single,int) (at C:/Users/Aderae/blossom/Assets/Obi/Scripts/Common/Backends/Burst/Solver/BurstSolverImpl.cs:854)
0x0000026605678763 (Mono JIT Code) Obi.BurstSolverImpl:Substep (single,single,int) (at C:/Users/Aderae/blossom/Assets/Obi/Scripts/Common/Backends/Burst/Solver/BurstSolverImpl.cs:737)
0x0000026605675b11 (Mono JIT Code) Obi.ObiSolver:Substep (single,single,int) (at C:/Users/Aderae/blossom/Assets/Obi/Scripts/Common/Solver/ObiSolver.cs:1594)
0x00000266053ac383 (Mono JIT Code) Obi.ObiUpdater:Substep (single,single,int) (at C:/Users/Aderae/blossom/Assets/Obi/Scripts/Common/Updaters/ObiUpdater.cs:91)
0x00000266053a5853 (Mono JIT Code) Obi.ObiFixedUpdater:FixedUpdate () (at C:/Users/Aderae/blossom/Assets/Obi/Scripts/Common/Updaters/ObiFixedUpdater.cs:52)
0x0000026606b81088 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007ff948aee084 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ff948a2eb84 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ff948a2ed1c (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
0x00007ff6ef5b0b14 (Unity) scripting_method_invoke
0x00007ff6ef58f794 (Unity) ScriptingInvocation::Invoke
0x00007ff6ef576db4 (Unity) MonoBehaviour::CallMethodIfAvailable
0x00007ff6ef576eda (Unity) MonoBehaviour::CallUpdateMethod
0x00007ff6ef011f6b (Unity) BaseBehaviourManager::CommonUpdate<FixedBehaviourManager>
0x00007ff6ef0197da (Unity) FixedBehaviourManager::Update
0x00007ff6ef248b66 (Unity) `InitPlayerLoopCallbacks'::`2'::FixedUpdateScriptRunBehaviourFixedUpdateRegistrator::Forward
0x00007ff6ef22855a (Unity) ExecutePlayerLoop
0x00007ff6ef2286e6 (Unity) ExecutePlayerLoop
0x00007ff6ef22ef35 (Unity) PlayerLoop
0x00007ff6f01e78ff (Unity) PlayerLoopController::InternalUpdateScene
0x00007ff6f01f44dd (Unity) PlayerLoopController::UpdateSceneIfNeededFromMainLoop
0x00007ff6f01f27e1 (Unity) Application::TickTimer
0x00007ff6f0664bea (Unity) MainMessageLoop
0x00007ff6f0669bf0 (Unity) WinMain
0x00007ff6f1a4e32e (Unity) __scrt_common_main_seh
0x00007ff9c6c326ad (KERNEL32) BaseThreadInitThunk
0x00007ff9c866a9f8 (ntdll) RtlUserThreadStart

Hi,

This seems unrelated to Obi. The crash happens inside Unity’s job scheduling system, which isn’t a part of Obi although it is used by it.

I’d suggest posting in the Unity forums, since we can’t do anything to fix this unless the crash happens in Obi’s code.

Kind regards,
Reply
#3
(14-06-2023, 06:46 PM)josemendez Wrote: Hi,

This seems unrelated to Obi. The crash happens inside Unity’s job scheduling system, which isn’t a part of Obi although it is used by it.

I’d suggest posting in the Unity forums, since we can’t do anything to fix this unless the crash happens in Obi’s code.

Kind regards,

However, after upgrading to 2022.3LTS I'm getting errors regarding Unity Collections

Assets\Obi\Scripts\Common\Backends\Burst\DataStructures\NativeMultilevelGrid.cs(34,13): error CS0305: Using the generic type 'UnsafeList<T>' requires 1 type arguments
Assets\Obi\Scripts\Common\Backends\Burst\DataStructures\NativeMultilevelGrid.cs(88,36): error CS8377: The type 'NativeMultilevelGrid<T>.Cell<T>' must be a non-nullable value type, along with all fields at any level of nesting, in order to use it as parameter 'T' in the generic type or method 'NativeList<T>'

Any idea?
Reply
#4
(15-06-2023, 09:55 PM)manurocker95 Wrote: However, after upgrading to 2022.3LTS I'm getting errors regarding Unity Collections

Assets\Obi\Scripts\Common\Backends\Burst\DataStructures\NativeMultilevelGrid.cs(34,13): error CS0305: Using the generic type 'UnsafeList<T>' requires 1 type arguments
Assets\Obi\Scripts\Common\Backends\Burst\DataStructures\NativeMultilevelGrid.cs(88,36): error CS8377: The type 'NativeMultilevelGrid<T>.Cell<T>' must be a non-nullable value type, along with all fields at any level of nesting, in order to use it as parameter 'T' in the generic type or method 'NativeList<T>'

Any idea?

Hi there,

This is due to the latest version of the Collections package. If you're using a Obi version older than 6.5, you'll need to adjust NativeMultilevelGrid. See:
http://obi.virtualmethodstudio.com/forum...l#pid13938

kind regards,
Reply