Bug 532867 - Rendering issue in sourceview when pressing enter
Summary: Rendering issue in sourceview when pressing enter
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.8   Edit
Hardware: PC Linux
: P3 major with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks: 530841
  Show dependency tree
 
Reported: 2018-03-25 10:15 EDT by Gayan Perera CLA
Modified: 2018-06-28 13:11 EDT (History)
4 users (show)

See Also:


Attachments
java file editing (21.27 KB, image/png)
2018-03-25 10:15 EDT, Gayan Perera CLA
no flags Details
text file editing (19.58 KB, image/png)
2018-03-25 10:15 EDT, Gayan Perera CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gayan Perera CLA 2018-03-25 10:15:09 EDT
Created attachment 273290 [details]
java file editing

When opening a file (tested with .groovy, .java and .txt) and start writing as soon as you try to enter new lines (most of the time this start when you try to insert the second line) by pressing enter the source editor rendering starts to get rendering problems. A screenshot is attached how it looks like on java and txt file.

The rendering normals back after you save your changes.
Comment 1 Gayan Perera CLA 2018-03-25 10:15:33 EDT
Created attachment 273291 [details]
text file editing
Comment 2 Gayan Perera CLA 2018-03-25 10:17:25 EDT
This only happens on linux where i'm running on ElementaryOS Loki which uses GTK 3.18.9.
Comment 3 Gayan Perera CLA 2018-03-25 10:20:51 EDT
Also i more thing i'm running on GTK2 mode. GTK3 mode doesn't seems to startup even i just freeze after initial splash screen which seems to be a different bug.
Comment 4 Alexander Kurtakov CLA 2018-03-26 13:19:09 EDT
So this is with GTK 2? I should let you know that GTK 2 support doesn't see any more improvements from committers so people should either provide patches themself or work or use GTK 3. What is the issue when you use GTK 3? Have you tried starting eclipse with -clean -debug -consolelog ? This should give some hints .
Also which eclipse version exactly do you use?
Comment 5 Gayan Perera CLA 2018-03-28 11:59:50 EDT
This is the console output when i execute in GTK3 mode
----------------------------------------------------------------------------
Start VM: /opt/java/1.8/bin/java
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-XX:+UseStringDeduplication
-jar /opt/eclipse/eclipse-photon//plugins/org.eclipse.equinox.launcher_1.5.0.v20180207-1446.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /opt/eclipse/eclipse-photon//plugins/org.eclipse.epp.package.common_4.8.0.20180315-1215/splash.bmp
-launcher /opt/eclipse/eclipse-photon/eclipse
-name Eclipse
--launcher.library /opt/eclipse/eclipse-photon//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.700.v20180201-0654/eclipse_1703.so
-startup /opt/eclipse/eclipse-photon//plugins/org.eclipse.equinox.launcher_1.5.0.v20180207-1446.jar
--launcher.appendVmargs
-exitdata 1d8005
-product org.eclipse.epp.package.java.product
-clean
-debug
-consolelog
-vm /opt/java/1.8/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-XX:+UseStringDeduplication
-jar /opt/eclipse/eclipse-photon//plugins/org.eclipse.equinox.launcher_1.5.0.v20180207-1446.jar 
Install location:
    file:/opt/eclipse/eclipse-photon/
Configuration file:
    file:/opt/eclipse/eclipse-photon/configuration/config.ini loaded
Configuration location:
    file:/opt/eclipse/eclipse-photon/configuration/
Framework located:
    file:/opt/eclipse/eclipse-photon/plugins/org.eclipse.osgi_3.13.0.v20180226-1711.jar
Loading extension: reference:file:org.eclipse.osgi.compatibility.state_1.1.100.v20180131-1413.jar
	eclipse.properties not found
Framework classpath:
    file:/opt/eclipse/eclipse-photon/plugins/org.eclipse.osgi_3.13.0.v20180226-1711.jar
    file:/opt/eclipse/eclipse-photon/plugins/
    file:/opt/eclipse/eclipse-photon/plugins/org.eclipse.osgi.compatibility.state_1.1.100.v20180131-1413.jar
Splash location:
    /opt/eclipse/eclipse-photon//plugins/org.eclipse.epp.package.common_4.8.0.20180315-1215/splash.bmp
Debug options:
    file:/opt/eclipse/eclipse-photon/.options not found
Time to load bundles: 118
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized.  Will retry after the state location is initialized.
Starting application: 26158
------------------------------------------------------------------------------

