New question #703779 on SikuliX:
https://answers.launchpad.net/sikuli/+question/703779
So i'm trying to use SikulixIDE 2.0.5 to automate boring and repetitive tasks
in a game, in a small virtualbox window to save on system resources and to be
able to use my pc whilst the program is running. The original script that i'm
trying to downscale the images for works as desired on my pc, however (since
want to check if the image is recognised on the device i will be using it on
i'm also writing it inside of VirtualBox) when i declare any imported png image
in VirtualBox and then click on it, and then click on Matching Preview, the
Pattern Settings window freezes for a moment whereafter i receive the following
error in the message box;
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException:
Color parameter outside of expected range: Alpha
at java.awt.Color.testColorValueRange(Unknown Source)
at java.awt.Color.(Unknown Source)
at
org.sikuli.ide.PatternSimilaritySlider.getScoreColor(PatternSimilaritySlider.java:59)
at
org.sikuli.ide.PatternPaneScreenshot.paintMatches(PatternPaneScreenshot.java:298)
at
org.sikuli.ide.PatternPaneScreenshot.paintComponent(PatternPaneScreenshot.java:276)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown
Source)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown
Source)
at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager$4.run(Unknown Source)
at javax.swing.RepaintManager$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.access$1200(Unknown Source)
at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.d
ispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
This error only occurs after clicking Matching Preview, and the window
behind/under SikulixIDE is said game, and thus also the canvas to match preview
on, not when it's the desktop or browser, but if i check match preview on
desktop and then match preview on the game again i will still receive an error
every time even if i try to match preview on the desktop or anything else,
reimporting the image seems to "reset" this and then i'm able preview on the
desktop/browser without getting an error, which isn't what im wanting but it's
something. I've searched the internet for hours but been unable to find
anything on the issue where i would usually at least find someone with a
related or similar problem, and im also relatively unexperienced and
unaccustomed to scripting so i was hoping a master of the arts would be able to
recognise the problem i'm having here. i mean obviously its the transparency of
the image even though i'm not using images with shades of alpha in them, only 0
or max.
But i have no clue why the program works flawlessly on my pc but is giving me
the error on virtualbox
--
You received this question