MarvinSpace: error during image export

User a9c8267156

24-10-2010 13:06:33

Hello Everibody!


I can't export images from MarvinSpace because of some error during image export. 


Take a look, any idea? 


At least I can use PrintScreen!


 


java.lang.ArrayIndexOutOfBoundsException: -1


at chemaxon.marvin.space.GraphicScene.createImage(Unknown Source)


at chemaxon.marvin.space.MSpaceEventHandler.saveImage(Unknown Source)


at chemaxon.marvin.space.MSpaceEventHandler.processNextEvent(Unknown Source)


at chemaxon.marvin.space.GraphicScene.display(Unknown Source)


at com.sun.opengl.impl.GLDrawableHelper.display(GLDrawableHelper.java:78)


at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:435)


at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)


at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:412)


at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)


at chemaxon.marvin.space.GraphicScene.refresh(Unknown Source)


at chemaxon.marvin.space.MSpaceEventHandler.refresh(Unknown Source)


at chemaxon.marvin.space.MSpaceEventHandler.exportImage(Unknown Source)


at chemaxon.marvin.space.gui.JMSpaceMenuBar$ExportImageDialog$5.run(Unknown Source)


at java.awt.event.InvocationEvent.dispatch(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)


java.lang.ArrayIndexOutOfBoundsException: -1


at chemaxon.marvin.space.GraphicScene.createImage(Unknown Source)


at chemaxon.marvin.space.MSpaceEventHandler.saveImage(Unknown Source)


at chemaxon.marvin.space.MSpaceEventHandler.processNextEvent(Unknown Source)


at chemaxon.marvin.space.GraphicScene.display(Unknown Source)


at com.sun.opengl.impl.GLDrawableHelper.display(GLDrawableHelper.java:78)


at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:435)


at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)


at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:412)


at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)


at chemaxon.marvin.space.GraphicScene.refresh(Unknown Source)


at chemaxon.marvin.space.MSpaceEventHandler.refresh(Unknown Source)


at chemaxon.marvin.space.MSpaceEventHandler.exportImage(Unknown Source)


at chemaxon.marvin.space.gui.JMSpaceMenuBar$ExportImageDialog$5.run(Unknown Source)


at java.awt.event.InvocationEvent.dispatch(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)


java.lang.ArrayIndexOutOfBoundsException: -1


at chemaxon.marvin.space.GraphicScene.createImage(Unknown Source)


at chemaxon.marvin.space.MSpaceEventHandler.saveImage(Unknown Source)


at chemaxon.marvin.space.MSpaceEventHandler.processNextEvent(Unknown Source)


at chemaxon.marvin.space.GraphicScene.display(Unknown Source)


at com.sun.opengl.impl.GLDrawableHelper.display(GLDrawableHelper.java:78)


at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:435)


at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)


at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:412)


at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)


at chemaxon.marvin.space.GraphicScene.refresh(Unknown Source)


at chemaxon.marvin.space.MSpaceEventHandler.refresh(Unknown Source)


at chemaxon.marvin.space.MSpaceEventHandler.exportImage(Unknown Source)


at chemaxon.marvin.space.gui.JMSpaceMenuBar$ExportImageDialog$5.run(Unknown Source)


at java.awt.event.InvocationEvent.dispatch(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)



ChemAxon eb65a25631

25-10-2010 09:24:11

Hi,


Is this issue reproducible?


Could you write down the steps leading to this exception?


Did you use the 'File\Export Image...' function, or 'File\Save screen as...' function?


Could you try the other one as well?


Thanks and regards,


András

ChemAxon eb65a25631

26-10-2010 12:36:09

Hi,


I think, I managed to reproduce the issue, the following way:


- Open MSpace


- Add a row or column cell using the 'Layout' menu 'Add Row'/'Add Column' entries.


- (Make sure there isn't any of the 'cells' selected.)


- Try to export the image with the 'File/Export Image...' menu entry.


Can you confirm, that you had similar steps led to the issue?


There is a workaround for the problem:


Before exporting the image please select one of the cells.


In the next release, it will be fixed.

User a9c8267156

27-10-2010 17:42:05










akovacs wrote:

Hi,


Is this issue reproducible?


Could you write down the steps leading to this exception?


Did you use the 'File\Export Image...' function, or 'File\Save screen as...' function?


Could you try the other one as well?


Thanks and regards,


András



Hello,


Yes it is! Steps:


 


- Open MarvinSpace


- Add a row and column cell using the 'Layout' menu 'Add Row'/'Add Column' entries.


 - Add  MOL files


- (no cell selected)


- Export the image with the 'File/Export Image...' menu entry.


- ... and the error (see image)


Kind regards, 


RaduT


 

User a9c8267156

27-10-2010 17:46:39

 


Hello again,


And another strange thing...


- Open MarvinSpace


- Add a row and column cell using the 'Layout' menu 'Add Row'/'Add Column' entries.


 - Add  MOL files


- 1st cell selected


- Export the image with the 'File/Export Image...' menu entry.


- Exported BMP looks quite strange... take a look.


Kind regards, 


RaduT

ChemAxon eb65a25631

28-10-2010 14:34:17

Hi,


Indeed, the 'Image Export' function acts strange, when multiple cells are available.


This will be fixed as well.


As long as the fix isn't available, you can try using the 'Save Screen As' function instead.


 


Regards,


András