Search Issue Tracker
Fixed in 2019.3.X
Votes
0
Found in
2018.3.0a1
2019.1.0a1
2019.1.6f1
2019.2.0a1
2019.3.0a1
Issue ID
1167919
Regression
No
Crash on Object_CUSTOM_GetName when trying to get Transform.name when passing transform by reference
How to reproduce:
1. Open the "name_repro.zip" project
2. Open the "SampleScene.unity" scene
3. Press Play
Actual result: Unity crashes.
Reproducible with: 2019.3.0a9, 2019.2.0b9, 2019.1.10f1, 2018.4.4f1, 2018.3.14f1, 2018.3.0a1.
Notes:
The crash happens on "string str = trans.name;" test.cs:21.
2 things are needed for the crash to happen:
The function must be called with SendMessage() method.
The function's parameter is used as a reference (C# 7.2 "in" keyword).
----------------------------------
Fixed in 2019.3.0a12.
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
- Inspector elements are rendered twice when the script component is added via drag-and-drop while the HideFlags.HideInInspector property is set
- Error "Light baking failed with error code 5 (Convergence data not available while rendering lightmaps)" thrown in Console when generating lighting for specific GameObjects
- Copy and Paste options for an Animation Property value are disabled in the Right click contextual menu
- Asset is not found when searching the Label "NewLabel" in Search Window
- "Compute dispatch: missing texture ID..." and "Compute dispatch: missing UAV ID..." warnings are thrown after changing the platform in High Definition 3D template
Resolution Note (fix version 2019.3):
'in' parameters are not supported for methods that are invokved with SendMessage. To work around this crash remove the 'in' parameter.