Search Issue Tracker
Fixed in 5.0.X
Votes
0
Found in
5.0.0b1
Issue ID
628487
Regression
No
<GetComponent<SphereCollider>().isTrigger = true> crashes Unity on Windows
To reproduce this bug:
1. Open the attached project
2. Open 'Enemy attacking NPC' scene
3. Press play
4. Stop the scene
5. Unity crashes
6. Open project again and open 'AdvancedAiEnemy' script
7. In Start() method, disable <GetComponent<SphereCollider>().isTrigger = true> line
8. Repeat 3-4 steps again and Unity does not crash
It does not crash on MacOS, instead you get this error:
m_InstanceID != 0
UnityEngine.Component:get_transform()
AdvancedAiEnemy:TriggerExit() (at Assets/Advanced AI/Scripts/AdvancedAiEnemy.cs:966)
IdleSphere:OnTriggerExit(Collider) (at Assets/Advanced AI/Scripts/IdleSphere.cs:54
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- UI Text color is incorrect when text is rendered on SubMeshUI
- "Invalid SortingGroup index set in Renderer" errors when making many modifications in same frame
- Crash on GizmoBufferSizeHistory::GetBuffer() when opening a specific scene
- RenderTexture is not initialized when it is set as Material's Texture
- Branch node outputs a random value instead of a constant on the false conditon
Add comment