Trace Editor freeze - SWTError: No more handles
1.Start TimeDoctor
2.Open tdi file that includes 3000 lines
Application freezes, no matter how large heap space. I got stack trace.
---
org.eclipse.swt.SWTError: No more handles
at org.eclipse.swt.SWT.error(SWT.java:3589)
at org.eclipse.swt.SWT.error(SWT.java:3481)
at org.eclipse.swt.SWT.error(SWT.java:3452)
at org.eclipse.swt.widgets.Widget.error(Widget.java:432)
at org.eclipse.swt.widgets.Control.createHandle(Control.java:602)
at org.eclipse.swt.widgets.Label.createHandle(Label.java:178)
at org.eclipse.swt.widgets.Control.createWidget(Control.java:618)
at org.eclipse.swt.widgets.Control.<init>(Control.java:97)
at org.eclipse.swt.widgets.Label.<init>(Label.java:91)
at com.nxp.timedoctor.ui.trace.TraceLineSeparator.createContents(TraceLineSeparator.java:...
---
I have no idea to avoid it. But at least it should show what's going on.
my suggestion:
com.nxp.timedoctor.ui.workbench\src\com\nxp\timedoctor\internal\ui\TraceEditor.java
public final void createPartControl(final Composite parent) {
:
:
try {
traceViewer = new TraceViewer(parent, traceModel, zoomModel);
} catch (Error e) {
e.printStackTrace();
throw new RuntimeException(e);
}
:
:
}