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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Add comment