I’ve been working on a plot (18 pages), and all of a sudden, whenever I try to change an icon using the “Change icon” button, it does nothing at all.
Here is an extract from the log file:
[2014-03-20 17:10:33,724] [AWT-EventQueue-0] [ERROR] Image loading failed, current retry=0
java.lang.NullPointerException
at com.easynth.foreui.util.ImageUtil.getFreeScaledImage(Unknown Source)
at com.easynth.foreui.data.ImageData.generateImageThumb(Unknown Source)
at com.easynth.foreui.data.ImageData.getImageThumb(Unknown Source)
at com.easynth.foreui.widget.plot_area.oOOO.super(Unknown Source)
at com.easynth.foreui.widget.plot_area.oOOO.?00000(Unknown Source)
at com.easynth.foreui.widget.plot_area.oOOO$29.actionPerformed(Unknown Source)
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:2084)
at java.awt.Component.dispatchEventImpl(Component.java:4776)
at java.awt.Container.dispatchEventImpl(Container.java:2142)
at java.awt.Component.dispatchEvent(Component.java:4604)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4279)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4209)
at java.awt.Container.dispatchEventImpl(Container.java:2128)
at java.awt.Window.dispatchEventImpl(Window.java:2492)
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.dispatchEvent(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)
[2014-03-20 17:10:33,725] [AWT-EventQueue-0] [INFO] Exception in thread “AWT-EventQueue-0”
[2014-03-20 17:10:33,725] [AWT-EventQueue-0] [INFO] java.lang.NullPointerException
[2014-03-20 17:10:33,725] [AWT-EventQueue-0] [INFO] at javax.swing.ImageIcon.(ImageIcon.java:204)
[2014-03-20 17:10:33,725] [AWT-EventQueue-0] [INFO] at com.easynth.foreui.widget.plot_area.oOOO.super(Unknown Source)
[2014-03-20 17:10:33,725] [AWT-EventQueue-0] [INFO] at com.easynth.foreui.widget.plot_area.oOOO.?00000(Unknown Source)
[2014-03-20 17:10:33,725] [AWT-EventQueue-0] [INFO] at com.easynth.foreui.widget.plot_area.oOOO$29.actionPerformed(Unknown Source)
[2014-03-20 17:10:33,725] [AWT-EventQueue-0] [INFO] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
[2014-03-20 17:10:33,726] [AWT-EventQueue-0] [INFO] at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
[2014-03-20 17:10:33,726] [AWT-EventQueue-0] [INFO] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
[2014-03-20 17:10:33,726] [AWT-EventQueue-0] [INFO] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
[2014-03-20 17:10:33,726] [AWT-EventQueue-0] [INFO] at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
[2014-03-20 17:10:33,726] [AWT-EventQueue-0] [INFO] at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
[2014-03-20 17:10:33,726] [AWT-EventQueue-0] [INFO] at java.awt.Component.processMouseEvent(Component.java:6414)
[2014-03-20 17:10:33,726] [AWT-EventQueue-0] [INFO] at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
[2014-03-20 17:10:33,726] [AWT-EventQueue-0] [INFO] at java.awt.Component.processEvent(Component.java:6179)
[2014-03-20 17:10:33,726] [AWT-EventQueue-0] [INFO] at java.awt.Container.processEvent(Container.java:2084)
[2014-03-20 17:10:33,726] [AWT-EventQueue-0] [INFO] at java.awt.Component.dispatchEventImpl(Component.java:4776)
[2014-03-20 17:10:33,726] [AWT-EventQueue-0] [INFO] at java.awt.Container.dispatchEventImpl(Container.java:2142)
[2014-03-20 17:10:33,726] [AWT-EventQueue-0] [INFO] at java.awt.Component.dispatchEvent(Component.java:4604)
[2014-03-20 17:10:33,727] [AWT-EventQueue-0] [INFO] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
[2014-03-20 17:10:33,727] [AWT-EventQueue-0] [INFO] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4279)
[2014-03-20 17:10:33,727] [AWT-EventQueue-0] [INFO] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4209)
[2014-03-20 17:10:33,727] [AWT-EventQueue-0] [INFO] at java.awt.Container.dispatchEventImpl(Container.java:2128)
[2014-03-20 17:10:33,727] [AWT-EventQueue-0] [INFO] at java.awt.Window.dispatchEventImpl(Window.java:2492)
[2014-03-20 17:10:33,727] [AWT-EventQueue-0] [INFO] at java.awt.Component.dispatchEvent(Component.java:4604)
[2014-03-20 17:10:33,727] [AWT-EventQueue-0] [INFO] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717)
[2014-03-20 17:10:33,727] [AWT-EventQueue-0] [INFO] at java.awt.EventQueue.access$400(EventQueue.java:82)
[2014-03-20 17:10:33,727] [AWT-EventQueue-0] [INFO] at java.awt.EventQueue$2.run(EventQueue.java:676)
[2014-03-20 17:10:33,727] [AWT-EventQueue-0] [INFO] at java.awt.EventQueue$2.run(EventQueue.java:674)
[2014-03-20 17:10:33,727] [AWT-EventQueue-0] [INFO] at java.security.AccessController.doPrivileged(Native Method)
[2014-03-20 17:10:33,728] [AWT-EventQueue-0] [INFO] at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
[2014-03-20 17:10:33,728] [AWT-EventQueue-0] [INFO] at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97)
[2014-03-20 17:10:33,728] [AWT-EventQueue-0] [INFO] at java.awt.EventQueue$3.run(EventQueue.java:690)
[2014-03-20 17:10:33,728] [AWT-EventQueue-0] [INFO] at java.awt.EventQueue$3.run(EventQueue.java:688)
[2014-03-20 17:10:33,728] [AWT-EventQueue-0] [INFO] at java.security.AccessController.doPrivileged(Native Method)
[2014-03-20 17:10:33,728] [AWT-EventQueue-0] [INFO] at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
[2014-03-20 17:10:33,728] [AWT-EventQueue-0] [INFO] at java.awt.EventQueue.dispatchEvent(EventQueue.java:687)
[2014-03-20 17:10:33,728] [AWT-EventQueue-0] [INFO] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
[2014-03-20 17:10:33,728] [AWT-EventQueue-0] [INFO] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
[2014-03-20 17:10:33,728] [AWT-EventQueue-0] [INFO] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
[2014-03-20 17:10:33,728] [AWT-EventQueue-0] [INFO] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
[2014-03-20 17:10:33,729] [AWT-EventQueue-0] [INFO] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
[2014-03-20 17:10:33,729] [AWT-EventQueue-0] [INFO] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
It works fine with a blank plot open in the same window.
Anything that can be done?
2 answers
It seems the plot declares it has an image file, but ForeUI could not load and display it. This could be caused by one of the following reasons:
1) The image file is extracted from the plot file when you open it, but it was then removed (by user or other software) or the disk can not be accessed anymore (removable disk or network drive)
2) The plot keeps a record of file that does not actually exists. This could be caused by ForeUI bug.
You could try to close and re-open the plot to see if the issue still persist. If it persists you can turn on the “Cache Image Data in Memory” option in the “Misc” tab of settings window, and re-open the plot to see if that helps.
If none of those help, maybe it is reason 2) and you can try to “Save As..” your plot to a new one, and that should be able to remove the record of image file that does not actually exist.
Please let us know how things goes.
Thank you for your reply.
None of the options worked, but I managed to work the problem out.
The plot had a bunch of images with a length of 0 bytes (they appeared as blank images in the Image Panel). So I deleted those images and ForeUI magically began to work as expected.
Regards.
-
Glad to know it works for you. Do you still remember where are those 0 byte images from?
-
If I remember well, I copied a group of elements from another plot, and these images were amongst those elements.
This question is now closed