sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #28023
[Bug 1365543] [NEW] [1.0.1] Preferences: more Options - use global Repository doesn't work
Public bug reported:
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!
** Affects: sikuli
Importance: Medium
Assignee: RaiMan (raimund-hocke)
Status: In Progress
** Summary changed:
- Preferences: more Options - use global Repository doesn't work
+ [1.0.1] Preferences: more Options - use global Repository doesn't work
** Changed in: sikuli
Status: New => In Progress
** Changed in: sikuli
Importance: Undecided => Medium
** Changed in: sikuli
Assignee: (unassigned) => RaiMan (raimund-hocke)
** Changed in: sikuli
Milestone: None => 1.2.0
** Description changed:
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 ".
+ 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 "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 bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1365543
Title:
[1.0.1] Preferences: more Options - use global Repository doesn't work
Status in Sikuli:
In Progress
Bug description:
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!
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1365543/+subscriptions
Follow ups
References