← Back to team overview

sikuli-driver team mailing list archive

[Bug 712724] Re: Loading an image from hard drive in Sikuli IDE throws error when you try to use analytic tools on image.

 

*** This bug is a duplicate of bug 707207 ***
    https://bugs.launchpad.net/bugs/707207

** This bug has been marked a duplicate of bug 707207
   X 1.0rc1: IDE: crash when importing image using insert image button
 * You can subscribe to bug 707207 by following this link: https://bugs.launchpad.net/sikuli/+bug/707207/+subscribe

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/712724

Title:
  Loading an image from hard drive in Sikuli IDE throws error when you
  try to use analytic tools on image.

Status in Sikuli:
  New

Bug description:
  Summary:
  If a user loads an image from their hard drive using the appropriate button in the Sikuli IDE, then clicks on it to try and get matching/offset/pattern data it will not work. Using RC1 Sikuli, on 64 bit Windows 7.

  Steps:
  1. Use IDE button to load image into IDE window.
  2. Click on image.

  Thrown error:

  debug] ImageButton.getFilename: someFile 
  blah.sikuli/
  [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(Unknown Source)
  	at javax.imageio.ImageIO.write(Unknown Source)
  	at org.sikuli.ide.Utils.saveTmpImage(Utils.java:135)
  	at org.sikuli.ide.ImageButton.createThumbnail(ImageButton.java:106)
  	at org.sikuli.ide.ImageButton.createThumbnail(ImageButton.java:111)
  	at org.sikuli.ide.ImageButton.setFilename(ImageButton.java:59)
  	at org.sikuli.ide.ImageButton.getFilename(ImageButton.java:53)
  	at org.sikuli.ide.PatternWindow.createTargetPanel(PatternWindow.java:84)
  	at org.sikuli.ide.PatternWindow.<init>(PatternWindow.java:51)
  	at org.sikuli.ide.ImageButton.actionPerformed(ImageButton.java:200)
  	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.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)





References