The splash screen is shown and it closes after few seconds, the workspace selection dialog doesn't show up, while this is happens the whole system is not responsive to user inputs, i have to login to console mode in linux and kill the java process to get the system back to normal.
Comment 6 Gayan Perera CLA 2018-03-29 11:20:31 EDT
I did ran eclipse oxygen with GTK3 and there is not problem of running eclipse in GTK3 on Ubuntu 16.04 base ElementaryOS. But Photon M6 fails to who the workspace selection window after the splash screen when running with GTK3. This cannot be a Java version problem as well since with the same java version GTK2 works.

So i believe this is a bug in SWT or Platform which is bundled in Photon M6.
Comment 7 Gayan Perera CLA 2018-04-04 12:47:09 EDT
Any updated on this issue ? Seems like this is a Photon specific bug because this cannot be reproduced in Oxygen release
Comment 8 Eric Williams CLA 2018-04-04 15:38:30 EDT
(In reply to Gayan Perera from comment #6)
> I did ran eclipse oxygen with GTK3 and there is not problem of running
> eclipse in GTK3 on Ubuntu 16.04 base ElementaryOS. But Photon M6 fails to
> who the workspace selection window after the splash screen when running with
> GTK3. This cannot be a Java version problem as well since with the same java
> version GTK2 works.
> 
> So i believe this is a bug in SWT or Platform which is bundled in Photon M6.

Is there a ticket open for this issue?
Comment 10 Gayan Perera CLA 2018-04-06 12:49:04 EDT
(In reply to Eric Williams from comment #8)
> (In reply to Gayan Perera from comment #6)
> > I did ran eclipse oxygen with GTK3 and there is not problem of running
> > eclipse in GTK3 on Ubuntu 16.04 base ElementaryOS. But Photon M6 fails to
> > who the workspace selection window after the splash screen when running with
> > GTK3. This cannot be a Java version problem as well since with the same java
> > version GTK2 works.
> > 
> > So i believe this is a bug in SWT or Platform which is bundled in Photon M6.
> 
> Is there a ticket open for this issue?

https://bugs.eclipse.org/bugs/show_bug.cgi?id=533326
Comment 11 Gayan Perera CLA 2018-04-13 02:03:21 EDT
This rendering issue is not there when running with GTK3.
Comment 12 Eric Williams CLA 2018-04-13 11:05:39 EDT
(In reply to Gayan Perera from comment #11)
> This rendering issue is not there when running with GTK3.

GTK2 only bugs aren't really being investigated anymore, as manpower is limited and there are still many open GTK3 issues. If you have any "showstopper" GTK3 bugs (like bug 533326), please file them and add bug 527444 as a blocker.
Comment 13 Gayan Perera CLA 2018-04-15 00:58:06 EDT
(In reply to Eric Williams from comment #12)
> (In reply to Gayan Perera from comment #11)
> > This rendering issue is not there when running with GTK3.
> 
> GTK2 only bugs aren't really being investigated anymore, as manpower is
> limited and there are still many open GTK3 issues. If you have any
> "showstopper" GTK3 bugs (like bug 533326), please file them and add bug
> 527444 as a blocker.

Then i think you can close this issue.
Comment 14 Eric Williams CLA 2018-04-17 10:07:26 EDT
(In reply to Gayan Perera from comment #13)
> (In reply to Eric Williams from comment #12)
> > (In reply to Gayan Perera from comment #11)
> > > This rendering issue is not there when running with GTK3.
> > 
> > GTK2 only bugs aren't really being investigated anymore, as manpower is
> > limited and there are still many open GTK3 issues. If you have any
> > "showstopper" GTK3 bugs (like bug 533326), please file them and add bug
> > 527444 as a blocker.
> 
> Then i think you can close this issue.

Okay, thank you for following up.
Comment 15 Bing-Yi Wong CLA 2018-06-28 13:11:16 EDT
I am seeing this issue, too.  Since I have to work on CentOS6, I just can't switch to GTK3.  If this bug wouldn't be fix, then I am not able to upgrade to photon.

Based on my observation, this may be a simple bug - the distance from the buggy white vertical bar to the right edge of eclipse window looks like the same as from the left edge of sourceview to the left edge of eclipse window.  Looks like the box for redrawing is falsely offseted twice by the x-offset of sourceview.  Or maybe the coordinates of redrawing box is relative to the sourceview but falsely considered relative to the eclipse window.

If the bug is actually that simple, please help to fix it.