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
Editor windows flicker on mouse movements when GTK_IM_MODULE is set #270
Comments
Wayland? Can you try X11? Can you also try 4.25 nightly build, like rhis one: https://download.eclipse.org/eclipse/downloads/drops4/I20220723-1800 |
Thank you for the fast response.
Excuse me...what do you mean "try X11"?
Just to try, I've downloaded the newest Eclipse today from the website, same problem.
|
Mint doesn't use Wayland, so you will be on X11. I run Eclipse fine on Mint (Cinnamon edition), although in a VM. @fbgihu Can you try Eclipse 4.23 and see if that has the same problem? Or try a different theme? |
Same problem on 4.23 and also on 4.22. It wasn't on 2019-09. |
Cinnamon, MATE or Xfce edition? |
Cinnamon
|
FWIW, I've been using Wayland on Fedora for several years now and there is no such problem. |
|
I don't know, wether I use Wayland or X11. If Philipus is right in his comment above, then Mint doesn't use Wayland.
The contents of a log file freshly started:
Solving those two conflicts doesn't fix the flicker problem. |
All kinds of editors: Java, plain text, even strcutured editor for pom.xml. Project explorer, package explorer, outline and other views are totally NOT effected. It's only the editors and it looks like a faulty refresh/redraw routine, that fires without reason.
Entering the editor window frame does, moving around in the editor too, scrolling in the editor too. If you leave the editor view and click another view, eg. package explorer, it takes the editor a few seconds to calm down and then you can move around in package explorer without flickering the editor view. I can also scroll in package explorer with no flickering anywhere. Editor flickers only, if it has the focus or the mouse over it. And it stops flickering a few seconds after I stop moving the mouse. It does not flicker on keystrokes.
Never used theming. General > Appearance has theming turned off.
Mint-Y
Native
Don't know. It's a fairly simple Intel Mainboard interated HD Graphics 530 and I do all updates as they come from LINUX/MINT. Nothing else on my PC behaves like the editor views of Eclipse. No LibreOffice, no browser, no VLC, nothing. Eclipse itself doesn't flicker besides the editors. This looks to me simply like some errorneous fired redraw/refresh routine. Is it possible to enhance logging?
I don't have a second machine for a fresh Mint install. In the meantime I have a lot of fresh Eclipse installations. All behave the same. |
I suspect it's not an issue with editors but with StyledText. Can you please run the CustomControlExample as described in https://www.eclipse.org/swt/examples.php#standaloneOutsideEclipse and report whether the "StyledText" tab seems to behave properly or whether it shows the issue? |
mickaelistria, thank you for this really quick response. It took me a while to figure out the examples but now I have them running and there is no "StyledText" tab ?!?. There is only a "Text" tab and that behaves without flicker as it should. Am I using the correct SWT.jar? I use
There are also
Upon starting, terminal throws two warnings:
|
Could you please do just that before starting Eclipse? |
Bingo! I tested this by setting |
Sounds good, but how do I set GTK_IM_MODULE just before starting eclipse? Is it meant as a UNIX environment variable? |
You need
But maybe |
That's it. Thank you very much for your support !! |
I wonder if Eclipse launcher should unset this variable on Linux if it is set to "xim", if editors are unusable with that "xim" thing? Or we could log an error in IDE if we detect that? @sravanlakkimsetti, @akurtakov : WDYT? |
That's already the case on GNOME: https://github.com/eclipse-platform/eclipse.platform.swt/blob/master/bundles/org.eclipse.swt/Eclipse%20SWT/gtk/org/eclipse/swt/widgets/Display.java#L1091-L1104 |
No, I mean properly log that to IDE log, not to console. No one watches console on Gnome (especially if Eclipse isn't started from the shell), and if one would, it is full of useless GTK critical warnings. I also mean unset variable from the launcher before JVM is started. And btw, nice to hear from you again, Eric. |
I saw there was another victim of the |
I'm not sure what will happen if unsetting the variable, my guess would be that some "default" (which could happen to be xim again) will be used. |
On my Linux Mint VM |
For future victims:
Thanks again to all helpers and commenters for your support |
Is it possible to change And could the following be changed to enforce ibus in all cases not just Gnome? (I commented out the // Enforce ibus as the input module on GNOME
if (OS.isGNOME) {
long settings = GTK.gtk_settings_get_default ();
byte[] ibus = Converter.wcsToMbcs ("ibus", true);
if (settings != 0) OS.g_object_set (settings, GTK.gtk_im_module, ibus, 0);
} |
Usually, SWT code doesn't know anything about workbench and platform. However it should be possible, and welcome, to use a standard Java logger (eg |
I opened #280 on the topic of improving logging. |
what about windows users? facing the same issue in my 4.21.0 :( |
It is very unlikely that you have the same problem on Windows, even if the symptoms are somewhat similar. Please report a new Issue with a good description, preferably also record a video. |
sure @SyntevoAlex ! |
Hi, I'm running Eclipse IDE for Enterprise Java and Web Developers (includes Incubating components) Version: 2022-06 (4.24.0) Build id: 20220609-1112 on Linux Mint 20.2 Operating System: Linux Mint 20.2 (Kernel: Linux 5.4.0-122-generic Architecture: x86-64)
All editor windows "flicker". They switch to empty gray and back to text on mouse movements. This happens only to editor windows. Other views (Project Explorer, Outline...) stay calm and do not flicker. It's only the editor windows.
Any ideas on that? This makes Eclipse unuseable for me and forces me to switch to another IDE after roughly 20 years with Eclipse.
The text was updated successfully, but these errors were encountered: