User 133dd65c86
13-04-2013 19:27:22
Hi, I have a problem when trying to map electrostatic potential onto a larger molecule's surface in MSpaceApplet. I hope this is the right forum for this kind of problem. If so, here is the callstack:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at chemaxon.marvin.space.grid.WeightedValues.invoke(WeightedValues.java:240)
at chemaxon.marvin.space.grid.WeightedValues.setWeightedValues(WeightedValues.java:288)
at chemaxon.marvin.space.grid.WeightedValues.setAtomEntries(WeightedValues.java:127)
at chemaxon.marvin.space.SurfaceColoring.doColoring(SurfaceColoring.java:315)
at chemaxon.marvin.space.MolecularSurfaceComponent.coloringMolecularSurface(MolecularSurfaceComponent.java:1102)
at chemaxon.marvin.space.MolecularSurfaceComponent.coloringMolecularSurface(MolecularSurfaceComponent.java:1208)
at chemaxon.marvin.space.MolecularSurfaceComponent.setDrawProperty(MolecularSurfaceComponent.java:600)
at chemaxon.marvin.space.GraphicCell.setDrawProperty(GraphicCell.java:718)
at chemaxon.marvin.space.GraphicScene.setDrawProperty(GraphicScene.java:1171)
at chemaxon.marvin.space.GraphicScene.setDrawProperty(GraphicScene.java:1188)
at chemaxon.marvin.space.MSpaceEventHandler.coloringSurface(MSpaceEventHandler.java:1566)
at chemaxon.marvin.space.MSpaceEventHandler.processNextEvent(MSpaceEventHandler.java:2175)
at chemaxon.marvin.space.GraphicScene.display(GraphicScene.java:1914)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:189)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:177)
at javax.media.opengl.awt.GLJPanel$Updater.display(GLJPanel.java:655)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:189)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:177)
at jogamp.opengl.GLPbufferImpl$DisplayAction.run(GLPbufferImpl.java:300)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:425)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:364)
at jogamp.opengl.GLPbufferImpl.invokeGL(GLPbufferImpl.java:286)
at jogamp.opengl.GLPbufferImpl.display(GLPbufferImpl.java:149)
at javax.media.opengl.awt.GLJPanel$PbufferBackend.doPaintComponentImpl(GLJPanel.java:1196)
at javax.media.opengl.awt.GLJPanel$AbstractReadbackBackend.doPaintComponent(GLJPanel.java:942)
at javax.media.opengl.awt.GLJPanel.paintComponent(GLJPanel.java:356)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at chemaxon.marvin.space.GraphicScene.paint(GraphicScene.java:2101)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JLayeredPane.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager$3.run(Unknown Source)
at javax.swing.RepaintManager$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.access$1000(Unknown Source)
at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(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)
Caused by: java.lang.OutOfMemoryError: Java heap space
at chemaxon.struc.MoleculeGraph.createBHtab(Unknown Source)
at chemaxon.calculations.Charge.p(Unknown Source)
at chemaxon.calculations.Charge.initArrays(Unknown Source)
at chemaxon.calculations.Charge.initChargeCalc(Unknown Source)
at chemaxon.calculations.Charge.calcCharges(Unknown Source)
at chemaxon.marvin.calculations.ChargePlugin.run(Unknown Source)
at chemaxon.marvin.space.AtomProperty$MoleculeAtomProperty.calcCharges(AtomProperty.java:101)
at chemaxon.marvin.space.AtomProperty$MoleculeAtomProperty.getPartialAtomCharge(AtomProperty.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at chemaxon.marvin.space.grid.WeightedValues.invoke(WeightedValues.java:240)
at chemaxon.marvin.space.grid.WeightedValues.setWeightedValues(WeightedValues.java:288)
at chemaxon.marvin.space.grid.WeightedValues.setAtomEntries(WeightedValues.java:127)
at chemaxon.marvin.space.SurfaceColoring.doColoring(SurfaceColoring.java:315)
at chemaxon.marvin.space.MolecularSurfaceComponent.coloringMolecularSurface(MolecularSurfaceComponent.java:1102)
at chemaxon.marvin.space.MolecularSurfaceComponent.coloringMolecularSurface(MolecularSurfaceComponent.java:1208)
at chemaxon.marvin.space.MolecularSurfaceComponent.setDrawProperty(MolecularSurfaceComponent.java:600)
at chemaxon.marvin.space.GraphicCell.setDrawProperty(GraphicCell.java:718)
at chemaxon.marvin.space.GraphicScene.setDrawProperty(GraphicScene.java:1171)
at chemaxon.marvin.space.GraphicScene.setDrawProperty(GraphicScene.java:1188)
at chemaxon.marvin.space.MSpaceEventHandler.coloringSurface(MSpaceEventHandler.java:1566)
at chemaxon.marvin.space.MSpaceEventHandler.processNextEvent(MSpaceEventHandler.java:2175)
at chemaxon.marvin.space.GraphicScene.display(GraphicScene.java:1914)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:189)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:177)
at javax.media.opengl.awt.GLJPanel$Updater.display(GLJPanel.java:655)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:189)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:177)
at jogamp.opengl.GLPbufferImpl$DisplayAction.run(GLPbufferImpl.java:300)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:425)
It happens for seemingly no reason - for instance a molecule with 1044 atoms will get colored almost instantly, but a molecule with 1045 atoms will remain grey and immediately throw an out-of-memory error. Allocating more memory to java on the client machine doesn't seem to be making any difference.
Any help would be appreciated, thanks in advance.