Search Issue Tracker
Duplicate
Votes
0
Found in
2018.2.0a1
2018.3.0b1
Issue ID
1080204
Regression
Yes
Editor crashes in GUIStyle::GUIStyle when passing null into a new GUIStyle
To reproduce:
1. Open the attached project (GUIStyle Crash.zip)
2. Open the Sample Scene
3. Enter Play mode
Expected: the Editor doesn't crash
Reproduced in 2018.2.0a1, 2018.2.8f1, 2018.3.0b1
Did not reproduce 2018.1.9f2
Regression introduced in 2018.2.0a1
Comments (1)
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Leslie-Young
Sep 28, 2018 08:20
+1 to editor should not crash. This can cause problems for tools which do a FindStyle() which returns null after a Unity update removed the source style. I rather have a somewhat broken UI, with perhaps console error message from GUIStyle constructor, than a crash.
In my case this caused a crash in the 2018.3 beta
PropsPanel = new GUIStyle(GUI.skin.FindStyle("WindowBackground")) { padding = new RectOffset(0, 0, 0, 0) };