Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
2019.3
2019.3.0f3
2020.1
Issue ID
1207481
Regression
No
"Assertion failed on expression" errors when using IMGUIContainer from "UIElements Runtime" package to create a window
Using IMGUIContainer to create a window (with GUILayout.Window()), causes multiple assert failed messages:
Assertion failed on expression: '!dest.m_MultiFrameGUIState.m_Windows'
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
How to reproduce:
1. Open the attached project
2. Enter the Play mode
3. Notice the Assertion errors in the Console
Expected result: No "assertion failed on exception" errors are thrown.
Actual result: Multiple "assertion failed on exception" errors are thrown.
Reproducible with - 2019.3.0f4, 2020.1.0a18
Note:
* Not tested with Unity versions prior 2019.3, since "UIElements Runtime" package was introduced in 2019.3
* Reproducible with both "UIElements Runtime" v0.0.2 and v0.0.3
* Could not check if regression due to package console errors.
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
Resolution Note:
We will not support IMGUIContainer in the Runtime.
Right now this is allowed without any error message and nothing will be functional.
We have added a task to give a clean error message to the user or find a way to move IMGUIContainer to a different assembly.