Search Issue Tracker
Fixed in 2019.3.X
Votes
0
Found in
2019.1.0a13
2019.2.0b6
Issue ID
1163914
Regression
Yes
Creating a Prefab with a script containing a NameToLayer from MonoBehaviour constructor freezes/crashes the Editor
How to reproduce:
1. Create a new Unity project
2. Import the tester-attached script(Bug.cs)
3. Create a new GameObject and attach the script
4. Create a Prefab from this GameObject
5. If the Editor does not freeze/crash at this point - create more Prefabs from separate GameObjects with this script
Expected result: the Editor does not crash/become unresponsive
Actual result: the Editor crashes/becomes unresponsive
Reproducible with: 2019.1.0a13, 2019.1.8f1, 2019.2.0b7, 2019.3.0a7
Not reproducible with: 2017.4.29f1, 2018.4.3f1, 2019.1.0a12
Notes:
The Editor crashes without freezing or any stack trace on Windows
The Editor freezes on macOS, crashes when closed with 2019.3 versions of Unity
With 2019.1.0a11 and 2019.1.0a12, creating a Prefab from a GameObject with the script does not freeze, but sometimes crashes the Editor
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Pop-up to save unsaved changes does not appear when closing a custom editor window using ESC key
- A new Additive Scene cannot be created when an empty Untitled Scene is not dirty
- [Scene View][Ubuntu] Prefab mode UI ghosting in HDRP
- Deleting AudioMixer asset throws MissingReferenceException and breaks the Audio Mixer window
- Crash on ScheduleGenerateTilingShape when modifying PolygonCollider2D path count and setting path vertices
Add comment