SikuliX1 icon indicating copy to clipboard operation
SikuliX1 copied to clipboard

2.1.0: similar(), exact() occur NullPointerException

Open mahomi opened this issue 5 years ago • 1 comments

Hi, I'm using sikuli on windows10. and using sikuli IDE (python). I had tried sikuli2.0.4 but.. It's not work to send key input some app (type(), keyDown() not work to some app like game) so I download sikuli 2.1.0 and try it.

in sikuli 2.1.0, key input is working (good) but It occur NullPointerException, when i use similar() or exact() to pattern (my pc installed jdk-13.0.2)

[error] java.lang.NullPointerException ( java.lang.NullPointerException ) [error] --- Traceback --- error source first line: module ( function ) statement 2: main ( ) m = find(Pattern("1591009550229.png").similar(0.85))

mahomi avatar Jun 01 '20 11:06 mahomi

Sorry for the inconvenience, but 2.1.0 is a bit out of order and not really useable in the moment (I added a remark to the docs).

Currently I cannot give any commitment for a fix.

Try with better images, that do not need a similar() or try with the global setting.

Sorry for the inconvenience.

RaiMan avatar Jun 01 '20 16:06 RaiMan