NPE in mview if matrix is larger than molnum

User 677b9c22ff

08-12-2008 20:09:57

Hi,


I have 64 stereoisomer molecules generated from a single mol and load them into 2x2 matrix and then extend to a 21x9 matrix I get an NPE.


I think it is important that this is a secondary window, one can use


this SMILES as example starter.


CC1OCC2=C(C1O)C(O)C1OC1(C\C=C(/C)C)C2O


This is mview MarvinView 5.1.3_2 under java 1.6 and win32





Added a screenshot of distorted window (see end doublets)


Tobias





Error log:


Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException


at chemaxon.marvin.view.MDocStorage.setFinalSize(MDocStorage.java:443)


at chemaxon.marvin.view.MDocStorage.tryToExtend(MDocStorage.java:849)


at chemaxon.marvin.view.MDocStorage.getMainDoc(MDocStorage.java:761)


at chemaxon.marvin.view.swing.modules.GridBagView.getDocument(GridBagView.java:654)


at chemaxon.marvin.view.swing.modules.GridBagView.setVisibleCanvas(GridBagView.java:1135)


at chemaxon.marvin.view.swing.ViewPanel.setVisibleCanvas(ViewPanel.java:2494)


at chemaxon.marvin.view.swing.modules.GridBagView.setVisibleCell(GridBagView.java:1580)


at chemaxon.marvin.view.swing.modules.GridBagView.visibleCells(GridBagView.java:1781)


at chemaxon.marvin.view.swing.modules.GridBagView.update(GridBagView.java:3447)


at chemaxon.marvin.view.swing.modules.GridBagView.access$1200(GridBagView.java:46)


at chemaxon.marvin.view.swing.modules.GridBagView$9.run(GridBagView.java:3400)


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)


ViewTableUtil.showMolecules:


java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread


at java.awt.EventQueue.invokeAndWait(Unknown Source)


at chemaxon.marvin.io.MDocSource.skipRecords(MDocSource.java:273)


at chemaxon.marvin.io.MDocSource.seekForward(MDocSource.java:203)


at chemaxon.marvin.io.RewindableMDocSource.seekRecord(RewindableMDocSource.java:274)


at chemaxon.marvin.view.MDocStorage.tryToExtend(MDocStorage.java:819)


at chemaxon.marvin.view.MDocStorage.getMainDoc(MDocStorage.java:761)


at chemaxon.marvin.view.swing.modules.GridBagView.getDocument(GridBagView.java:654)


at chemaxon.marvin.view.swing.modules.GridBagView.setVisibleCanvas(GridBagView.java:1135)


at chemaxon.marvin.view.swing.ViewPanel.setVisibleCanvas(ViewPanel.java:2494)


at chemaxon.marvin.view.swing.modules.GridBagView.setVisibleCell(GridBagView.java:1580)


at chemaxon.marvin.view.swing.modules.GridBagView.visibleCells(GridBagView.java:1781)


at chemaxon.marvin.view.swing.modules.GridBagView.update(GridBagView.java:3447)


at chemaxon.marvin.view.swing.modules.GridBagView.setTopLeft(GridBagView.java:2997)


at chemaxon.marvin.view.swing.ViewTableUtil$1.run(ViewTableUtil.java:191)


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)


ViewTableUtil.showMolecules:


java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread


at java.awt.EventQueue.invokeAndWait(Unknown Source)


at chemaxon.marvin.io.MDocSource.skipRecords(MDocSource.java:273)


at chemaxon.marvin.io.MDocSource.seekForward(MDocSource.java:203)


at chemaxon.marvin.io.RewindableMDocSource.seekRecord(RewindableMDocSource.java:274)


at chemaxon.marvin.view.MDocStorage.tryToExtend(MDocStorage.java:819)


at chemaxon.marvin.view.MDocStorage.getMainDoc(MDocStorage.java:761)


at chemaxon.marvin.view.swing.modules.GridBagView.getDocument(GridBagView.java:654)


at chemaxon.marvin.view.swing.modules.GridBagView.setVisibleCanvas(GridBagView.java:1135)


at chemaxon.marvin.view.swing.ViewPanel.setVisibleCanvas(ViewPanel.java:2494)


