[1.0.1] Linux: Matching preview not working
Bug #1220575 reported by
shi.zhao
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
In Progress
|
Medium
|
RaiMan |
Bug Description
This is a Linux only issue (java version "1.7.0_25")
Open IDE editor, click a image saved before. Click "Matching Preview", it will not work. You can got error message from console:
Exception in thread "AWT-EventQueue-0" java.lang.
at java.awt.
at java.awt.
at org.sikuli.
at org.sikuli.
at javax.swing.
... more
description: | updated |
Changed in sikuli: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | none → 1.1.0 |
summary: |
- Matching preview error: java.lang.IllegalArgumentException + [1.0.1] Linux: Matching preview not working |
To post a comment you must log in.
Hello RaiMan,
This issue is also affecting me. I did some debugging and found the origin of the problem.
In the method org.sikuli. ide.PatternSimi laritySlider. getScoreColor( double score) there is the following:
// map alpha to 20~150
Color cMask = new Color(
c.getRed(), c.getGreen(), c.getBlue(), 20 + (int) (score * 130));
The values passed in here for the new color are:
0, 255, 128, 258.
The 258 is the problem as the maximum allowed is 255.
In my case, the score is 1.8333333730697632. I am not entirely sure yet how the Similarity works, so I cannot really tell if this score is correct or not.