Search Issue Tracker
Duplicate
Votes
0
Found in
2022.2.0a3
2022.2.0a5
Issue ID
1402228
Regression
Yes
Editor crashes when adding a new script to a game object via "Add component"
Steps to reproduce:
1. Open any project
2. Create a new GameObject in the Hierarchy window (GameObject > Create Empty)
3. Select the new GameObject and press "Add Component" in the Inspector window
4. Select "New script"
5. Name the script
6. Wait until domain reload finishes
Expected result: A new script is added attached to the game object
Actual result: Editor crashes
Reproducible with: 2022.2.0a3, 2022.2.0a5
Not reproducible with: 2019.4.36f1, 2020.3.29f1, 2021.2.12f1, 2022.1.0b8, 2022.2.0a2
Stack trace:
0x00007ff652ae83b5 (Unity) scripting_class_get_parent
0x00007ff652b46e41 (Unity) BuildSerializationCommandQueueFor
0x00007ff652aa9cb2 (Unity) TransferScriptingObject<StreamedBinaryWrite>
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 ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
This is a duplicate of issue #1403058