Unfortunately, the fix for this issue didn't land before the last 2023.2 patch.
Closing, as this Unity version will no longer be getting updates.
We will not backport the fix here as by design one should not connect rigidbodies from two different scenes via a joint. In Unity 6 and later this is explicitly disallowed.
Due to the changes required to backport from Unity 6 backwards, 2021LTS is out of scope. The rule of thumb should be that one should not try to use joints with rigidbodies across different physics scenes.
Reproduction steps:
1. Open the attached “repro-project“
2. Open the “Assets/Scenes/SampleScene.unity“ scene
3. Enter Play Mode
4. Observe the crash
Reproduced on: Windows 10 Pro
Not reproducible on: No other environment tested
Notes:
1. The crash occurs when calling the Simulate(Time.fixedDeltaTime) method
2. The stack traces slightly vary across different streams of Unity
3. Not reproducible in Player
First few lines of the stack trace:
0x00007FF6C7B7A23B (Unity) physx::IG::IslandSim::addConnectionToGraph
0x00007FF6C7B81011 (Unity) physx::IG::IslandSim::insertNewEdges
0x00007FF6C7B83589 (Unity) physx::IG::IslandSim::processNewEdges
0x00007FF6C7B7E94E (Unity) physx::IG::SimpleIslandManager::firstPassIslandGen
0x00007FF6C7AC7D12 (Unity) physx::Cm::BaseTask::run
Prioritise and Follow this issue
Have a workaround or additional info about this issue?