← Back to team overview

sikuli-driver team mailing list archive

[Bug 1795987] Re: [1.1.4] Exception when finding .png image (with transparency?)

 

fixed - a test would be appreciated.

** Changed in: sikuli
       Status: In Progress => Fix Committed

** Changed in: sikuli
   Importance: High => Critical

** Summary changed:

- [1.1.4] Exception when finding .png image (with transparency?)
+ [1.1.4] Exception when using grayscale images - fixed 2018-10-05

** Summary changed:

- [1.1.4] Exception when using grayscale images - fixed 2018-10-05
+ [1.1.4] Exception when using grayscale images - fixed 2018-10-05 build #101

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

Title:
  [1.1.4] Exception when using grayscale images - fixed 2018-10-05 build
  #101

Status in Sikuli:
  Fix Committed

Bug description:
  I'm getting the following exception when checking if an image exists.
  From what I can tell, the image doesn't have any visible transparency
  but the image is a .png. If I switch the image to a .jpg, it won't
  throw the exception. This is happening way too often for me to
  continue using 1.1.4 since I'm using a library of 1,000+ images.

  [error] script [ C:\Scripts\Automation\test.sikuli ] stopped with error at line --unknown--
  [error] Error caused by: Traceback (most recent call last):
    File "C:\Scripts\Automation\test.sikuli\test.py", line 13, in <module>
      gTest.run(main)
    File "C:\Scripts\Automation\Test_Framework.sikuli\Test_Framework.py", line 982, in run
      if func(vnc, *args) == True:
    File "C:\Scripts\Automation\Test_Framework.sikuli\Test_Framework.py", line 982, in run
      if func(vnc, *args) == True:
    File "C:\Scripts\Automation\test.sikuli\test.py", line 10, in main
      findImage(reg, img.optionYes[gTest.locale.act][gTest.Type], 3, 0, False)
    File "C:\Scripts\Automation\Test_Framework.sikuli\Test_Framework.py", line 408, in findImage
      match = reg.exists(n, 0)
  ]
          at org.opencv.imgproc.Imgproc.matchTemplate_1(Native Method)
          at org.opencv.imgproc.Imgproc.matchTemplate(Imgproc.java:2612)
          at org.sikuli.script.Finder2.doFindMatch(Finder2.java:353)
          at org.sikuli.script.Finder2.doFind(Finder2.java:327)
          at org.sikuli.script.Finder2.find(Finder2.java:79)
          at org.sikuli.script.Finder.find(Finder.java:244)
          at org.sikuli.script.Region.runFinder(Region.java:2863)
          at org.sikuli.script.Region.doFind(Region.java:2819)
          at org.sikuli.script.Region.access$300(Region.java:21)
          at org.sikuli.script.Region$RepeatableFind.run(Region.java:3077)
          at org.sikuli.script.Region$Repeatable.repeat(Region.java:3030)
          at org.sikuli.script.Region.exists(Region.java:2380)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
  org.opencv.core.CvException: CvException [org.opencv.core.CvException: cv::Exception: OpenCV(3.4.2) C:\build\3_4_winpack-bindings-win64-vc14-static\opencv\modules\imgproc\src\templmatch.cpp:1102: error: (-215:Assertion failed) (depth == 0 || depth == 5) && type == _templ.type() && _img.dims() <= 2 in function 'cv::matchTemplate'

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


References