Re: [Sikuli-driver] [Question #692436]: struck at screen starting on java11

2020-08-19 Thread Prabhas Koya
Question #692436 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692436

Prabhas Koya posted a new comment:
First try these before installing jdk and if its success ok or else try
going for newer versions at your time and try.hope it helps

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #692436]: struck at screen starting on java11

2020-08-19 Thread Prabhas Koya
Question #692436 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692436

Status: Open => Solved

Prabhas Koya confirmed that the question is solved:
For future readers  here in 
https://answers.launchpad.net/sikuli/+question/691091 and mine same problem so 
if any one have this problem better way is to check for jdk update and go for 
new install of it and try restarting the ide on new version ,you wil get if not 
then.
I did the same but it did not solve for me what i did is after installing , 
removed the .sikuli folder so that there would be no jython for ide  then the 
ide ran and i closed it and again restored the jython from .sikuli to here so 
that it would take it over . if this too fails try reinstalling jar and check 
updates go for updated version , try removing .sikuli for any improvements and 
in this way you can solve your problem...!!

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #692455]: [How to] Persistent Script

2020-08-19 Thread Javier Gonzales Rodriguez
Question #692455 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692455

Javier Gonzales Rodriguez posted a new comment:
thanks for your reply,

Well, i was looking something like this:
https://www.autohotkey.com/docs/commands/_Persistent.htm

I didnt try just creating a loop on the new script and importing it from
the main script honestly, i thought that maybe there was another way
like the information on the link.

Masuo, thanks man, I forget the observing, am gonna make some tests, it
might work too.

Thanks!

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #692455]: [How to] Persistent Script

2020-08-19 Thread masuo
Question #692455 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692455

masuo proposed the following answer:
@Javier Gonzales Rodriguez
feature "Observing Visual Events in a Region" is useful in some cases.
https://sikulix-2014.readthedocs.io/en/latest/region.html?highlight=onappear#observing-visual-events-in-a-region

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #692455]: [How to] Persistent Script

2020-08-19 Thread Prabhas Koya
Question #692455 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692455

Status: Open => Answered

Prabhas Koya proposed the following answer:
you can import one script to other script and run both .But if you want
to run differently , running two at a time that is not possible  .Better
way is to import and create a script with your running script so that
you can run both in ide.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #692206]: Best install method for linux mint ver20?

2020-08-19 Thread Javier Gonzales Rodriguez
Question #692206 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692206

Javier Gonzales Rodriguez requested more information:
Hi Arminius,

It is compatible, am using mint 19 + and 20 and it works!

install the jython-installer-2.7.1.jar, and then sikulixide-2.0.4.jar

Open sikulixIDE and then go to "file>open special files" . and change this 
line, example:  jython = /home/mint/jython2.7.1/jython.jar
Save it, close and open the sikulixIDE again.

then run all this commands:
sudo apt install libcanberra-gtk0 libcanberra-gtk-module
sudo apt install libopencv4.2-java openjdk-11-jre-headless
cd /usr/lib/jni/
sudo ln -s libopencv_java420.so libopencv_java.so
sudo apt-get install xdotool
sudo apt-get install wmctrl
sudo add-apt-repository ppa:alex-p/tesseract-ocr
sudo apt-get update
sudo apt install tesseract-ocr
sudo apt install libtesseract-dev
sudo ldconfig


hope this helps.

Regards!

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #692455]: [How to] Persistent Script

2020-08-19 Thread Javier Gonzales Rodriguez
Question #692455 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692455

Status: Needs information => Open

Javier Gonzales Rodriguez gave more information on the question:
Hi Prabhas,

I wish to know how to run a persistent script ... is like to run two
scripts at the same time on the sikulixIDE, right now I have one script
running.

Regards!

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #692205]: HOW TO SYNC TIME IN SIKULI

2020-08-19 Thread Launchpad Janitor
Question #692205 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692205

Status: Open => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Open' state
without activity for the last 15 days.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Bug 1892161] Re: IDE crash when OCR does not find anything. Only 272 unsuccessful calls of text() possible

2020-08-19 Thread Michael Böhm
** Summary changed:

- IDE crash
+ IDE crash when OCR does not find anything. Only 272 unsuccessful calls of 
text()  possible

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

Title:
  IDE crash when OCR does not find anything. Only 272 unsuccessful calls
  of text()  possible

Status in Sikuli:
  New

Bug description:
  Hi!

  I am using Sikulix 2.0.4 on Windows 10 64bit, JAVA 11, 2 large sized
  Monitors (3440x1440 + 2560x1440 as one display, NVIDIA).

  Sikulix crashes (meaning: it does not process anymore, does not write
  logfiles, ALT-SHIFT-C does not work, JAVA needs to be killed in
  taskmanager to restart sikulix) within following function in about 1
  of 10 cases. only when it tries to OCR read text in an area where
  there is no text:

  def text_shrink(Reg):  # continously decrease region until OCR gets a match
  texts=False
  Reg=Reg.grow(30,30,0,0) 
  while (texts==False or len(texts)<=2) and Reg.getW()>20:
  Reg=Reg.grow(-30,-30,0,0) 
  texts=ExtractAlphanumeric_all(Reg.text()).strip()#crash here 
on OCR  
  return texts

  The images for this particular run where the crash happend is
  attached.

  Here the debug log (4):

  [debug (19.08.20, 10:33:21)] RunTime:loadlib: trying opencv_java342
  [debug (19.08.20, 10:33:21)] RunTime:loadLib: opencv_java342.dll already 
loaded
  [debug (19.08.20, 10:33:21)] OCR: start: Tess4J 4.4.1 using Tesseract 4.1.0
  [debug (19.08.20, 10:33:21)] RobotDesktop: captureScreen: [824,1291, 224x67]
  [debug (19.08.20, 10:33:21)] Image: BufferedImage: (224, 67)
  [debug (19.08.20, 10:33:21)] Image: getImage inMemory: __BufferedImage__
  [debug (19.08.20, 10:33:21)] Finder2: makeMat: INT_RGB (224x67)
  [debug (19.08.20, 10:33:21)] RunTime:loadlib: trying opencv_java342
  [debug (19.08.20, 10:33:21)] RunTime:loadLib: opencv_java342.dll already 
loaded
  [debug (19.08.20, 10:33:21)] OCR: start: Tess4J 4.4.1 using Tesseract 4.1.0
  [debug (19.08.20, 10:33:21)] RobotDesktop: captureScreen: [854,1291, 164x67]
  [debug (19.08.20, 10:33:21)] Image: BufferedImage: (164, 67)
  [debug (19.08.20, 10:33:21)] Image: getImage inMemory: __BufferedImage__
  [debug (19.08.20, 10:33:21)] Finder2: makeMat: INT_RGB (164x67)
  [debug (19.08.20, 10:33:21)] RunTime:loadlib: trying opencv_java342
  [debug (19.08.20, 10:33:21)] RunTime:loadLib: opencv_java342.dll already 
loaded
  [debug (19.08.20, 10:33:21)] OCR: start: Tess4J 4.4.1 using Tesseract 4.1.0
  [debug (19.08.20, 10:33:21)] RobotDesktop: captureScreen: [884,1291, 104x67]
  [debug (19.08.20, 10:33:21)] Image: BufferedImage: (104, 67)
  [debug (19.08.20, 10:33:21)] Image: getImage inMemory: __BufferedImage__
  [debug (19.08.20, 10:33:21)] Finder2: makeMat: INT_RGB (104x67)
  [debug (19.08.20, 10:41:22)] IDE: AbortKey was pressed: aborting all running 
scripts
  [debug (19.08.20, 10:41:31)] IDE: AbortKey was pressed: aborting all running 
scripts
  [debug (19.08.20, 10:43:19)] IDE: AbortKey was pressed: aborting all running 
scripts
  [debug (19.08.20, 10:43:20)] IDE: AbortKey was pressed: aborting all running 
scripts

  
  Thanks a lot
  Michael

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #692455]: [How to] Persistent Script

2020-08-19 Thread Prabhas Koya
Question #692455 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692455

Status: Open => Needs information

Prabhas Koya requested more information:
can you  tell what actually you want to ask?
do you want to loop over to find if image exists or not and do according to it?
a regular image check!

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #692436]: struck at screen starting on java11

2020-08-19 Thread Prabhas Koya
Question #692436 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692436

Prabhas Koya gave more information on the question:
https://answers.launchpad.net/sikuli/+question/691091 this is
similar to mine but i am on a dual boot and mine is bodhi linux and my
java is 11 .i tried to install java 14 and run but same it strucks

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Bug 1892161] Re: IDE crash

