Bug 536515 - Corruption of display when adding/deleting a line in Linux VM under Windows 10 Virtual Box
Summary: Corruption of display when adding/deleting a line in Linux VM under Windows 1...
Status: CLOSED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.8   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2018-06-29 13:19 EDT by Charles Scott CLA
Modified: 2018-07-13 10:12 EDT (History)
3 users (show)

See Also:


Attachments
Image of display corruption showing border offset in editor on the right. (334.25 KB, image/png)
2018-06-29 13:19 EDT, Charles Scott CLA
no flags Details
Closer view of problem (86.62 KB, image/png)
2018-06-29 13:20 EDT, Charles Scott CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Scott CLA 2018-06-29 13:19:09 EDT
Created attachment 274704 [details]
Image of display corruption showing border offset in editor on the right.

I'm running Photon 4.8.0 build 20180619-1200 in an Umbuntu 16.04 Virtual Machine under VirtualBox 5.2.12r122591(Qt5.6.2) running on a Windows 10 Pro 64 Bit 1709 build 16299.492 Host. 

When editing a PHP file with PHP editor, if I insert a new line or delete one at times I get corruption of the display as shown in the attached image where an area of the display is replicated in the current editor. The part that is replicated is from the right and displays over the current editor. This area is returned to normal when highlighting the corrupted area, scrolling the content, or selecting another editor. 

This problem did not exist before updating to Photon. I was previously running Neon.

I normally run VirtualBox in seamless display mode but this happens in any other display mode for VitrualBox. 

Note that I do not run Eclipse natively on any system, only under VirtualBox, so I can't test that way.
Comment 1 Charles Scott CLA 2018-06-29 13:20:46 EDT
Created attachment 274705 [details]
Closer view of problem
Comment 2 Patrik Suzzi CLA 2018-06-30 05:55:19 EDT
This seems an SWT issue.
Comment 3 Thomas Wolf CLA 2018-07-01 07:07:47 EDT
Duplicate of bug 536458?

Note that 536458 was reported against CDT on Windows. So if it's SWT, it's probably in the platform-independent part.

There have been many changes in StyledText in Photon.
Comment 4 Charles Scott CLA 2018-07-01 10:35:40 EDT
Per the reference in 536458 to using Env SWT_GTK3=0, I checked any I do have that set and still have the display corruption problem. 

I believe I set that Env variable some time ago for a similar problem with an earlier version of Eclipse.
Comment 5 Charles Scott CLA 2018-07-13 10:10:46 EDT
It turns out that having SWT_GTK3=0 was preventing my system from working correctly. Switching that to force GTK3 (SWT_GTK3=1) seems to have solved the problem with display corruption.
Comment 6 Eric Williams CLA 2018-07-13 10:12:33 EDT
(In reply to Charles Scott from comment #5)
> It turns out that having SWT_GTK3=0 was preventing my system from working
> correctly. Switching that to force GTK3 (SWT_GTK3=1) seems to have solved
> the problem with display corruption.

Okay, thanks for following up. Please reopen this ticket if you see the issue on GTK3.