Activity log for bug #1856719

Date Who What changed Old value New value Message
2019-12-17 15:01:35 Gilles Carry bug added bug
2019-12-17 15:01:35 Gilles Carry attachment added All needed pictures https://bugs.launchpad.net/bugs/1856719/+attachment/5313415/+files/report_bug.sikuli.pics.zip
2019-12-20 11:34:38 RaiMan sikuli: status New In Progress
2019-12-20 11:34:43 RaiMan sikuli: importance Undecided Medium
2019-12-20 11:34:46 RaiMan sikuli: assignee RaiMan (raimund-hocke)
2019-12-20 11:34:55 RaiMan sikuli: milestone 2.0.2
2019-12-20 11:35:45 RaiMan summary CvException "Sizes of input arguments do not match" with observeInBackground and automasked images [2.0.1] CvException "Sizes of input arguments do not match" with observeInBackground and automasked images
2020-05-12 09:22:23 RaiMan sikuli: milestone 2.0.2 2.0.5
2020-05-12 09:22:40 RaiMan summary [2.0.1] CvException "Sizes of input arguments do not match" with observeInBackground and automasked images [2.0.4] CvException "Sizes of input arguments do not match" with observeInBackground and automasked images
2020-05-12 09:30:18 RaiMan description 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_anyway.png and rdp_connection.png) def clickNoHandler(event): event.match.click("1576165706268.png") # "No" button event.repeat() def clickYesHandler(event): event.match.click("1576166585508.png") # "Yes" button event.repeat() def clickConnectHandler(event): event.match.below().click("1576589919586.png") # "Connect" button event.repeat() def answerAll(): onAppear(Pattern("1576166492962.png").exact(), clickYesHandler) # Image without a mask onAppear("1576589851448.png", clickConnectHandler) # Image without a mask onAppear(Pattern("1573829195078.png").exact().targetOffset(2,6), clickNoHandler) # Image WITH an automask observeInBackground() 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.core.CvException: cv::Exception: OpenCV(3.4.2) C:\build\3_4_winpack-bindings-win64-vc14-static\opencv\modules\core\src\arithm.cpp:659: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array' in function 'cv::arithm_op' ] at org.opencv.core.Core.multiply_2(Native Method) at org.opencv.core.Core.multiply(Core.java:1831) at org.sikuli.script.Finder$FindInput2.setAttributes(Finder.java:1419) at org.sikuli.script.Finder$Finder2.find(Finder.java:614) at org.sikuli.script.Finder.find(Finder.java:280) at org.sikuli.script.support.Observer.checkPatterns(Observer.java:217) at org.sikuli.script.support.Observer.update(Observer.java:366) at org.sikuli.script.Region.observeDo(Region.java:3809) at org.sikuli.script.Region.access$700(Region.java:23) at org.sikuli.script.Region$ObserverThread.run(Region .java:3876) at java.lang.Thread.run(Unknown Source) I even tried with Sikulix-2.1.0 (built from commit 696314e322a07cc47319e9cf5a4a500ca838f0fc) and got roughly the same thing. (with opencv 4.1.1, obiously) Exception in thread "Thread-35" CvException [org.opencv.core.CvException: cv::Exception: OpenCV(4.1.1) C:\build\master_winpack-bindings-win64-vc14-static\opencv\modules\core\src\arithm.cpp:663: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array' in function 'cv::arithm_op' ] at org.opencv.core.Core.multiply_2(Native Method) at org.opencv.core.Core.multiply(Core.java:4382) at org.sikuli.script.Finder$FindInput2.setAttributes(Finder.java:1444) at org.sikuli.script.Finder$Finder2.find(Finder.java:628) at org.sikuli.script.Finder.find(Finder.java:280) at org.sikuli.script.support.Observer.checkPatterns(Observer.java:217) at org.sikuli.script.support.Observer.update(Observer.java:366) at org.sikuli.script.Region.observeDo(Region.java:3807) at org.sikuli.script.Region.access$600(Region.java:22) at org.sikuli.script.Region$ObserverThread.run(Reg ion.java:3874) at java.lang.Thread.run(Unknown Source) 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. 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_anyway.png and rdp_connection.png) def clickNoHandler(event):     event.match.click("1576165706268.png") # "No" button     event.repeat() def clickYesHandler(event):     event.match.click("1576166585508.png") # "Yes" button     event.repeat() def clickConnectHandler(event):     event.match.below().click("1576589919586.png") # "Connect" button     event.repeat() def answerAll():     onAppear(Pattern("1576166492962.png").exact(), clickYesHandler) # Image without a mask     onAppear("1576589851448.png", clickConnectHandler) # Image without a mask     onAppear(Pattern("1573829195078.png").exact().targetOffset(2,6), clickNoHandler) # Image WITH an automask     observeInBackground() 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.core.CvException: cv::Exception: OpenCV(3.4.2) C:\build\3_4_winpack-bindings-win64-vc14-static\opencv\modules\core\src\arithm.cpp:659: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array' in function 'cv::arithm_op' ]         at org.opencv.core.Core.multiply_2(Native Method)         at org.opencv.core.Core.multiply(Core.java:1831)         at org.sikuli.script.Finder$FindInput2.setAttributes(Finder.java:1419)         at org.sikuli.script.Finder$Finder2.find(Finder.java:614)         at org.sikuli.script.Finder.find(Finder.java:280)         at org.sikuli.script.support.Observer.checkPatterns(Observer.java:217)         at org.sikuli.script.support.Observer.update(Observer.java:366)         at org.sikuli.script.Region.observeDo(Region.java:3809)         at org.sikuli.script.Region.access$700(Region.java:23)         at org.sikuli.script.Region$ObserverThread.run(Region .java:3876)         at java.lang.Thread.run(Unknown Source) I even tried with Sikulix-2.1.0 (built from commit 696314e322a07cc47319e9cf5a4a500ca838f0fc) and got roughly the same thing. (with opencv 4.1.1, obiously) Exception in thread "Thread-35" CvException [org.opencv.core.CvException: cv::Exception: OpenCV(4.1.1) C:\build\master_winpack-bindings-win64-vc14-static\opencv\modules\core\src\arithm.cpp:663: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array' in function 'cv::arithm_op' ]         at org.opencv.core.Core.multiply_2(Native Method)         at org.opencv.core.Core.multiply(Core.java:4382)         at org.sikuli.script.Finder$FindInput2.setAttributes(Finder.java:1444)         at org.sikuli.script.Finder$Finder2.find(Finder.java:628)         at org.sikuli.script.Finder.find(Finder.java:280)         at org.sikuli.script.support.Observer.checkPatterns(Observer.java:217)         at org.sikuli.script.support.Observer.update(Observer.java:366)         at org.sikuli.script.Region.observeDo(Region.java:3807)         at org.sikuli.script.Region.access$600(Region.java:22)         at org.sikuli.script.Region$ObserverThread.run(Reg ion.java:3874)         at java.lang.Thread.run(Unknown Source) 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.
2020-05-12 09:35:14 RaiMan description 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_anyway.png and rdp_connection.png) def clickNoHandler(event):     event.match.click("1576165706268.png") # "No" button     event.repeat() def clickYesHandler(event):     event.match.click("1576166585508.png") # "Yes" button     event.repeat() def clickConnectHandler(event):     event.match.below().click("1576589919586.png") # "Connect" button     event.repeat() def answerAll():     onAppear(Pattern("1576166492962.png").exact(), clickYesHandler) # Image without a mask     onAppear("1576589851448.png", clickConnectHandler) # Image without a mask     onAppear(Pattern("1573829195078.png").exact().targetOffset(2,6), clickNoHandler) # Image WITH an automask     observeInBackground() 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.core.CvException: cv::Exception: OpenCV(3.4.2) C:\build\3_4_winpack-bindings-win64-vc14-static\opencv\modules\core\src\arithm.cpp:659: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array' in function 'cv::arithm_op' ]         at org.opencv.core.Core.multiply_2(Native Method)         at org.opencv.core.Core.multiply(Core.java:1831)         at org.sikuli.script.Finder$FindInput2.setAttributes(Finder.java:1419)         at org.sikuli.script.Finder$Finder2.find(Finder.java:614)         at org.sikuli.script.Finder.find(Finder.java:280)         at org.sikuli.script.support.Observer.checkPatterns(Observer.java:217)         at org.sikuli.script.support.Observer.update(Observer.java:366)         at org.sikuli.script.Region.observeDo(Region.java:3809)         at org.sikuli.script.Region.access$700(Region.java:23)         at org.sikuli.script.Region$ObserverThread.run(Region .java:3876)         at java.lang.Thread.run(Unknown Source) I even tried with Sikulix-2.1.0 (built from commit 696314e322a07cc47319e9cf5a4a500ca838f0fc) and got roughly the same thing. (with opencv 4.1.1, obiously) Exception in thread "Thread-35" CvException [org.opencv.core.CvException: cv::Exception: OpenCV(4.1.1) C:\build\master_winpack-bindings-win64-vc14-static\opencv\modules\core\src\arithm.cpp:663: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array' in function 'cv::arithm_op' ]         at org.opencv.core.Core.multiply_2(Native Method)         at org.opencv.core.Core.multiply(Core.java:4382)         at org.sikuli.script.Finder$FindInput2.setAttributes(Finder.java:1444)         at org.sikuli.script.Finder$Finder2.find(Finder.java:628)         at org.sikuli.script.Finder.find(Finder.java:280)         at org.sikuli.script.support.Observer.checkPatterns(Observer.java:217)         at org.sikuli.script.support.Observer.update(Observer.java:366)         at org.sikuli.script.Region.observeDo(Region.java:3807)         at org.sikuli.script.Region.access$600(Region.java:22)         at org.sikuli.script.Region$ObserverThread.run(Reg ion.java:3874)         at java.lang.Thread.run(Unknown Source) 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. now tracked in GitHub: https://github.com/RaiMan/SikuliX1/issues/347 ------------------------------------------------------------------------ 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_anyway.png and rdp_connection.png) def clickNoHandler(event):     event.match.click("1576165706268.png") # "No" button     event.repeat() def clickYesHandler(event):     event.match.click("1576166585508.png") # "Yes" button     event.repeat() def clickConnectHandler(event):     event.match.below().click("1576589919586.png") # "Connect" button     event.repeat() def answerAll():     onAppear(Pattern("1576166492962.png").exact(), clickYesHandler) # Image without a mask     onAppear("1576589851448.png", clickConnectHandler) # Image without a mask     onAppear(Pattern("1573829195078.png").exact().targetOffset(2,6), clickNoHandler) # Image WITH an automask     observeInBackground() 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.core.CvException: cv::Exception: OpenCV(3.4.2) C:\build\3_4_winpack-bindings-win64-vc14-static\opencv\modules\core\src\arithm.cpp:659: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array' in function 'cv::arithm_op' ]         at org.opencv.core.Core.multiply_2(Native Method)         at org.opencv.core.Core.multiply(Core.java:1831)         at org.sikuli.script.Finder$FindInput2.setAttributes(Finder.java:1419)         at org.sikuli.script.Finder$Finder2.find(Finder.java:614)         at org.sikuli.script.Finder.find(Finder.java:280)         at org.sikuli.script.support.Observer.checkPatterns(Observer.java:217)         at org.sikuli.script.support.Observer.update(Observer.java:366)         at org.sikuli.script.Region.observeDo(Region.java:3809)         at org.sikuli.script.Region.access$700(Region.java:23)         at org.sikuli.script.Region$ObserverThread.run(Region .java:3876)         at java.lang.Thread.run(Unknown Source) I even tried with Sikulix-2.1.0 (built from commit 696314e322a07cc47319e9cf5a4a500ca838f0fc) and got roughly the same thing. (with opencv 4.1.1, obiously) Exception in thread "Thread-35" CvException [org.opencv.core.CvException: cv::Exception: OpenCV(4.1.1) C:\build\master_winpack-bindings-win64-vc14-static\opencv\modules\core\src\arithm.cpp:663: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array' in function 'cv::arithm_op' ]         at org.opencv.core.Core.multiply_2(Native Method)         at org.opencv.core.Core.multiply(Core.java:4382)         at org.sikuli.script.Finder$FindInput2.setAttributes(Finder.java:1444)         at org.sikuli.script.Finder$Finder2.find(Finder.java:628)         at org.sikuli.script.Finder.find(Finder.java:280)         at org.sikuli.script.support.Observer.checkPatterns(Observer.java:217)         at org.sikuli.script.support.Observer.update(Observer.java:366)         at org.sikuli.script.Region.observeDo(Region.java:3807)         at org.sikuli.script.Region.access$600(Region.java:22)         at org.sikuli.script.Region$ObserverThread.run(Reg ion.java:3874)         at java.lang.Thread.run(Unknown Source) 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.
2020-05-12 09:35:41 RaiMan summary [2.0.4] CvException "Sizes of input arguments do not match" with observeInBackground and automasked images [2.0.4] CvException "Sizes of input arguments do not match" with observeInBackground and automasked images --- GitHub #347
2020-05-12 09:36:04 RaiMan bug watch added https://github.com/RaiMan/SikuliX1/issues/347
2021-02-09 08:12:52 RaiMan sikuli: status In Progress Fix Committed
2021-02-09 08:12:56 RaiMan sikuli: importance Medium High
2021-02-09 16:13:32 RaiMan sikuli: status Fix Committed In Progress
2021-02-14 14:28:14 RaiMan sikuli: status In Progress Invalid
2021-02-24 06:18:08 Marcos Vinícius removed subscriber Marcos Vinícius