← Back to team overview

sikuli-driver team mailing list archive

[Question #253348]: Preferences: more Options - use global Repository doesn't work

 

New question #253348 on Sikuli:
https://answers.launchpad.net/sikuli/+question/253348

Using Sikuli 1.0.1.
Actually I have 2 questions but they related with each other :)
1) I want to save all scripts images in one directory. So, I'm trying to use the setting "use global Repository ". 
There are following steps :
- set flag "use global Repository "
- set the path to directory "C:\SikuliX\image"
- save changes
- press "apply" button 
- press "ok" button
- close Sikuli IDE
- start Sikuli IDE
- create a new script and take screenshot
- save script
The image was saved in the directory JYTHON_HOME\[script name].sikuli\image_name.png. So, I suppose it should be saved in another directory "C:\SikuliX\image".
Could you please explain me what i'm doing wrong.

2)  I'm also tried to use SIKULI_IMAGE_PATH to find images which are not in [script name].sikuli directory. When I run a script it works fine but when i try to open pattern settings an error occurs and i can't edit it in SIkuli IDE :

Exception in thread "MainThread" java.lang.IllegalArgumentException: image == null!
at javax.imageio.ImageTypeSpecifier.createFromRenderedImage(Unknown Source)
at javax.imageio.ImageIO.getWriter(Unknown Source)
at javax.imageio.ImageIO.write(Unknown Source)
at org.sikuli.basics.FileManager.saveTmpImage(FileManager.java:343)
at org.sikuli.basics.FileManager.saveTmpImage(FileManager.java:335)
at org.sikuli.ide.EditorPatternButton.createThumbnail(EditorPatternButton.java:224)
at org.sikuli.ide.EditorPatternButton.createThumbnail(EditorPatternButton.java:219)
at org.sikuli.ide.EditorPatternButton.setFilename(EditorPatternButton.java:213)
at org.sikuli.ide.EditorPatternButton.getFilename(EditorPatternButton.java:207)
at org.sikuli.ide.PatternPaneNaming.init(PatternPaneNaming.java:47)
at org.sikuli.ide.PatternPaneNaming.<init>(PatternPaneNaming.java:39)
at org.sikuli.ide.PatternWindow.init(PatternWindow.java:60)
at org.sikuli.ide.PatternWindow.<init>(PatternWindow.java:40)
at org.sikuli.

[error] Can't read file: Can't read input file!

ide.EditorPatternButton.actionPerformed(EditorPatternButton.java:142)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) 

at java.awt.LightweightDispatcher.dispatchEvent(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$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$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)

[error] Can't read file: Can't read input file!

Exception in thread "MainThread" java.lang.IllegalArgumentException: image == null!
at javax.imageio.ImageTypeSpecifier.createFromRenderedImage(Unknown Source)
at javax.imageio.ImageIO.getWriter(Unknown Source)
at javax.imageio.ImageIO.write(Unknown Source)
at org.sikuli.basics.FileManager.saveTmpImage(FileManager.java:343)
at org.sikuli.basics.FileManager.saveTmpImage(FileManager.java:335)
at org.sikuli.ide.EditorPatternButton.createThumbnail(EditorPatternButton.java:224)
at org.sikuli.ide.EditorPatternButton.createThumbnail(EditorPatternButton.java:219)
at org.sikuli.ide.EditorPatternButton.setFilename(EditorPatternButton.java:213)
at org.sikuli.ide.EditorPatternButton.getFilename(EditorPatternButton.java:207)
at org.sikuli.ide.PatternPaneNaming.init(PatternPaneNaming.java:47)
at org.sikuli.ide.PatternPaneNaming.<init>(PatternPaneNaming.java:39)
at org.sikuli.ide.PatternWindow.init(PatternWindow.java:60)
at org.sikuli.ide.PatternWindow.<init>(PatternWindow.java:40)
at org.sikuli.

ide.EditorPatternButton.actionPerformed(EditorPatternButton.java:142)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) 

at java.awt.LightweightDispatcher.dispatchEvent(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$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$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)



-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.