sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #20176
[Question #234525]: [error] Can't read file: Can't read input file
New question #234525 on Sikuli:
https://answers.launchpad.net/sikuli/+question/234525
I have a central repository of images that I have been using to reference images in sikuli, so as not to have massive duplicate of files. However, I've run into an issue trying to manipulate an older image using the latest version of sikuli-ide.jar.
If I save a version of a Sikuli script using the full path to an image and then re-open the file using the ide, it will replace the full path with a thumbnail. If I then attempt to click on the thumbnail to manipulate the image target or check the matching preview, I get a stack trace. I have verified this stack occurs on both OSX and Ubuntu 13.04.
Thanks for any help!
Here is the trace from OSX -
[error] Can't read file: Can't read input file!
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: im == null!
at javax.imageio.ImageIO.write(ImageIO.java:1457)
at javax.imageio.ImageIO.write(ImageIO.java:1527)
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:61)
at org.sikuli.ide.PatternWindow.<init>(PatternWindow.java:41)
at org.sikuli.ide.EditorPatternButton.actionPerformed(EditorPatternButton.java:142)
at javax.swing.
AbstractButton.fireActionPerformed(AbstractButton.java:2028)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6414)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
at java.awt.Component.processEvent(Component.java:6179)
at java.awt.Container.processEvent(Container.java:2083)
at java.awt.Component.dispatchEventImpl(Component.java:4776)
at java.awt.Container.dispatchEventImpl(Container.java:2141)
at java.awt.Component.dispatchEvent(Component.java:4604)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
at java.awt.LightweightDispatcher.processMouseEvent(Co
ntainer.java:4280)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
at java.awt.Container.dispatchEventImpl(Container.java:2127)
at java.awt.Window.dispatchEventImpl(Window.java:2489)
at java.awt.Component.dispatchEvent(Component.java:4604)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:690)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.di
spatchEvent(EventQueue.java:687)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
alternate osx stack -
[error] Can't read file: Can't read input file!
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: im == null!
at javax.imageio.ImageIO.write(ImageIO.java:1457)
at javax.imageio.ImageIO.write(ImageIO.java:1527)
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:61)
at org.sikuli.ide.PatternWindow.<init>(PatternWindow.java:41)
at org.sikuli.ide.EditorPatternButton.actionPerformed(EditorPatternButton.java:142)
at javax.swing.
AbstractButton.fireActionPerformed(AbstractButton.java:2028)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6414)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
at java.awt.Component.processEvent(Component.java:6179)
at java.awt.Container.processEvent(Container.java:2083)
at java.awt.Component.dispatchEventImpl(Component.java:4776)
at java.awt.Container.dispatchEventImpl(Container.java:2141)
at java.awt.Component.dispatchEvent(Component.java:4604)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
at java.awt.LightweightDispatcher.processMouseEvent(Co
ntainer.java:4280)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
at java.awt.Container.dispatchEventImpl(Container.java:2127)
at java.awt.Window.dispatchEventImpl(Window.java:2489)
at java.awt.Component.dispatchEvent(Component.java:4604)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:690)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.di
spatchEvent(EventQueue.java:687)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: im == null!
at javax.imageio.ImageIO.write(ImageIO.java:1457)
at javax.imageio.ImageIO.write(ImageIO.java:1527)
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:61)
at org.sikuli.ide.PatternWindow.<init>(PatternWindow.java:41)
at org.sikuli.ide.EditorPatternButton.actionPerformed(EditorPatternButton.java:142)
at javax.swing.
[error] Can't read file: Can't read input file!
AbstractButton.fireActionPerformed(AbstractButton.java:2028)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6414)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
at java.awt.Component.processEvent(Component.java:6179)
at java.awt.Container.processEvent(Container.java:2083)
at java.awt.Component.dispatchEventImpl(Component.java:4776)
at java.awt.Container.dispatchEventImpl(Container.java:2141)
at java.awt.Component.dispatchEvent(Component.java:4604)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
at java.awt.LightweightDispatcher.processMouseEvent(Co
ntainer.java:4280)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
at java.awt.Container.dispatchEventImpl(Container.java:2127)
at java.awt.Window.dispatchEventImpl(Window.java:2489)
at java.awt.Component.dispatchEvent(Component.java:4604)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:690)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.di
spatchEvent(EventQueue.java:687)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
can append linux stack trace if that is helpful too.
this does not appear to happen with images that are created using the latest sikuli.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.