← Back to team overview

sikuli-driver team mailing list archive

[Bug 1086238] [NEW] Sikuli throws StackOverflowError when capturing a screenshot on a webpage already has opacity

 

Public bug reported:

Sikuli r930 for Windows 7 SP1 64-bit.

When on a page which has a layer of opacity set around a particular
window (to draw attention to it and prevent focus to other parts of the
page), Sikuli`s capture screenshot gesture throws a huge
StackOverflowError:

Exception in thread "capture" java.lang.StackOverflowError
at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java:18)
at java.awt.Window$1.setOpacity(Unknown Source)
at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java:18)
at java.awt.Window$1.setOpacity(Unknown Source)
at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java:18)
at java.awt.Window$1.setOpacity(Unknown Source)
at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java:18)
at java.awt.Window$1.setOpacity(Unknown Source)
at com.sun.awt.AWTUtilities.setWindowOpacity(Unknow
n Source)
... and repeated the same stack dozens of times.

In my case, I was logged-into a browser-based game and attempted to try
capturing part of the screen in Sikuli and it failed. This is
reproducible every time. The full stack and a screenshot of the webpage
are attached.

** Affects: sikuli
     Importance: Undecided
         Status: New

** Attachment added: "StackOverflowError.zip"
   https://bugs.launchpad.net/bugs/1086238/+attachment/3451141/+files/StackOverflowError.zip

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1086238

Title:
  Sikuli throws StackOverflowError when capturing a screenshot on a
  webpage already has opacity

Status in Sikuli:
  New

Bug description:
  Sikuli r930 for Windows 7 SP1 64-bit.

  When on a page which has a layer of opacity set around a particular
  window (to draw attention to it and prevent focus to other parts of
  the page), Sikuli`s capture screenshot gesture throws a huge
  StackOverflowError:

  Exception in thread "capture" java.lang.StackOverflowError
  at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java:18)
  at java.awt.Window$1.setOpacity(Unknown Source)
  at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
  at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
  at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java:18)
  at java.awt.Window$1.setOpacity(Unknown Source)
  at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
  at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
  at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java:18)
  at java.awt.Window$1.setOpacity(Unknown Source)
  at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
  at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
  at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java:18)
  at java.awt.Window$1.setOpacity(Unknown Source)
  at com.sun.awt.AWTUtilities.setWindowOpacity(Unknow
  n Source)
  ... and repeated the same stack dozens of times.

  In my case, I was logged-into a browser-based game and attempted to
  try capturing part of the screen in Sikuli and it failed. This is
  reproducible every time. The full stack and a screenshot of the
  webpage are attached.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1086238/+subscriptions


Follow ups

References