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}}
-
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. -
Emily60
Jun 14, 2023 09:16
Hi everyone I am Emily Naomi wanna give a big thanks to this wonderful psychic for bringing my husband back to me… I never really believed in magic spells or anything spiritual but a trusted friend opened my eyes to the truth about life. My marriage was heading to divorce a few months ago. I was so confused and devastated with no clue or help on how to prevent it, till I was introduced to this psychic Priest Ray that did a love spell and broke every spiritual distraction from my marriage. A day later my husband started showing me love and care even better than it used to be, he’s ready to talk things through and find ways for us to stay happy. It’s such a miracle that my marriage can be saved so quickly without stress. You can also contact him for help by email psychicspellshrine@usako. net
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
- Joint Physics result in unexpected behaviors when used for articulated vehicles like buses or trucks
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts which worked with TMP Font Asset Creator
Resolution Note (fix version 2022.3.7f1):
Opening an EditorWindow from an EditorWindow displayed via EditorWindow.ShowDropdown no longer crashes.