← Back to team overview

sikuli-driver team mailing list archive

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

 

Public bug reported:

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)

** Affects: sikuli
     Importance: Undecided
         Status: New

** Attachment added: "taskbar.PNG"
   https://bugs.launchpad.net/bugs/1922785/+attachment/5484868/+files/taskbar.PNG

-- 
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:
  New

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


Follow ups