Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Maximal Rows/Columns Java Heap Space Problem
Maximal Rows/Columns Java Heap Space Problem [message #1104986] Mon, 09 September 2013 07:31 Go to next message
Robin Hunger is currently offline Robin Hunger
Messages: 6
Registered: August 2013
Junior Member
Hello,

I got an OutOfMemoryError when trying to show a large database in a table. I already tried to change the maximal memory. The Message said that there is an unhandled event loop, but I didn't change the generated code except some things from the tutorials.

In this SQLite database are approxomately 305.000 rows and 9 columns.

How much rows/columns can be handled in a table?

With regards,
Robin

!ENTRY org.eclipse.ui 4 0 2013-09-09 09:20:03.873
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.OutOfMemoryError: Java heap space)
	at org.eclipse.swt.SWT.error(SWT.java:4397)
	at org.eclipse.swt.SWT.error(SWT.java:4312)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4145)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3762)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
	at org.eclipsescout.demo.minicrm.ui.swt.application.Application.startSecure(Application.java:35)
	at org.eclipsescout.demo.minicrm.ui.swt.application.Application$1.run(Application.java:27)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Unknown Source)
	at org.eclipsescout.demo.minicrm.ui.swt.application.Application.start(Application.java:24)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
	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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
Caused by: java.lang.OutOfMemoryError: Java heap space
	at java.util.HashMap.<init>(Unknown Source)
	at org.eclipse.e4.ui.css.core.dom.ElementAdapter.<init>(ElementAdapter.java:41)
	at org.eclipse.e4.ui.css.swt.dom.WidgetElement.<init>(WidgetElement.java:114)
	at org.eclipse.e4.ui.css.swt.dom.ItemElement.<init>(ItemElement.java:24)
	at org.eclipse.e4.ui.css.swt.dom.TableItemElement.<init>(TableItemElement.java:25)
	at org.eclipse.e4.ui.css.swt.dom.SWTElementProvider.createElement(SWTElementProvider.java:92)
	at org.eclipse.e4.ui.css.swt.dom.SWTElementProvider.getElement(SWTElementProvider.java:51)
	at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.getElement(AbstractCSSEngine.java:912)
	at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.java:416)
	at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.java:405)
	at org.eclipse.e4.ui.css.swt.engine.CSSSWTApplyStylesListener$1.handleEvent(CSSSWTApplyStylesListener.java:31)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4344)
	at org.eclipse.swt.widgets.Display.runSkin(Display.java:4253)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1289)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1277)
	at org.eclipse.swt.widgets.Composite.layout(Composite.java:666)
	at org.eclipse.scout.rt.ui.swt.form.fields.tablefield.SwtTableStatus.setStatus(SwtTableStatus.java:79)
	at org.eclipse.scout.rt.ui.swt.form.fields.tablefield.SwtScoutTableField.setTableStatusFromScout(SwtScoutTableField.java:104)
	at org.eclipse.scout.rt.ui.swt.form.fields.tablefield.SwtScoutTableField.setTableFromScout(SwtScoutTableField.java:88)
	at org.eclipse.scout.rt.ui.swt.form.fields.tablefield.SwtScoutTableField.handleScoutPropertyChange(SwtScoutTableField.java:120)
	at org.eclipse.scout.rt.ui.swt.basic.SwtScoutComposite$P_ScoutPropertyChangeListener$1.run(SwtScoutComposite.java:456)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4145)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3762)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
Re: Maximal Rows/Columns Java Heap Space Problem [message #1104992 is a reply to message #1104986] Mon, 09 September 2013 07:44 Go to previous messageGo to next message
Robin Hunger is currently offline Robin Hunger
Messages: 6
Registered: August 2013
Junior Member
I've seen that after the exception was thrown, the table is displayed (with 20.800 rows) (approximately 5-10 minutes later). After accidently sorting the table another OutOfMemory Exception was thrown.
Re: Maximal Rows/Columns Java Heap Space Problem [message #1107291 is a reply to message #1104986] Thu, 12 September 2013 07:47 Go to previous message
Matthias Nick is currently offline Matthias Nick
Messages: 183
Registered: August 2013
Senior Member
Hi Robin,

thanks for your question. Maybe the following forum post will help you: http://www.eclipse.org/forums/index.php/t/489763/

If it won't help, don't hesitate to ask again.

Matthias
Previous Topic:RadioButtonGroup with LookupCall
Next Topic:Enable Filter on TableField
Goto Forum:
  


Current Time: Sat Oct 25 12:13:03 GMT 2014

Powered by FUDForum. Page generated in 0.10013 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software