fails to recognize GIF file format in File/Open Image

User 81c70b5951

24-08-2011 15:48:41

MarvinSketch 5.5.1.0 gives an error message on some GIF files when processing through OSRA (via File->Open Image). The same files work fine from MarvinSketch 5.4. The other formats - i.e. PNG are processed without errors on 5.5 and 5.4.


An example image is attached. This is the error message:


 


ERROR: 


Cannot recognize format (?)


Unrecognized file contents:


GIF87aêêÁ


........ 


at chemaxon.formats.recognizer.RecognitionSubsystem.getFormat(Unknown Source)


 


at chemaxon.formats.MolInputStream.initTextFormat(Unknown Source)


at chemaxon.formats.MolInputStream.init(Unknown Source)


at chemaxon.formats.MolInputStream.<init>(Unknown Source)


at chemaxon.formats.MolImporter.init(Unknown Source)


at chemaxon.formats.MolImporter.<init>(Unknown Source)


at chemaxon.marvin.sketch.swing.SketchPanel.doOpenImage(Unknown Source)


at chemaxon.marvin.sketch.swing.actions.OpenImageAction.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.AbstractButton.doClick(AbstractButton.java:389)


at com.apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:95)


at java.awt.MenuItem.processActionEvent(MenuItem.java:627)


at java.awt.MenuItem.processEvent(MenuItem.java:586)


at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:317)


at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:305)


at java.awt.EventQueue.dispatchEvent(EventQueue.java:638)


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)



 

ChemAxon 5433b8e56b

25-08-2011 12:19:32

Hi,


I can confirm, this issue is exsits, thank you for the report. This is caused by a mistake in our recognition system  the GIF87a file header is missing from the recognizer, and it only checks for the GIF89a header. We will fix this issue in one of the upcoming releases.


As a workaround, you can use File->Open instead of File->Open image, and on the dialog you can set All files as filter, and open the image file from there, in this case it works.


Regards,
Istvan

ChemAxon 5433b8e56b

25-08-2011 12:30:39

Hi,


It seems we can include the recognition of GIF87a header in 5.6, so it will be fixed in that version.


Regards,
Istvan

User 81c70b5951

26-08-2011 00:36:25

Thank you!