Search Issue Tracker
By Design
Votes
0
Found in
2018.3.0b9
2018.3.0b11
2019.1.0a1
Issue ID
1103532
Regression
Yes
"InvalidOperationException: Stack empty" error is thrown when reimporting scripts that use Platform Dependent Compilation
Steps to reproduce:
1. Open attached project "Script error"
2. In the Assets folder find "NewBehaviourScript"
3. Right click on it and click Reimport
Expected results: Errors that are not related to correct scripting are not is thrown
Actual results: After script reimporting error "InvalidOperationException: Stack empty" is thrown
Reproducible with: 2018.3.0b9, 2018.3.0b12, 2019.1.0a10
Not reproducible with: 2018.3.0b8
Note: In lower versions than 2018.3 Script from this project cannot be used because it is not part of the C# 6.0 language specification.
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 __pthread_kill when initializing Vuplex WebView while entering the Play Mode
- Crash on FindSurface when adding a custom Renderer Feature to a 2D Renderer Data Asset
- [Android] [Vulkan] [UI Toolkit] Application crashes when the device is rotated when it has UI Toolkit TextField on Vulkan devices
- Crash on DualThreadAllocator<DynamicHeapAllocator>::TryDeallocate when opening a specific project
- Crash on memset_repstos when pressing a UI button while in Play Mode
Resolution Note (2019.1.X):
The parsing of source files has been updated after resolving this case: https://fogbugz.unity3d.com/f/cases/1104428/ to give a more specific error message in cases where preprocessor directives and their arguments are invalid.