-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Sub windows in java applications close immediately #3982
Sub windows in java applications close immediately #3982
Comments
I reported a bug against InteliJ IDEA describing this issue a while back. Doesn't appear to be Qubes-specific, users of many other distros are affected too. |
Closing as "not our bug." If you believe this is a mistake, please leave a comment, and we'll be happy to take another look. Thank you. |
That may be true for IntelliJ, but with burp I have not been able to reproduce it on any other distribution or system other than Qubes R3.2 (see my comments from the burp bug report). As I am working in the infosec business, this tool is quite essential from time to time. I'll have to test if it also effects Qubes 4.0 if not, the switch is planned for this year anyway. |
In burp under QubesR4 (archlinux template) I also observe similar problem with the proxy history filter panel. I have not been able to investigate the reason yet but a similar issue encountered in Qubes 3.0 was tracked down to a missing implementation of some X11 protocol feature within qubes GUI code. |
Do you know a very minimal Java program that highlight this issue ? This would help a lot for troubleshooting. |
I have a minimal Java application showing a possibly similar issue that I had with NetBeans IDE where some windows where loosing focus sometimes and thus being closed only when running with Qubes: Anyway I just run it and it is still reproducible in 4.0. Updated: to clarify that I am not sure this is the same issue. |
This issue also effects Qubes 4.0. |
I am observing the same issue with TheBrain 8 on both R3.2 and on R4.0 since I use Qubes both with Xfce and also with i3. Additional note: in my case I can sometimes get the panel to stay, by opening it rapidly over and over ... after 40+ tries is stays for that one time. Once closed, it's back to the buggy behavior. Luckily in TheBrain this GUI element is only used to select the color for labels ... so once it's set one doesn't need it anymore. Which is why I didn't bother reporting it. But it appears based on the other mentions here that this is a general Java application issue under Qubes. |
Any news with this issue? As it also effects Qubes 4 and multiple java applications as it appears @andrewdavidwong ? |
Sorry, I'm not aware of any news about this besides what's on this issue. |
I have the same issue, with both BurpSuite & Maltego on Qubes OS R4.0 |
Hello,
I will try to do additional debugging to see if the problem is related to pointer positions sent by dom0. |
Edit: Case 3 Chromium discussion has been moved to #3267 I'm trying to review the potential use case that are missed in QubesOS related to the ICCCM windows manager convention and verify of buggy cases are realted to a specific input focus model : Still, these kind of problems are often related to java (AWK/Swing) and are encountered by most windows managers. Here are some potentially related references I found: |
Hello, Here are my attempt to open the popup (vm side logs):
Here are the gui-daemon dom0 side logs corresponding to similar actions:
|
OK I think I found the problem related to Case 1. Java programs are often using Globally Active Input Models, meaning that they don't care about focus and guess it themselves somehow instead of being informed by the windows manager through XSetInputFocus, however they are allowed to send TAKE_FOCUS Messages to get keystrokes or mouse events. In our case, the qubes gui agent in vmside.c properly takes in account the fact that Globally Active Input Models should not receive XSetInputFocus events when the windows manager want to give focus to the VM. However this condition is not properly verified when the windows manager want to remove focus which means that XSetInputFocus event are sent every time the WM want to remove focus and the java program that receive this event at window creation time close the popup window immediately (because it things the focus is out of his window). |
I will test if there are border effects of this change and if it solves the other cases. |
I have noticed this behavior in Intellij IDEA as well as BiglyBT with Qubes R4.0. |
A remaining problem (which is a lower priority for me as it has little effect) is case2 where a java application which apparently attempt to use something similar than override redirect (a windows with no border), but Qubes creates a plain windows with close buttons. But this may be on purpose as there is an active discussion to limit override redirect windows there: |
This issue is driving me insane. I use Qubes every day, and IntelliJ recently became unusable when I gave it more RAM and switched to i3 window manager. Even autocomplete windows immediately close themselves unless my machine is under high load. Oracle, why did you make Java so 'smart'. @ptitdoc, is there a patch file or branch with your GUI manager changes? |
Automated announcement from builder-github The package
|
Automated announcement from builder-github The component
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The component
|
Automated announcement from builder-github The package
Or update dom0 via Qubes Manager. |
Qubes OS version:
R3.2 with xfce
Affected component(s):
Window manager maybe?
Steps to reproduce the behavior:
Download the latest intellij rider:
https://www.jetbrains.com/rider/
Try to open submenus like right clicking inside the editor window (the submenu instantly closes).
Also effects burp suite:
https://portswigger.net/burp/releases/download?product=community&version=1.7.33&type=jar
Try to open any help menu, it instantly closes.
Expected behavior:
The sub window should stay open.
Actual behavior:
The window closes directly
General notes:
It is not a recent change in the JVM code, I tried old versions from OpenJDK and Oracle (7,8,9) same issue. It must be some java user code that triggers it.
The question is, can this be addressed in qubes as well? Some issue within the window manager?
Related issues:
https://support.portswigger.net/customer/en/portal/questions/17346734-burp-overlay-menus-no-longer-working-on-fedora-26
The text was updated successfully, but these errors were encountered: