Obi Official Forum
Async load scenes that has Obi rope, crash? - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: Async load scenes that has Obi rope, crash? (/thread-3915.html)



Async load scenes that has Obi rope, crash? - lacasrac - 17-06-2023

Obi rope worked like a charm in my big scene.
Finally I decided to break up my big scene into small ones. (a script cut my big scene into small ones)
After this I just call Async load/unload that scenes. And my probleme is:

++ LoadSceneSectorAsyncCoroutine _SCENE_SECTOR_Factory ...
Crash!!!

in that SCENE I have an Obi rope.

System.IndexOutOfRangeException: Index {0} is out of range of '{1}' Length.

Can you help me what is wrong? Did you tried with a scene that has an Obi rope with AsyncLoad?

Thanks,
Leslie



UPDATE:

full stack trace:


System.IndexOutOfRangeException: Index {0} is out of range of '{1}' Length.
This Exception was thrown from a job compiled with Burst, which has limited exception support.
0x00007ff9e2b29eac (f93dc2e89d393e9066f1a32ffe0f717) Unity.Jobs.IJobParallelForExtensions.ParallelForJobStruct`1<Obi.BurstColliderWorld.IdentifyMovingColliders>.Execute(ref Obi.BurstColliderWorld.IdentifyMovingColliders jobData, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, ref Unity.Jobs.LowLevel.Unsafe.JobRanges ranges, int jobIndex) -> void_73c04fea4d034adcf3d7ccb459d2c985 from UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null (at D:/UnityProjects/ProjectNULL2022_NEW/Library/PackageCache/com.unity.burst@1.8.4/.Runtime/unknown/unknown:0)
0x00007ff9e2b291b6 (f93dc2e89d393e9066f1a32ffe0f717) 66ae0ec97032d678ba0cf3bcb6ddfa20
0x00007ff78f600c1c (Unity) ExecuteJob
0x00007ff78f600f84 (Unity) ExecuteJobCopyData
0x00007ff78f601c9f (Unity) ForwardJobForEachToManaged
0x00007ff78f5fde6e (Unity) ujob_execute_job
0x00007ff78f5fd324 (Unity) lane_guts
0x00007ff78f5ffe84 (Unity) worker_thread_routine
0x00007ff78f82d817 (Unity) Thread::RunThreadWrapper
0x00007ffa2dc226ad (KERNEL32) BaseThreadInitThunk
0x00007ffa2fcaa9f8 (ntdll) RtlUserThreadStart


RE: Async load scenes that has Obi rope, crash? - josemendez - 19-06-2023

Hi there,

Just tried loading a scene asynchronously, but wasn't able to reproduce this. Which Unity and Obi versions are you using?


RE: Async load scenes that has Obi rope, crash? - lacasrac - 19-06-2023

(19-06-2023, 06:41 AM)josemendez Wrote: Hi there,

Just tried loading a scene asynchronously, but wasn't able to reproduce this. Which Unity and Obi versions are you using?

Where can I find the version number?

The bigger probleme is that the rope is moving left from right very fast in AsyncLoad and after some seconds calm down

In my big scene I don1t I experienced this behaviour


RE: Async load scenes that has Obi rope, crash? - josemendez - 20-06-2023

(19-06-2023, 04:04 PM)lacasrac Wrote: Where can I find the version number?

Same as with all assets: In your asset store account, or the package manager. You can also it in the Obi/CHANGELOG_rope.txt file, it's the version at the top of the file.

(19-06-2023, 04:04 PM)lacasrac Wrote: The bigger probleme is that the rope is moving left from right very fast in AsyncLoad and after some seconds calm down

In my big scene I don1t I experienced this behaviour

If your rope is attached to colliders/rigidbodies, make sure these are part of the same scene. If you load them separately, the rope will have no object to attach to and behavior of the simulation will be different.

Other than that, I can't think of a reason why the rope would behave differently depending on how you load the scene. If the issue persists, I'd have to take a closer look at the project to figure out what could be the culprit. In this case you can send the project (or a stripped down version of it) to support(at)virtualmethodstudio.com and I'll take a look at it.

kind regards