2020-08-19 Thread Michael Böhm
Hi! Some more findings:

Using the "reproduce script":
*) It does NOT crash, when OCR finds a text.
*) It crashes also at counter 272 for different Regions/images, however:
  -) it does not crash (also not later) when I select a Region with "easy" 
background (not many patterns)
  -) taking a much bigger region results in no difference
  -) finding a word in the meantime makes no difference, the script always 
crashes at 272
  -) OCR.reset() in the meantime makes no difference, still crash at 272
  -) replace Reg.text() to OCR.readText() - same, still crash at 272
  -) OCR.readLine(), readWord, readChar are also crashing (different count 
(=128)), even tough they 
find characters in any pattern.
  -) Doing OCR alternatively on word and on non-word patterns let it crash 
earlier (at 172)
  -) Doing OCR on words only does not crash within 1000  runs
  -) OEM=0, PSM=8 also crash
  -) OEM=0, PSM=2 also crash

I hope I found some useful information.

I was not able to find a workaround (other than avoiding OCR on non
text).

Good luck
Best Regards
Michael

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

Title:
  IDE crash

Status in Sikuli:
  New

Bug description:
  Hi!

  I am using Sikulix 2.0.4 on Windows 10 64bit, JAVA 11, 2 large sized
  Monitors (3440x1440 + 2560x1440 as one display, NVIDIA).

  Sikulix crashes (meaning: it does not process anymore, does not write
  logfiles, ALT-SHIFT-C does not work, JAVA needs to be killed in
  taskmanager to restart sikulix) within following function in about 1
  of 10 cases. only when it tries to OCR read text in an area where
  there is no text:

  def text_shrink(Reg):  # continously decrease region until OCR gets a match
  texts=False
  Reg=Reg.grow(30,30,0,0) 
  while (texts==False or len(texts)<=2) and Reg.getW()>20:
  Reg=Reg.grow(-30,-30,0,0) 
  texts=ExtractAlphanumeric_all(Reg.text()).strip()#crash here 
on OCR  
  return texts

  The images for this particular run where the crash happend is
  attached.

  Here the debug log (4):

  [debug (19.08.20, 10:33:21)] RunTime:loadlib: trying opencv_java342
  [debug (19.08.20, 10:33:21)] RunTime:loadLib: opencv_java342.dll already 
loaded
  [debug (19.08.20, 10:33:21)] OCR: start: Tess4J 4.4.1 using Tesseract 4.1.0
  [debug (19.08.20, 10:33:21)] RobotDesktop: captureScreen: [824,1291, 224x67]
  [debug (19.08.20, 10:33:21)] Image: BufferedImage: (224, 67)
  [debug (19.08.20, 10:33:21)] Image: getImage inMemory: __BufferedImage__
  [debug (19.08.20, 10:33:21)] Finder2: makeMat: INT_RGB (224x67)
  [debug (19.08.20, 10:33:21)] RunTime:loadlib: trying opencv_java342
  [debug (19.08.20, 10:33:21)] RunTime:loadLib: opencv_java342.dll already 
loaded
  [debug (19.08.20, 10:33:21)] OCR: start: Tess4J 4.4.1 using Tesseract 4.1.0
  [debug (19.08.20, 10:33:21)] RobotDesktop: captureScreen: [854,1291, 164x67]
  [debug (19.08.20, 10:33:21)] Image: BufferedImage: (164, 67)
  [debug (19.08.20, 10:33:21)] Image: getImage inMemory: __BufferedImage__
  [debug (19.08.20, 10:33:21)] Finder2: makeMat: INT_RGB (164x67)
  [debug (19.08.20, 10:33:21)] RunTime:loadlib: trying opencv_java342
  [debug (19.08.20, 10:33:21)] RunTime:loadLib: opencv_java342.dll already 
loaded
  [debug (19.08.20, 10:33:21)] OCR: start: Tess4J 4.4.1 using Tesseract 4.1.0
  [debug (19.08.20, 10:33:21)] RobotDesktop: captureScreen: [884,1291, 104x67]
  [debug (19.08.20, 10:33:21)] Image: BufferedImage: (104, 67)
  [debug (19.08.20, 10:33:21)] Image: getImage inMemory: __BufferedImage__
  [debug (19.08.20, 10:33:21)] Finder2: makeMat: INT_RGB (104x67)
  [debug (19.08.20, 10:41:22)] IDE: AbortKey was pressed: aborting all running 
