Fails to load pdf: Exception in thread "Thread-4"...
Brought to you by:
laborg
Using briss 0.9 on Mac OS X Mountain Lion, installed via homebrew, briss fails to load a pdf, even though there is plenty of system memory available.
Exception in thread "Thread-4" java.lang.OutOfMemoryError: Java heap space at at.laborg.briss.model.ClusterImageData.initializeOutputImage(ClusterImageData.java:46) at at.laborg.briss.model.ClusterImageData.addImageToPreview(ClusterImageData.java:36) at at.laborg.briss.utils.ClusterRenderWorker.run(ClusterRenderWorker.java:46) Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at at.laborg.briss.model.ClusterImageData.calculateSdOfImages(ClusterImageData.java:150) at at.laborg.briss.model.ClusterImageData.renderOutputImage(ClusterImageData.java:100) at at.laborg.briss.model.ClusterImageData.getPreviewImage(ClusterImageData.java:67) at at.laborg.briss.gui.MergedPanel.<init>(MergedPanel.java:92) at at.laborg.briss.BrissGUI.setStateAfterClusteringFinished(BrissGUI.java:770) at at.laborg.briss.BrissGUI.access$0(BrissGUI.java:761) at at.laborg.briss.BrissGUI$ClusterPagesTask.done(BrissGUI.java:838) at javax.swing.SwingWorker$5.run(SwingWorker.java:717) at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(SwingWorker.java:814) at sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:95) at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(SwingWorker.java:824) at javax.swing.Timer.fireActionPerformed(Timer.java:291) at javax.swing.Timer$DoPostEvent.run(Timer.java:221) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715) at java.awt.EventQueue.access$400(EventQueue.java:82) at java.awt.EventQueue$2.run(EventQueue.java:676) at java.awt.EventQueue$2.run(EventQueue.java:674) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86) at java.awt.EventQueue.dispatchEvent(EventQueue.java:685) 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)
I was able to get past this by modifying the launch script, adding -Xmx2g to the java arguments.