Search Issue Tracker
Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.
Postponed
Votes
1
Found in
4.5.1f3
Issue ID
616244
Regression
No
Internal compiler error when trying to construct a dictionary of generic struct<T,T>
To Reproduce:
1. Open the attached, notice that as long as this line:
'new Dictionary<p<object, object>, object>();'
exists in any script in the project, and 'p' is a <T,T> struct, 'Internal compiler error' will be thrown and the stack will be outputted, it will end with:
'Got a SIGSEGV while executing native code. T'
2. Only happens with structs and Dictionaries if p is changed into a class and/or dict to a list, a HashSet or other generic collection the code is compiled and executed without any issues.
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
sejton
Mar 27, 2015 08:37
I created a Point<T> generic structure and just declaring a dictionary Dictionary<Point<int>, int> induces this unexpected bug.
I don't get any internal compiler error written in Unity 5. Instead, I get a window saying mono.exe has stopped working. So, compiler has obviously crashed and when I press play button Unity logs that I have to fix compiler errors. It doesn't log which compiler errors have happened. It just logs an empty error message = empty string marked with error flag.