-
-
Notifications
You must be signed in to change notification settings - Fork 20.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clicking on a button in Select Screen popup prints an error #96560
Comments
Error on Windows: platform/windows/display_server_windows.cpp:1771 - Condition "wd_window.transient_parent == p_parent" is true. |
I believe you are using x11 here, you need to go into editor settings and turn on I am unable to use this feature on wayland in general |
No, this happen on Fedora 39 X11 too and Windows |
@Giganzo the error is from the x11 display server: |
Was mentioning this to make sure, that the issue is indeed with x11/windows, rather than wayland/windows Will look into the error 😃 |
Something interesting; I printed the comparison causing the error ( If you start godot after a pop-out window was in use, it will start with that pop-out window, and no error:
If you then close the popout and reopen it, you get the error, and neither the previous window, nor current window, can be found, resulting in equal IDs of
|
Going to leave this here, and hope someone else has an idea, i am unsure why it is getting 2 invalid window IDs for both the new window + the previous window, when it works on startup |
A couple of notes:
|
Still investigating, but this looks suspect to me: godot/editor/window_wrapper.cpp Line 106 in b6223c0
I think it's the |
The ID of 0 isn't invalid, it just means main window:
I ran a similar test on Windows and I get these values on startup (inside
Then when using the "Select Screen" option I get:
So technically it's only the 2nd pass that's causing the issue (transient parent and p_parent are both invalid). Haven't been able to trace what's driving that. Might be something to do with the popup. One more update: I have been able to generate the error by selecting the Left click option to pop out the script editor, but it happens far less often. It's some weird timing thing with the transient parent and parent being out of sync for validation. |
If you comment out this line, the error doesn't appear until the popup window is made hidden by losing focus: godot/editor/window_wrapper.cpp Line 373 in b6223c0
Issue may actually be with the popup window's ID not being valid. |
Tested versions
4.4.dev1
4.1.2.stable
System information
Fedora Linux 40 (KDE Plasma) - Wayland - Vulkan (Forward+)
Issue description
When clicking on a button in this menu popup
Prints this error:
platform/linuxbsd/x11/display_server_x11.cpp:2084 - Condition "prev_parent == p_parent" is true.
Similar error is printed on Windows too
Steps to reproduce
Right click on Make editor floating button
Click on one of the screen buttons
Error is printed in Output
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered: