Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.2.0f2
Issue ID
1058371
Regression
No
[OSX StackOverflowExceptions cause crash
[UPDATED]
To be clear, this affects only users that have an actual StackOverflow exception in their own code.
I've isolated the crash to: any StackOverflow exception being thrown while using .Net 3.5 as the Scripting Runtime on macOS. It does not happen with .Net 4.x.
All you need to do is create a new project, set the runtime to 3.5, and add a script like this in an Editor folder:
using UnityEditor;
public class Crash
{
[MenuItem("CRASH/CRASH")]
static void Menu()
{
Menu();
}
}
I've also attached the stacktrace from Xcode but the crash appears to be inside jitted mono code.
------
[PREVIOUS DESCRIPTION]
Adding a custom GUI to a GameObject cause a crash. This seems to be OSX only, Windows produces expected StackOverflow console error.
1. What happened
After creating a custom GUILayout Unity crashes.
2. How we can reproduce it using the example you attached
- Open the attached project in 2018.2.0f2
- Open the Test Scene_Dev (If not open already)
- In the Hierarchy select the Airplane GameObject (it has the custom GUI)
Notice Issue >> Crash.
VIDEO ATTACHED: GUILayoutCrash
Line 28 in script IP_BaseAirplaneInput_Editor seems to cause the issue, if commented out the script works fine.
Crash appears in: 2018.2.0f2, 2018.1.4f
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
- Previously deleted “DefaultLookDevProfile“ is present when upgrading the Editor version
- [Ubuntu] UI text and buttons are missing spaces in Unity Version Control > New Workspace window
- "Inherit attribute is not supported" warning is shown but attributes are available in VFX Graph Output and Update blocks
Add comment