Search Issue Tracker
Duplicate
Votes
0
Found in
2017.3.0a1
2018.3.0a1
2018.3.0f2
2019.1.0a1
2019.2.0a1
Issue ID
1117663
Regression
No
[.NET 4.x] Editor and mono Player crash with Stack overflow exception due to nested methods calls
Steps to reproduce:
1. Download the attached project and open "InitailScene" scene
2. Make sure that Scripting Runtime is set to .NET 4.x
3. Enter play mode
4. Click next scene
Expected results: Editor loads a new scene
Actual results: Editor crashes with no stack trace
Reproduced with: 2019.2.0a1, 2019.1.0a14, 2018.3.3f1, 2017.4.18f1
Not reproducible with: .NET 3.5 Scripting Runtime and IL2CPP player with both .NET 4.x and .NET 3.5
Comments (1)
-
r3eckon
Mar 07, 2019 22:15
I'm having a very similar problem with a recursive algorithm crashing the editor. Happens only on .NET 4.x runtime while using 3.5 works perfectly.
Log shows a StackOverflowException is the cause, but using logging I found out that the function causing issues only loops about 34 times before the editor crashes, which is not even close to looking like an infinite loop. It's like the stack becomes tiny when using 4.x.
Temporary workaround is to use .NET 3.5 but since it'll be removed in Unity 2019 that's not going to last.
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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
This is a duplicate of issue #1098168