Search Issue Tracker
Won't Fix
Votes
0
Found in
2019.2.0a1
2019.2.3f1
2019.3.0a1
2020.1.0a1
Issue ID
1181219
Regression
No
Crashes on aligned_free when entering Play Mode when a Custom UIElements window is open
How to reproduce:
1. Open attached project
2. Select the asset at Assets/Dialogue Graph/Test IF Data/Park/Description/Description.asset
3. Open Window > IF
4. Dock the opened window to the editor interface
5. Enter the Play Mode
6. If it didn't crash, enter and quit Play Mode few times
Reproducible with: 2019.2.4f1, 2019.3.0b2, 2020.1.0a3
Not reproducible with: 2017.4.32f1, 2018.4.9f1 (UI Elements are available in 2019.2 and up)
Reproducible with both Mac and Windows
NOTE: only happens when using a Graphview function in a very specific way
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
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
- The build size is larger when Models have Animation Type set to Generic
Resolution Note:
This project contains a window that will call GraphView.CalculateFrameTransform() during its OnEnable() phase. This function ends up reading and writing to GUI.matrix to save/restore the current value and install an identity transform in between to perform screen alignment calculations.
During OnEnable() it's technically not safe to use IMGUI APIs because IMGUI has not even run once and could contain garbage state.
To work around this crash, you can postpone the call to CalculateFrameTransform() which should let IMGUI put itself in a correct state. Since Graphview is an experimental API, only for specific Unity products which do not experience this issue, we do not intend to fix this right now.