scripts
  [debug (19.08.20, 10:41:31)] IDE: AbortKey was pressed: aborting all running 
scripts
  [debug (19.08.20, 10:43:19)] IDE: AbortKey was pressed: aborting all running 
scripts
  [debug (19.08.20, 10:43:20)] IDE: AbortKey was pressed: aborting all running 
scripts

  
  Thanks a lot
  Michael

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #692459]: Need to target object inside a frame and cant make masks to work

2020-08-19 Thread Martin Mate
New question #692459 on Sikuli:
https://answers.launchpad.net/sikuli/+question/692459

Hello, i'm trying to create a sikuli script that would click on area surrounded 
by solid red color frame. In this case i prepared png image with red frame 
around the corners and black infill inside then tried to use a simple script:

l = find(Pattern("frameBlack.png").mask())
click(l)

the script is like completely ignoring my '.mask()' and just clicks on any 
black area on my desktop, ignoring the object inside the red frame. What am i 
doing wrong?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Bug 1892161] Re: IDE crash

2020-08-19 Thread Michael Böhm
Hi!

I can reproduce with following script:


Reg=Region(884,1291,104,64)
Reg.highlight(2)
for i in range(1,1000):
print_l(i,":",Reg.text())

on my PC it crashed always(!!!) on counter: 272


Here the log:
[debug (19.08.20, 11:19:17)] Finder2: makeMat: INT_RGB (104x64)
[debug (19.08.20, 11:19:17)] RunTime:loadlib: trying opencv_java342
[debug (19.08.20, 11:19:17)] RunTime:loadLib: opencv_java342.dll already loaded
[debug (19.08.20, 11:19:17)] OCR: start: Tess4J 4.4.1 using Tesseract 4.1.0
[debug (19.08.20, 11:19:17)] RobotDesktop: captureScreen: [884,1291, 104x64]
[debug (19.08.20, 11:19:17)] Image: BufferedImage: (104, 64)
[debug (19.08.20, 11:19:17)] Image: getImage inMemory: __BufferedImage__
[debug (19.08.20, 11:19:17)] Finder2: makeMat: INT_RGB (104x64)
[debug (19.08.20, 11:19:18)] RunTime:loadlib: trying opencv_java342
[debug (19.08.20, 11:19:18)] RunTime:loadLib: opencv_java342.dll already loaded
[debug (19.08.20, 11:19:18)] OCR: start: Tess4J 4.4.1 using Tesseract 4.1.0
[debug (19.08.20, 11:19:18)] RobotDesktop: captureScreen: [884,1291, 104x64]
[debug (19.08.20, 11:19:18)] Image: BufferedImage: (104, 64)
[debug (19.08.20, 11:19:18)] Image: getImage inMemory: __BufferedImage__
[debug (19.08.20, 11:19:18)] Finder2: makeMat: INT_RGB (104x64)
[debug (19.08.20, 11:19:47)] IDE: AbortKey was pressed: aborting all running 
scripts
[debug (19.08.20, 11:19:50)] IDE: AbortKey was pressed: aborting all running 
scripts


** Attachment added: "JAVA process befor crash"
   
https://bugs.launchpad.net/sikuli/+bug/1892161/+attachment/5402747/+files/JAVA%20Process%20before%20script%20%202020-08-19%20112911.jpg

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

Title:
  IDE crash

Status in Sikuli:
  New

Bug description:
  Hi!

  I am using Sikulix 2.0.4 on Windows 10 64bit, JAVA 11, 2 large sized
  Monitors (3440x1440 + 2560x1440 as one display, NVIDIA).

  Sikulix crashes (meaning: it does not process anymore, does not write
  logfiles, ALT-SHIFT-C does not work, JAVA needs to be killed in
  taskmanager to restart sikulix) within following function in about 1
  of 10 cases. only when it tries to OCR read text in an area where
  there is no text:

  def text_shrink(Reg):  # continously decrease region until OCR gets a match
  texts=False
  Reg=Reg.grow(30,30,0,0) 
  while (texts==False or len(texts)<=2) and Reg.getW()>20:
  Reg=Reg.grow(-30,-30,0,0) 
  texts=ExtractAlphanumeric_all(Reg.text()).strip()#crash here 
on OCR  
  return texts

  The images for this particular run where the crash happend is
  attached.

  Here the debug log (4):

  [debug (19.08.20, 10:33:21)] RunTime:loadlib: trying opencv_java342
  [debug (19.08.20, 10:33:21)] RunTime:loadLib: opencv_java342.dll already 
loaded
  [debug (19.08.20, 10:33:21)] OCR: start: Tess4J 4.4.1 using Tesseract 4.1.0
  [debug (19.08.20, 10:33:21)] RobotDesktop: captureScreen: [824,1291, 224x67]
  [debug (19.08.20, 10:33:21)] Image: BufferedImage: (224, 67)
  [debug (19.08.20, 10:33:21)] Image: getImage inMemory: __BufferedImage__
  [debug (19.08.20, 10:33:21)] Finder2: makeMat: INT_RGB (224x67)
  [debug (19.08.20, 10:33:21)] RunTime:loadlib: trying opencv_java342
  [debug (19.08.20, 10:33:21)] RunTime:loadLib: opencv_java342.dll already 
loaded
  [debug (19.08.20, 10:33:21)] OCR: start: Tess4J 4.4.1 using Tesseract 4.1.0
  [debug (19.08.20, 10:33:21)] RobotDesktop: captureScreen: [854,1291, 164x67]
  [debug (19.08.20, 10:33:21)] Image: BufferedImage: (164, 67)
  [debug (19.08.20, 10:33:21)] Image: getImage inMemory: __BufferedImage__
  [debug (19.08.20, 10:33:21)] Finder2: makeMat: INT_RGB (164x67)
  [debug (19.08.20, 10:33:21)] RunTime:loadlib: trying opencv_java342
  [debug (19.08.20, 10:33:21)] RunTime:loadLib: opencv_java342.dll already 
loaded
  [debug (19.08.20, 10:33:21)] OCR: start: Tess4J 4.4.1 using Tesseract 4.1.0
  [debug (19.08.20, 10:33:21)] RobotDesktop: captureScreen: [884,1291, 104x67]
  [debug (19.08.20, 10:33:21)] Image: BufferedImage: (104, 67)
  [debug (19.08.20, 10:33:21)] Image: getImage inMemory: __BufferedImage__
  [debug (19.08.20, 10:33:21)] Finder2: makeMat: INT_RGB (104x67)
  [debug (19.08.20, 10:41:22)] IDE: AbortKey was pressed: aborting all running 
scripts
  [debug (19.08.20, 10:41:31)] IDE: AbortKey was pressed: aborting all running 
scripts
  [debug (19.08.20, 10:43:19)] IDE: AbortKey was pressed: aborting all running 
scripts
  [debug (19.08.20, 10:43:20)] IDE: AbortKey was pressed: aborting all running 
scripts

  
  Thanks a lot
  Michael

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : ht

[Sikuli-driver] [Bug 1892161] Re: IDE crash

2020-08-19 Thread Michael Böhm
** Attachment added: "JAVA process during crash"
   
https://bugs.launchpad.net/sikuli/+bug/1892161/+attachment/5402748/+files/JAVA%20Process%20during%20crash%20script%20%202020-08-19%20112911.jpg

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

Title:
  IDE crash

Status in Sikuli:
  New

Bug description:
  Hi!

  I am using Sikulix 2.0.4 on Windows 10 64bit, JAVA 11, 2 large sized
  Monitors (3440x1440 + 2560x1440 as one display, NVIDIA).

  Sikulix crashes (meaning: it does not process anymore, does not write
  logfiles, ALT-SHIFT-C does not work, JAVA needs to be killed in
  taskmanager to restart sikulix) within following function in about 1
  of 10 cases. only when it tries to OCR read text in an area where
  there is no text:

  def text_shrink(Reg):  # continously decrease region until OCR gets a match
  texts=False
  Reg=Reg.grow(30,30,0,0) 
  while (texts==False or len(texts)<=2) and Reg.getW()>20:
  Reg=Reg.grow(-30,-30,0,0) 
  texts=ExtractAlphanumeric_all(Reg.text()).strip()#crash here 
on OCR  
  return texts

  The images for this particular run where the crash happend is
  attached.

  Here the debug log (4):

  [debug (19.08.20, 10:33:21)] RunTime:loadlib: trying opencv_java342
  [debug (19.08.20, 10:33:21)] RunTime:loadLib: opencv_java342.dll already 
loaded
  [debug (19.08.20, 10:33:21)] OCR: start: Tess4J 4.4.1 using Tesseract 4.1.0
  [debug (19.08.20, 10:33:21)] RobotDesktop: captureScreen: [824,1291, 224x67]
  [debug (19.08.20, 10:33:21)] Image: BufferedImage: (224, 67)
  [debug (19.08.20, 10:33:21)] Image: getImage inMemory: __BufferedImage__
  [debug (19.08.20, 10:33:21)] Finder2: makeMat: INT_RGB (224x67)
  [debug (19.08.20, 10:33:21)] RunTime:loadlib: trying opencv_java342
  [debug (19.08.20, 10:33:21)] RunTime:loadLib: opencv_java342.dll already 
loaded
  [debug (19.08.20, 10:33:21)] OCR: start: Tess4J 4.4.1 using Tesseract 4.1.0
  [debug (19.08.20, 10:33:21)] RobotDesktop: captureScreen: [854,1291, 164x67]
  [debug (19.08.20, 10:33:21)] Image: BufferedImage: (164, 67)
  [debug (19.08.20, 10:33:21)] Image: getImage inMemory: __BufferedImage__
  [debug (19.08.20, 10:33:21)] Finder2: makeMat: INT_RGB (164x67)
  [debug (19.08.20, 10:33:21)] RunTime:loadlib: trying opencv_java342
  [debug (19.08.20, 10:33:21)] RunTime:loadLib: opencv_java342.dll already 
loaded
  [debug (19.08.20, 10:33:21)] OCR: start: Tess4J 4.4.1 using Tesseract 4.1.0
  [debug (19.08.20, 10:33:21)] RobotDesktop: captureScreen: [884,1291, 104x67]
  [debug (19.08.20, 10:33:21)] Image: BufferedImage: (104, 67)
  [debug (19.08.20, 10:33:21)] Image: getImage inMemory: __BufferedImage__
  [debug (19.08.20, 10:33:21)] Finder2: makeMat: INT_RGB (104x67)
  [debug (19.08.20, 10:41:22)] IDE: AbortKey was pressed: aborting all running 
scripts
  [debug (19.08.20, 10:41:31)] IDE: AbortKey was pressed: aborting all running 
scripts
  [debug (19.08.20, 10:43:19)] IDE: AbortKey was pressed: aborting all running 
scripts
  [debug (19.08.20, 10:43:20)] IDE: AbortKey was pressed: aborting all running 
scripts

  
  Thanks a lot
  Michael

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Bug 1892161] [NEW] IDE crash

2020-08-19 Thread Michael Böhm
Public bug reported:

Hi!

I am using Sikulix 2.0.4 on Windows 10 64bit, JAVA 11, 2 large sized
Monitors (3440x1440 + 2560x1440 as one display, NVIDIA).

Sikulix crashes (meaning: it does not process anymore, does not write
logfiles, ALT-SHIFT-C does not work, JAVA needs to be killed in
taskmanager to restart sikulix) within following function in about 1 of
10 cases. only when it tries to OCR read text in an area where there is
no text:

def text_shrink(Reg):  # continously decrease region until OCR gets a match
texts=False
Reg=Reg.grow(30,30,0,0) 
while (texts==False or len(texts)<=2) and Reg.getW()>20:
Reg=Reg.grow(-30,-30,0,0) 
texts=ExtractAlphanumeric_all(Reg.text()).strip()#crash here on 
OCR  
return texts

The images for this particular run where the crash happend is attached.

Here the debug log (4):

[debug (19.08.20, 10:33:21)] RunTime:loadlib: trying opencv_java342
[debug (19.08.20, 10:33:21)] RunTime:loadLib: opencv_java342.dll already loaded
[debug (19.08.20, 10:33:21)] OCR: start: Tess4J 4.4.1 using Tesseract 4.1.0
[debug (19.08.20, 10:33:21)] RobotDesktop: captureScreen: [824,1291, 224x67]
[debug (19.08.20, 10:33:21)] Image: BufferedImage: (224, 67)
[debug (19.08.20, 10:33:21)] Image: getImage inMemory: __BufferedImage__
[debug (19.08.20, 10:33:21)] Finder2: makeMat: INT_RGB (224x67)
[debug (19.08.20, 10:33:21)] RunTime:loadlib: trying opencv_java342
[debug (19.08.20, 10:33:21)] RunTime:loadLib: opencv_java342.dll already loaded
[debug (19.08.20, 10:33:21)] OCR: start: Tess4J 4.4.1 using Tesseract 4.1.0
[debug (19.08.20, 10:33:21)] RobotDesktop: captureScreen: [854,1291, 164x67]
[debug (19.08.20, 10:33:21)] Image: BufferedImage: (164, 67)
[debug (19.08.20, 10:33:21)] Image: getImage inMemory: __BufferedImage__
[debug (19.08.20, 10:33:21)] Finder2: makeMat: INT_RGB (164x67)
[debug (19.08.20, 10:33:21)] RunTime:loadlib: trying opencv_java342
[debug (19.08.20, 10:33:21)] RunTime:loadLib: opencv_java342.dll already loaded
[debug (19.08.20, 10:33:21)] OCR: start: Tess4J 4.4.1 using Tesseract 4.1.0
[debug (19.08.20, 10:33:21)] RobotDesktop: captureScreen: [884,1291, 104x67]
[debug (19.08.20, 10:33:21)] Image: BufferedImage: (104, 67)
[debug (19.08.20, 10:33:21)] Image: getImage inMemory: __BufferedImage__
[debug (19.08.20, 10:33:21)] Finder2: makeMat: INT_RGB (104x67)
[debug (19.08.20, 10:41:22)] IDE: AbortKey was pressed: aborting all running 
scripts
[debug (19.08.20, 10:41:31)] IDE: AbortKey was pressed: aborting all running 
scripts
[debug (19.08.20, 10:43:19)] IDE: AbortKey was pressed: aborting all running 
scripts
[debug (19.08.20, 10:43:20)] IDE: AbortKey was pressed: aborting all running 
scripts


Thanks a lot
Michael

** Affects: sikuli
 Importance: Undecided
 Status: New

** Attachment added: "this is the image it crashes on"
   
https://bugs.launchpad.net/bugs/1892161/+attachment/5402732/+files/BugImage.png

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

Title:
  IDE crash

Status in Sikuli:
  New

Bug description:
  Hi!

  I am using Sikulix 2.0.4 on Windows 10 64bit, JAVA 11, 2 large sized
  Monitors (3440x1440 + 2560x1440 as one display, NVIDIA).

  Sikulix crashes (meaning: it does not process anymore, does not write
  logfiles, ALT-SHIFT-C does not work, JAVA needs to be killed in
  taskmanager to restart sikulix) within following function in about 1
  of 10 cases. only when it tries to OCR read text in an area where
  there is no text:

  def text_shrink(Reg):  # continously decrease region until OCR gets a match
  texts=False
  Reg=Reg.grow(30,30,0,0) 
  while (texts==False or len(texts)<=2) and Reg.getW()>20:
  Reg=Reg.grow(-30,-30,0,0) 
  texts=ExtractAlphanumeric_all(Reg.text()).strip()#crash here 
on OCR  
  return texts

  The images for this particular run where the crash happend is
  attached.

  Here the debug log (4):

  [debug (19.08.20, 10:33:21)] RunTime:loadlib: trying opencv_java342
  [debug (19.08.20, 10:33:21)] RunTime:loadLib: opencv_java342.dll already 
loaded
  [debug (19.08.20, 10:33:21)] OCR: start: Tess4J 4.4.1 using Tesseract 4.1.0
  [debug (19.08.20, 10:33:21)] RobotDesktop: captureScreen: [824,1291, 224x67]
  [debug (19.08.20, 10:33:21)] Image: BufferedImage: (224, 67)
  [debug (19.08.20, 10:33:21)] Image: getImage inMemory: __BufferedImage__
  [debug (19.08.20, 10:33:21)] Finder2: makeMat: INT_RGB (224x67)
  [debug (19.08.20, 10:33:21)] RunTime:loadlib: trying opencv_java342
  [debug (19.08.20, 10:33:21)] RunTime:loadLib: opencv_java342.dll already 
loaded
  [debug (19.08.20, 10:33:21)] OCR: start: Tess4J 4.4.1 using Tesseract 4.1.0
  [debug (19.08.20, 10:33:21)] RobotDesktop: captureScreen: [854,1291, 164x67]
  [debug (19.08.20, 10:33:21)] Image: BufferedImage: (164, 67)
  [debug (19.08.20, 10:33:21)] Image