Can no longer capture images - Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

Asked by Lisa Winckler

I am no longer able to capture images. When I attempt to use a mouse action I get the below error:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
 at org.sikuli.ide.PatternPaneNaming.getFilenameFromImage(PatternPaneNaming.java:132)
 at org.sikuli.ide.ButtonCapture.update(ButtonCapture.java:144)
 at org.sikuli.script.OverlayCapturePrompt.notifyObserver(OverlayCapturePrompt.java:165)
 at org.sikuli.script.OverlayCapturePrompt$1.mouseReleased(OverlayCapturePrompt.java:114)
 at java.awt.Component.processMouseEvent(Unknown Source)
 at java.awt.Component.processEvent(Unknown Source)
 at java.awt.Container.processEvent(Unknown Source)
 at java.awt.Window.processEvent(Unknown Source)
 at java.awt.Component.dispatchEventImpl(Unknown Source)
 at java.awt.Container.dispatchEventImpl(Unknown Source)
 at java.awt.Window.dispatchEventImpl(Unknown Source)
 at java.awt.Component.dispatchEvent(Unknown Source)
 at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
 at java.awt.EventQueue.access$000(Unknown Source)
 at java.awt.EventQueue$1.run(Unknown Source)
 at java.awt.EventQueue

[error] TextRecognizer: init: tessdata folder not found at C:/Users/winckll/SikuliX/libs/

$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
 at java.awt.EventQueue$2.run(Unknown Source)
 at java.awt.EventQueue$2.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
 at java.awt.EventQueue.dispatchEvent(Unknown Source)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at java.awt.EventDispatchThread.run(Unknown Source)

Any suggestions on how to fix this?
Thanks!
Lisa

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Lisa Winckler (c-lisa-winckler) said :
#1

I forgot to copy the main part of the error:

The below is in red font:
[error] TextRecognizer: init: tessdata folder not found at C:/Users/winckll/SikuliX/libs/

Revision history for this message
Best RaiMan (raimund-hocke) said :
#2

looks like you have the Preferences

1st tab ScreenCapturing
either text in the image or off

but you have not setup for using text features.

so the easiest would be to reset to
time stamp

if you want to name the images you can do that afterwards with Preview.

Revision history for this message
Lisa Winckler (c-lisa-winckler) said :
#3

AHHH!! That's it! Shoot. I knew it was the preferences I changed I just couldn't remember which one I changed.
Thank you soooo much!!!