← Back to team overview

sikuli-driver team mailing list archive

[Bug 1922785] Re: Sikuli hangs when using WaitBestList but works with FindBestList- need workaround

 

to be tested with 2.0.6

** Changed in: sikuli
       Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => Medium

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 2.0.6

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

Title:
  Sikuli hangs when using WaitBestList but works with FindBestList- need
  workaround

Status in SikuliX:
  In Progress

Bug description:
  when we use WaitBestList and set a particular region to search then sikuli hangs. however if we use findBestList then same code work.
  we have to finally kill it from taskbar. also we can see it is consume lot of memory and cpu
  example
      reg = Region(20,600,1240,20)
      #reg.highlight(5)
      name=["RichMediaToolsFeat","RichMediaToolsLocal"]

      reg.waitBestList(5,name) #does not work and hangs
      #reg.findBestList(name) #works fine

  also found out that if i give bigger region then it works and does not hang
  debug logs
  [debug] Region: Key.WIN as modifier
  [debug] ( Windows )  TYPE "#UP."
  [debug] Region: ( Windows )  TYPE "#UP."
  [debug] OCR: start: Tess4J 4.5.4 using Tesseract 4.1.x
  [debug] Finder2: makeMat: INT_RGB (1280x720)
  [debug] Finder2: doFindText: Home (1360 msec): not found
  [debug] waitBest: enter
  [debug] findAnyCollect: waiting for SubFindRuns
  [debug] Image: loaded: RichMediaToolsFeat.png (file:/C:/Perf/Work/Groups/AntiPirates/PDFNext/Automations/FeatTests/FEAT/Unified%20Share/UI_Automation/TestFiles/AcroUIImageRepo/RichMediaToolsFeat.png)
  [debug] Image: loaded: RichMediaToolsLocal.png (file:/C:/Perf/Work/Groups/AntiPirates/PDFNext/Automations/FeatTests/FEAT/Unified%20Share/UI_Automation/TestFiles/AcroUIImageRepo/RichMediaToolsLocal.png)
  [debug] Image: cached: RichMediaToolsFeat.png (26 KB) (# 1 KB 26 -- 0 % of 64 MB)
  [debug] Image: cached: RichMediaToolsLocal.png (27 KB) (# 2 KB 54 -- 0 % of 64 MB)
  [debug] Finder2: makeMat: INT_RGB (1240x20)
  [debug] Finder2: makeMat: 3BYTE_BGR (104x88)
  [debug] Finder2: makeMat: INT_RGB (1240x20)
  [debug] Finder2: makeMat: 3BYTE_BGR (105x91)

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



References