-
Notifications
You must be signed in to change notification settings - Fork 144
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
[linux] Eclipse crashes if gnome-orca is enabled #930
Comments
Please post your hs_err files. |
Just tried again with a completely new installed eclipse on debian (istalled with the official installer using the Java IDE profile). These two crashes occured when i:
|
Important parts from the crash logs
|
We received a few crash reports like this for our product. |
The relevant SWT code is Lines 1377 to 1389 in 29baefd
I understand it this way:
Therefore, it looks like a bug in external code. |
In other words:
It sounds like SWT doesn't play any role here. |
I tried to reproduce on Ubuntu 22.04 with Eclipse 2023-09 using both step lists and it's not reproducible. |
I tried with Ubuntu 23.04 and it's easily reproducible there. Seems like the problem begins between Ubuntu 22.04 and 23.04 |
Native stack for the crash:
|
SWT snippet to reproduce final Display display = new Display();
final Shell shell = new Shell(display);
shell.setLayout (new GridLayout (1, true));
Label hint = new Label(shell, 0);
hint.setText(
"1. Run on Ubuntu 23.04 or later, or some other modern Linux\n" +
"2. Press the button\n" +
"3. Issue 930: JVM will crash or Gtk-CRITICAL occurs\n" +
" to make crash more reliable, run with:\n" +
" export G_SLICE=always-malloc\n" +
" export MALLOC_PERTURB_=204"
);
Text text = new Text(shell, 0);
text.forceFocus();
Button button = new Button(shell, 0);
button.setText("Test");
button.addListener(SWT.Selection, e -> {
StyledText styledText = new StyledText(shell, 0);
styledText.setText("Test StyledText");
styledText.forceFocus();
display.timerExec(1000, () -> {
styledText.dispose();
});
});
shell.pack();
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) {
display.sleep();
}
}
display.dispose(); |
Thanks for investigating and figuring this out! So it sounds like I should report this to some GTK related repository instead? |
It is not yet completely clear whos fault is it. Could be GTK or could be SWT, or could be both (where SWT doesn't release something and GTK relies on what it shouldn't reply upon). I hope to find some more time for it within a week. I doubt GTK guys could easily do something here, because debugging mixed Java/native executable requires additional knowledge they probably don't have. |
I was instructed to not spend time on this. sorry. |
The crash for As for the crash discussed here, I now have a very good understanding of what causes it and how to fix. Hopefully a few weeks later I will finally find time to land a fix. |
The problem is still reproducible under Ubuntu 24.04 with Eclipse 4.33 :(. |
I'm not sure if this is the right repository to report this issue. If it is not, it would be very nice if you could move this issue to the proper repository.
Because I'm blind I'm using the gnome-orca screen reader on gnome desktop. Unfortunately eclipse crashes in various situations if the screen reader is running. I also had the chance to ask for some sighted assistance to confirm these crashes don't occur if gnome-orca is not enabled. I'm not sure which one was the first version of eclipse that introduced this issue, but it is present in the current and most recent versions.
Also I'm not sure what exactly is causing these crashes. But i will provide some examples below showing how to reproduce them.
I tried some different linux distro / desktop / display server / jdk combinations to make sure, these crashes don't depend on any of them.
Used environments include:
Examples how to reproduce this behaviour include:
The marketplace:
Java Editors auto completion:
After all i have no idea what exactly causes these crashes. The only pattern i recognized is that in the call stacks in the hs_err files there is always something from the swt accessibility stack for gtk.
Please let me know, if you need any further information.
The text was updated successfully, but these errors were encountered: