Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 507938

Summary: Mouse pointer draws with white non-transparent rectangle with GTK3
Product: [Eclipse Project] Platform Reporter: Jan Kožusznik <jan>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: ericwill, nyssen, pierre-charles.david
Version: 4.7Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Photo (by camera) of a syndrome of the bug
none
Screenshot of the issue none

Description Jan Kožusznik CLA 2016-11-22 06:36:22 EST
Created attachment 265506 [details]
Photo (by camera) of a syndrome of the bug

The bug appears in application Papyrus. During edition of some UML diagram (e.g. class diagram) is some times changed pointer of mouse – base on context of operation. This changed mouse pointer is drawn with white non-transparent rectangle(see attachment).
The same bug appears also in different project – UML Designer.

When I start application with GTK 3 disabled this syndrome doesn’t appear. 
My system configuration:
System: Ubuntu 16.04.1 LTE,
Memory: 32GB
Processor: Intel® Core™ i7-6820HQ CPU @ 2.70GHz × 8 
Graphics: ntel® HD Graphics 530 (Skylake GT2) 
OS Type: 64-bit

Application versions:
Papyrus: ver. 2.0.1.201609141603) – based on Version: Neon (4.6.0),Build id: 2016-10-05T09:32:18. 
UML designer: ver. 7.0.0.201608031416 - installed into eclipse: Version: Neon.1a Release (4.6.1), Build id: 20161007-1200
Comment 1 Alexander Nyßen CLA 2017-05-01 13:46:31 EDT
Reassigning to SWT, as this is not a GEF bug.
Comment 2 Eric Williams CLA 2018-06-15 15:44:45 EDT
Do you still experience this issue on 4.8?
Comment 3 Pierre-Charles David CLA 2018-06-17 09:23:21 EDT
Created attachment 274484 [details]
Screenshot of the issue

Yes, I'm still seeing it using the latest Photon:
- Build id: I20180611-0500
- org.eclipse.swt 3.107.0.v20180611-0422
- org.eclipse.swt.internal.gtk.version=3.22.11

Note that on the attached screenshot, the vertical & horizontal lines are normal (they are "snap to shape" guides).
Comment 4 Eric Williams CLA 2018-06-18 10:19:19 EDT
(In reply to Pierre-Charles David from comment #3)
> Created attachment 274484 [details]
> Screenshot of the issue
> 
> Yes, I'm still seeing it using the latest Photon:
> - Build id: I20180611-0500
> - org.eclipse.swt 3.107.0.v20180611-0422
> - org.eclipse.swt.internal.gtk.version=3.22.11
> 
> Note that on the attached screenshot, the vertical & horizontal lines are
> normal (they are "snap to shape" guides).

Do you by any chance have an SWT snippet that reproduces this issue? I'm not sure how this rectangle is even being constructed.
Comment 5 Pierre-Charles David CLA 2018-06-19 03:09:45 EDT
(In reply to Eric Williams from comment #4)
> (In reply to Pierre-Charles David from comment #3)
> > Created attachment 274484 [details]
> > Screenshot of the issue
> > 
> > Yes, I'm still seeing it using the latest Photon:
> > - Build id: I20180611-0500
> > - org.eclipse.swt 3.107.0.v20180611-0422
> > - org.eclipse.swt.internal.gtk.version=3.22.11
> > 
> > Note that on the attached screenshot, the vertical & horizontal lines are
> > normal (they are "snap to shape" guides).
> 
> Do you by any chance have an SWT snippet that reproduces this issue? I'm not
> sure how this rectangle is even being constructed.

I don't have an independent snippet, but I believe the "offending" code is in [1], which creates image-based custom cursors, with GIF (or BMP) files for the cursor and its mask. For example in my screenshot I believe the cursor is set to SharedCursors.CURSOR_TREE_ADD, which uses [2] as its image, and [3] as its mask.

[1] https://github.com/eclipse/gef-legacy/blob/master/org.eclipse.gef/src/org/eclipse/gef/SharedCursors.java
[2] https://github.com/eclipse/gef-legacy/blob/master/org.eclipse.gef/src/org/eclipse/gef/internal/icons/Tree_Add.gif
[3] https://github.com/eclipse/gef-legacy/blob/master/org.eclipse.gef/src/org/eclipse/gef/internal/icons/Tree_Add_Mask.gif
Comment 6 Eric Williams CLA 2018-07-06 13:30:40 EDT
Is this a duplicate of bug 467983?
Comment 7 Pierre-Charles David CLA 2018-07-11 04:43:56 EDT
(In reply to Eric Williams from comment #6)
> Is this a duplicate of bug 467983?

Looks like it, closing.

Jan, as the original reporter of this one feel free to reopen if you disagree.

*** This bug has been marked as a duplicate of bug 467983 ***