Search Issue Tracker
Not Reproducible
Votes
1
Found in
2018.1.0a6
2018.1.0f2
Issue ID
1033579
Regression
Yes
Crash when trying to access null object in OnGUI() on GUI Button press
How to reproduce:
1. Open attached project ("case_1033579_repro.zip")
2. Enter play mode
3. Press "Process" button in the top left corner of the game screen
Expected result: NullReferenceException
Actual result: Unity crashes
Reproducible with - 2018.2.0b3, 2018.1.0f2, 2018.1.0a6
Not reproducible with - 2018.1.0a5, 2017.4.2f2, 2017.2.3f1, 2017.1.3p4
Verified in: 2018.2.0b6
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
- Crash on EnsureUniqueSiblingName when calling GameObjectUtility.EnsureUniqueNameForSibling() with a null argument
- Changes are not applied when selecting Platform settings for Plugins
- Particle System only collides with one Terrain Collider at a time when Collision Type is set to 'World'
- Editor crashes on StoredGraphicsBuffer::GetGfxBufferID when VFX Graph property is modified during Play Mode and Application.targetFrameRate is used to limit FPS
- Crash on NVAPI_Thunk when changing Player resolution while HDR display is used and Direct3D12 is set as the graphics API
Yecats
Sep 16, 2018 15:44
To clarify - unhandled exception within ONGUI
Yecats
Sep 16, 2018 15:44
I'm surprised you can't reproduce this. In my experience, Unity will crash if there's any unhandled exception - every single time. I've seen this on 2018.2.0f2.