← Back to team overview

sikuli-driver team mailing list archive

[Bug 1817962] [NEW] intermittent error j < nsrcs && src[j].depth() == depth

 

Public bug reported:

I am trying to figure out this intermittent error that sometimes shows
up after the script has run for some time:

[error (27/02/2019, 17:38:38)] Error caused by: Traceback (most recent call last):
  File "C:\SikuliX\project.sikuli\project.py", line 884, in <module>
    lookForExit()
  File "C:\SikuliX\project.sikuli\project.py", line 822, in lookForExit
    if regionArrows.exists(arrRB,0.5) and Dir == "L":
]
	at org.opencv.core.Core.mixChannels_0(Native Method)
	at org.opencv.core.Core.mixChannels(Core.java:1740)
	at org.sikuli.script.Finder2.makeMat(Finder2.java:494)
	at org.sikuli.script.Finder2.makeMat(Finder2.java:477)
	at org.sikuli.script.Finder.setScreenImage(Finder.java:144)
	at org.sikuli.script.Finder.initScreenFinder(Finder.java:139)
	at org.sikuli.script.Finder.<init>(Finder.java:124)
	at org.sikuli.script.Region.doCheckLastSeenAndCreateFinder(Region.java:2938)
	at org.sikuli.script.Region.checkLastSeenAndCreateFinder(Region.java:2899)
	at org.sikuli.script.Region.doFind(Region.java:2846)
	at org.sikuli.script.Region.access$300(Region.java:21)
	at org.sikuli.script.Region$RepeatableFind.run(Region.java:3109)
	at org.sikuli.script.Region$Repeatable.repeat(Region.java:3060)
	at org.sikuli.script.Region.exists(Region.java:2376)
	at jdk.internal.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
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\core\src\channels.cpp:128: error: (-215:Assertion failed) j < nsrcs && src[j].depth() == depth in function 'cv::mixChannels'
]

This is running on Windows 7 64 bit
Standard SikuliX installation on 1.1.4 latest nightly build. No custom libraries or any fancy stuff. The "C:\build" does not exist on this machine, but not sure if that is a problem, it just refers to the original source file pre-compilation perhaps?

I've attached the image file thats being used in that search function.
Note that it was saved as PNG using Paint after it was cropped from the
original SikuliX captured file.

I don't see any other correlations with something else happening at the
time these errors are thrown. They seem fairly random to me.

Initial research suggest something to do with OpenCV mixChannels not
accepting the particular image format/colour depth or so on. But It
could be because something else of course?

** Affects: sikuli
     Importance: Undecided
         Status: New

** Attachment added: "image file used for the function in question"
   https://bugs.launchpad.net/bugs/1817962/+attachment/5242147/+files/arrR.png

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

Title:
  intermittent error j < nsrcs && src[j].depth() == depth

Status in Sikuli:
  New

Bug description:
  I am trying to figure out this intermittent error that sometimes shows
  up after the script has run for some time:

  [error (27/02/2019, 17:38:38)] Error caused by: Traceback (most recent call last):
    File "C:\SikuliX\project.sikuli\project.py", line 884, in <module>
      lookForExit()
    File "C:\SikuliX\project.sikuli\project.py", line 822, in lookForExit
      if regionArrows.exists(arrRB,0.5) and Dir == "L":
  ]
  	at org.opencv.core.Core.mixChannels_0(Native Method)
  	at org.opencv.core.Core.mixChannels(Core.java:1740)
  	at org.sikuli.script.Finder2.makeMat(Finder2.java:494)
  	at org.sikuli.script.Finder2.makeMat(Finder2.java:477)
  	at org.sikuli.script.Finder.setScreenImage(Finder.java:144)
  	at org.sikuli.script.Finder.initScreenFinder(Finder.java:139)
  	at org.sikuli.script.Finder.<init>(Finder.java:124)
  	at org.sikuli.script.Region.doCheckLastSeenAndCreateFinder(Region.java:2938)
  	at org.sikuli.script.Region.checkLastSeenAndCreateFinder(Region.java:2899)
  	at org.sikuli.script.Region.doFind(Region.java:2846)
  	at org.sikuli.script.Region.access$300(Region.java:21)
  	at org.sikuli.script.Region$RepeatableFind.run(Region.java:3109)
  	at org.sikuli.script.Region$Repeatable.repeat(Region.java:3060)
  	at org.sikuli.script.Region.exists(Region.java:2376)
  	at jdk.internal.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  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\core\src\channels.cpp:128: error: (-215:Assertion failed) j < nsrcs && src[j].depth() == depth in function 'cv::mixChannels'
  ]

  This is running on Windows 7 64 bit
  Standard SikuliX installation on 1.1.4 latest nightly build. No custom libraries or any fancy stuff. The "C:\build" does not exist on this machine, but not sure if that is a problem, it just refers to the original source file pre-compilation perhaps?

  I've attached the image file thats being used in that search function.
  Note that it was saved as PNG using Paint after it was cropped from
  the original SikuliX captured file.

  I don't see any other correlations with something else happening at
  the time these errors are thrown. They seem fairly random to me.

  Initial research suggest something to do with OpenCV mixChannels not
  accepting the particular image format/colour depth or so on. But It
  could be because something else of course?

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


Follow ups