Search Issue Tracker
Fixed in 5.1.4
Votes
17
Found in
5.0.0f4
Issue ID
682891
Regression
No
Method WheelCollider.GetGroundHit and terrain changes causes unity crash
Sometimes method WheelCollider.GetGroundHit crashes unity if terrain height is changed, I'm still not sure for real cause.
1. Play scene "terrainbug".
2. Driver anywhere you like :D, after 15 second script "TerrainDeform" (attached on car) will begin spawn holes in terrain with 1 second interval.
3. Unity crash times can variate from 2 second to few minutes, but eventually it crashes.
Reproduced: 5.0.0b2, 5.0.0f4, 5.0.0b15
The fix available in 5.1.3p1 a patch release. Officially will be available in 5.1.4f1;
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
hazer-drum
Sep 11, 2015 18:54
I have the same problem in 5.1.3f1 with error "m_InstanceID != 0".
leevermeulen
Aug 30, 2015 21:09
I am still getting this crash in Unity 5.1.3p1
001E3BFA (Maximum) ScriptingManager::RebuildClassIDToScriptingClass
001E3C81 (Maximum) Scripting::ScriptingWrapperFor
003FC833 (Maximum) RegisterModule_Physics
04346A27 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.WheelCollider:GetGroundHit (UnityEngine.WheelHit&)
0437F5F9 (Mono JIT Code) RTCTankController:SmokeInstantiateRate ()
0437DE97 (Mono JIT Code) RTCTankController:FixedUpdate ()
0429E571 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
Happening when my tank vehicle goes over destructible game objects and they are removed
.koval
Jul 18, 2015 21:18
"A fix will come later in 5.x."
The same for Unity v5.1.2f1 :(
NeilC_VP
Jul 15, 2015 10:24
We've just had this issue too on 5.1.1p2. GetGroundHit is being called from FixedUpdate.
013E3E3A (Champ test) ScriptingManager::RebuildClassIDToScriptingClass
013E3EC1 (Champ test) Scripting::ScriptingWrapperFor
015FBC53 (Champ test) RegisterModule_Physics
04CCF12F (Mono JIT Code) (wrapper managed-to-native) UnityEngine.WheelCollider:GetGroundHit (UnityEngine.WheelHit&)
glitchers
Jul 06, 2015 08:46
I have the same issue as De-Panther & Phong.
Phong
Jun 15, 2015 18:45
Same problem with CubeCollider as described by DE-PANTHER.
De-Panther
Jun 06, 2015 22:32
Also happen with box collider or any other collider that destroyed while the wheelcollider touch it.
Simple example:
Use Edy's Vehicle Physics,
Take a car and put it above cube,
Run the game and destroy the cube while the car is on the cube.
Unity crash!
dburden1
Apr 17, 2015 16:44
I can confirm that we have this crash as well on 5.0.1p1, and it doesn't always crash when a WheelCollider is even touching the terrain collision. Terrain modification is a pretty crucial part of our game's back-end. Is there any ETA on a fix for this? Also, would modifying terrain heights in FixedUpdate vs Update be an effective workaround for this issue?
yant
Apr 14, 2015 13:57
Don't change terrain from within Update(). A better way to do that would be to have it within FixedUpdate(). A fix will come later in 5.x.
protopod
Apr 07, 2015 16:05
Yep, the same thing happens to me. The vehicle just drives through the raised terrain like it's not even there, without falling through it, then Unity crashes.