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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Add comment