at chemaxon.marvin.view.swing.modules.GridBagView.setVisibleCell(GridBagView.java:1580)


at chemaxon.marvin.view.swing.modules.GridBagView.visibleCells(GridBagView.java:1781)


at chemaxon.marvin.view.swing.modules.GridBagView.update(GridBagView.java:3447)


at chemaxon.marvin.view.swing.modules.GridBagView.setTopLeft(GridBagView.java:2997)


at chemaxon.marvin.view.swing.ViewTableUtil$1.run(ViewTableUtil.java:191)


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)


Exception in thread "AWT-EventQueue-0" java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread


at java.awt.EventQueue.invokeAndWait(Unknown Source)


at chemaxon.marvin.io.MDocSource.skipRecords(MDocSource.java:273)


at chemaxon.marvin.io.MDocSource.seekForward(MDocSource.java:203)


at chemaxon.marvin.io.RewindableMDocSource.seekRecord(RewindableMDocSource.java:274)


at chemaxon.marvin.view.MDocStorage.tryToExtend(MDocStorage.java:819)


at chemaxon.marvin.view.MDocStorage.getMainDoc(MDocStorage.java:761)


at chemaxon.marvin.view.swing.modules.GridBagView.getDocument(GridBagView.java:654)


at chemaxon.marvin.view.swing.modules.GridBagView.setVisibleCanvas(GridBagView.java:1135)


at chemaxon.marvin.view.swing.ViewPanel.setVisibleCanvas(ViewPanel.java:2494)


at chemaxon.marvin.view.swing.modules.GridBagView.setVisibleCell(GridBagView.java:1580)


at chemaxon.marvin.view.swing.modules.GridBagView.visibleCells(GridBagView.java:1781)


at chemaxon.marvin.view.swing.modules.GridBagView.update(GridBagView.java:3447)


at chemaxon.marvin.view.swing.modules.GridBagView.access$1200(GridBagView.java:46)


at chemaxon.marvin.view.swing.modules.GridBagView$9.run(GridBagView.java:3400)


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)


Exception in thread "AWT-EventQueue-0" java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread


at java.awt.EventQueue.invokeAndWait(Unknown Source)


at chemaxon.marvin.io.MDocSource.skipRecords(MDocSource.java:273)


at chemaxon.marvin.io.MDocSource.seekForward(MDocSource.java:203)


at chemaxon.marvin.io.RewindableMDocSource.seekRecord(RewindableMDocSource.java:274)


at chemaxon.marvin.view.MDocStorage.tryToExtend(MDocStorage.java:819)


at chemaxon.marvin.view.MDocStorage.getMainDoc(MDocStorage.java:761)


at chemaxon.marvin.view.swing.modules.GridBagView.getDocument(GridBagView.java:654)


at chemaxon.marvin.view.swing.modules.GridBagView.setVisibleCanvas(GridBagView.java:1135)


at chemaxon.marvin.view.swing.ViewPanel.setVisibleCanvas(ViewPanel.java:2494)


at chemaxon.marvin.view.swing.modules.GridBagView.setVisibleCell(GridBagView.java:1580)


at chemaxon.marvin.view.swing.modules.GridBagView.visibleCells(GridBagView.java:1781)


at chemaxon.marvin.view.swing.modules.GridBagView.update(GridBagView.java:3447)


at chemaxon.marvin.view.swing.modules.GridBagView.access$1200(GridBagView.java:46)


at chemaxon.marvin.view.swing.modules.GridBagView$9.run(GridBagView.java:3400)


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 5433b8e56b

09-12-2008 11:30:13

Hi Tobias!





We are keen on to fix this as soon as we can, but our schedule for the next patch release is really tight because it will be available before Christmas. We will inform you, when the fix is available.





Best regards,


Istvan

ChemAxon 5433b8e56b

01-04-2009 20:53:04

Dear Tobias!





I have to apologize for late notification, the fix is out for this bug since Marvin 5.1.4.





Can you please confirm if it is working for you?








Regards,


Istvan

User 677b9c22ff

01-04-2009 21:13:37

Hi István,





thanks alot for fixing. It works I just confirmed with the latest





webstart version. Well besides that who would create a





2x19 array :-)





Cheers





Tobias