Search Issue Tracker
Fixed
Fixed in 2022.3.7f1
Votes
3
Found in
2022.3.2f1
7000.0.0a10
Issue ID
UUM-40110
Regression
Yes
Crash on GUIView::OnInputEvent when opening an EditorWindow from a GenericMenu in a popup window
How to reproduce:
1. Open the attached “EditorWindowCrash 2022.2.zip” Project
2. Open the “Test” Drop-down tab from the Tool Bar and press on the “OpenTestWindow” button
3. Press the “menu to crash” button and press the “open crash window #” button in order (e.g: 1 → 2 → 3)
4. Press the “open crash window 3” button
Expected result: The "Test" window opens
Actual result: The Editor crashes
Reproducible with: 2022.2.4f1, 2022.3.2f1
Not reproducible with: 2021.3.27f1, 2022.2.3f1, 2023.1.0f1, 2023.2.0a9
Reproducible on: Windows 10
Not reproducible on: macOS Ventura 13.4 (Intel)
Notes: If the issue does not reproduce, repeat step 4
First few lines of the Stack Trace:
{\{0x00007FF6E5EA1385 (Unity) GUIView::OnInputEvent }}
{\{0x00007FF6E58DC2C3 (Unity) GUIView::ProcessInputEventFromAPI }}
{\{0x00007FF6E58DC198 (Unity) GUIView::ProcessInputEvent }}
{\{0x00007FF6E5E9A2CC (Unity) GUIView::DoPaint }}
{{0x00007FF6E5EA327C (Unity) GUIView::RepaintViews}}
{{0x00007FF6E5E9BAA1 (Unity) GUIView::GUIViewWndProc}}
{\{0x00007FF8E0B7E858 (USER32) CallWindowProcW }}
{\{0x00007FF8E0B7E3DC (USER32) DispatchMessageW }}
{\{0x00007FF8E0B90C33 (USER32) SendMessageTimeoutW }}
{{0x00007FF8E1AD0EB4 (ntdll) KiUserCallbackDispatcher}}
Comments (5)
-
starikcetin
Jul 02, 2023 13:17
ACEMONSTER's `editorWindow.Close()` suggestion fixes the crash for me.
-
starikcetin
Jul 02, 2023 13:05
Editor version: 2021.3.18f1
-
starikcetin
Jul 02, 2023 13:05
Sometimes happens to me when clicking on a button from a custom DisplayDialog started from a PopupWindowContent. Here are the crash logs:
```
<RI> Initialized touch support.Dereferencing NULL PPtr!
=================================================================
Native Crash Reporting
=================================================================
Got a UNKNOWN while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
==================================================================================================================================
Managed Stacktrace:
=================================================================
=================================================================
Received signal SIGSEGV
Obtained 9 stack frames
0x00007ff6d9ce3d4a (Unity) GUIView::ProcessInputEvent
0x00007ff6da22de4e (Unity) GUIView::DoPaint
0x00007ff6da2370fd (Unity) GUIView::RepaintAll
0x00007ff6d9db5603 (Unity) Application::TickTimer
0x00007ff6da20aa1a (Unity) MainMessageLoop
0x00007ff6da20f2eb (Unity) WinMain
0x00007ff6db5c484e (Unity) __scrt_common_main_seh
0x00007ffa61227034 (KERNEL32) BaseThreadInitThunk
0x00007ffa617426a1 (ntdll) RtlUserThreadStart
``` -
AceMonster
Jun 26, 2023 10:51
This problem also reproduce on 2021.3.18f1,but is solved from me use a tortuous way.
By test,if you close POPUPWINDOW before open EDITORWINDOW,this problem has never reproduced.
Example:
if (GUILayout.Button("打开窗口"))
{
editorWindow.Close(); //Important
OpenWindow();
}
the crash info is "Dereferencing NULL PPtr!", so i think this problem is cause by the reason that popup window is not closed properly when new window opened and lost focus.
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note (fix version 2022.3.7f1):
Opening an EditorWindow from an EditorWindow displayed via EditorWindow.ShowDropdown no longer crashes.