[1.1.x] Linux: Capture: Problem with not recognized window borders

Bug #1704302 reported by RaiMan
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Medium
RaiMan

Bug Description

*************** problem description
- Linux Mint 18.2 with Cinnamon (latest versions)

Images created with SikuliX's capture feature (at the bottom created with Java's Robot createScreenCapture()) do not show what currently is seen on the screen.

Looking at these captured images. The active window loose its borders and shows the content of another window (another terminal) behind it. The inactive window behind the terminal (a firefox browser window) shows the borders but again with the content of another firefox window that was behind the visible one. I tested with a lot of open windows overlapped and not maximized.

- The active visible window loose its borders
- The inactive visible window retains its borders
- In all windows the content was replaced with the content located in the same place of another window of the same running program (seems the first it found from the list of active windows)

This bug is based on the question discussion:
https://answers.launchpad.net/sikuli/+question/647616

Thanks https://launchpad.net/~edmundo-valle for reporting and debugging.

He has collected more information: see comment #2

-------------------------------

Currently there is neither a workaround nor an idea for a solution, since the problem is created inside the Java/Linux interface.

A possible workaround sometimes mentioned: install and use OpenJDK 7

Revision history for this message
RaiMan (raimund-hocke) wrote :

@Edmundo
Thanks for your efforts tracking down the problem.

Is it possible, to switch off any GPU usage in your system.
The symptoms look like that Java Robot is accessing another graphics buffer than the WM does !?

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.2
Revision history for this message
Edmundo VN (edmundo-vn) wrote :

I found other complaints about this problem, it seems to be a problem with Ubuntu 16.04 or systems based on it, and seems to happen in any window manager.

In this forum it was already discussed:
http://forum.screenconnect.com/yaf_postst9582_Display-issues-with-Ubuntu-16-04.aspx

and here:
http://product.screenconnect.com/topics/780-ubuntu-1604-display-issues/

Their only solution was to "install OpenJDK 7".

References in Javas bug database of similar problems, it's there since moreless 2011:
http://bugs.java.com/view_bug.do?bug_id=6903034

RaiMan (raimund-hocke)
description: updated
description: updated
Revision history for this message
Edmundo VN (edmundo-vn) wrote :

To isolate a different version of Java I created a docker container with OpenJDK 7u131, it's working as expected so far.

RaiMan (raimund-hocke)
Changed in sikuli:
milestone: 1.1.2 → 1.1.3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.