[2.0.4] CvException "Sizes of input arguments do not match" with observeInBackground and automasked images --- GitHub #347
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Invalid
|
High
|
RaiMan |
Bug Description
now tracked in GitHub: https:/
-------
Hello,
I'm using SikuliX-2.0.1 on Windows 7, Java 8.
I'm trying to setup an "answer all" machine to get rid of unexpected popups in the middle of a procedure rollout.
To reproduce the issue, consider the following simple example:
(get image files in attachements)
(use this program to match images rdp_connect_
def clickNoHandler(
event.
event.repeat()
def clickYesHandler
event.
event.repeat()
def clickConnectHan
event.
event.repeat()
def answerAll():
onAppear(
onAppear(
onAppear(
observeInBa
answerAll()
popup("Terminate")
When started from the IDE, popup "Terminate" appears and nothing happens. After having stopped the program (clicking on the popup), message pan shows:
Exception in thread "Thread-37" CvException [org.opencv.
]
at org.opencv.
at org.opencv.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
.java:3876)
at java.lang.
I even tried with Sikulix-2.1.0 (built from commit 696314e322a07cc
Exception in thread "Thread-35" CvException [org.opencv.
]
at org.opencv.
at org.opencv.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
ion.java:3874)
at java.lang.
Commenting out third onAppear() line (the one with masked image) everything works perfectly. (though sometimes it is necessary the restart the IDE to recover from previous errors)
Masked image was created by deleting part of the picture. Note that using pattern matching outside of the observeInBackground context works perfectly with this image.
Thank-you for reading.
description: | updated |
description: | updated |
Changed in sikuli: | |
status: | In Progress → Fix Committed |
importance: | Medium → High |
Changed in sikuli: | |
status: | Fix Committed → In Progress |
Changed in sikuli: | |
status: | In Progress → Invalid |
Thanks for the complete information.
I have to check.