Search Issue Tracker
By Design
Votes
0
Found in
2017.4.0f1
2018.4.0f1
2019.1.0a1
2019.1.7f1
2019.2.0a1
2019.3.0a1
Issue ID
1164485
Regression
No
Editor freezes when using Debug.Log and trying to print a value within the getter
How to reproduce:
1. Open attached project "Case_1164485_repro.zip"
2. Open "Paddle" scene
3. Enter Play Mode
Expected result: Editor does not freeze
Actual result: Editor freezes
Reproducible with - 2017.4.29f1, 2018.4.3f1, 2019.1.8f1, 2019.2.0b7, 2019.3.0a6
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
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Resolution Note:
This problem is caused by the user script, it's an infinite recursive call.
The code that causes it in ConfigurationUtils.cs:
public static float BallImpulseForce
{
get
{
Debug.Log("There is no error here");
Debug.Log(BallImpulseForce); // <- this causes and infinite recursion (and eventually stack overflow)
return configurationdata.BallImpulseForce;
}
}
The correct code would be:
public static float BallImpulseForce
{
get
{
Debug.Log("There is no error here");
Debug.Log(configurationdata.BallImpulseForce); // <- no more recursive call
return configurationdata.BallImpulseForce;
}
}