Issue when opening dives with pictures

Help
szdavid
2011-05-29
2012-12-06
  • szdavid

    szdavid - 2011-05-29

    Hi

    I installed Jdivelog on my new computer ; when I try to open "previous" dives with pictures, I have got this error message :

    java.lang.IllegalArgumentException: Width (-1) and height (-1) cannot be <= 0
    at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1016)
    at java.awt.image.BufferedImage.<init>(BufferedImage.java:338)
    at net.sf.jdivelog.gui.util.ImageUtil.transform(Unknown Source)
    at net.sf.jdivelog.gui.util.ImageUtil.transform(Unknown Source)
    at net.sf.jdivelog.gui.PictureTableModel.updateThumb(Unknown Source)
    at net.sf.jdivelog.gui.PictureTableModel.reloadThumbs(Unknown Source)
    at net.sf.jdivelog.gui.PictureTableModel.setPictures(Unknown Source)
    at net.sf.jdivelog.gui.DiveDetailPanel.loadData(Unknown Source)
    at net.sf.jdivelog.gui.DiveDetailPanel.<init>(Unknown Source)
    at net.sf.jdivelog.gui.MainWindow.viewDive(Unknown Source)
    at net.sf.jdivelog.gui.MainWindow$5.valueChanged(Unknown Source)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:154)
    at javax.swing.DefaultListSelectionModel.setValueIsAdjusting(DefaultListSelectionModel.java:685)
    at javax.swing.plaf.basic.BasicTableUI$Handler.setValueIsAdjusting(BasicTableUI.java:950)
    at javax.swing.plaf.basic.BasicTableUI$Handler.mouseReleased(BasicTableUI.java:1161)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
    at java.awt.Component.processMouseEvent(Component.java:6268)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6033)
    at java.awt.Container.processEvent(Container.java:2045)
    at java.awt.Component.dispatchEventImpl(Component.java:4629)
    at java.awt.Container.dispatchEventImpl(Container.java:2103)
    at java.awt.Component.dispatchEvent(Component.java:4455)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4297)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)
    at java.awt.Container.dispatchEventImpl(Container.java:2089)
    at java.awt.Window.dispatchEventImpl(Window.java:2517)
    at java.awt.Component.dispatchEvent(Component.java:4455)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)
    at java.awt.EventQueue.access$000(EventQueue.java:96)
    at java.awt.EventQueue$1.run(EventQueue.java:608)
    at java.awt.EventQueue$1.run(EventQueue.java:606)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
    at java.awt.EventQueue$2.run(EventQueue.java:622)
    at java.awt.EventQueue$2.run(EventQueue.java:620)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

    Thank you for your help

    What may happened :

    - the folder of the picture changed ; I do not really care if I lose the links to the pictures and have to recreate them but I would prefer to be able to open the dives

    Thanks

     
  • André Schenk

    André Schenk - 2011-06-08

    It looks Pascal has fixed this issue in the meantime. Do you need a fixed version now or can you wait until the next release?

    Best regards,

    André

     
  • szdavid

    szdavid - 2011-06-10

    Hi Andre,

    Actually Pascal provided me a version with this bug corrected and it works perfectly ; so no need for an urgent build (as already provided)

    Thank you

    David

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks