Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » StackOverflowError in GEF 3.1M6
StackOverflowError in GEF 3.1M6 [message #181977] Fri, 20 May 2005 20:25 Go to next message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
I am trying to run an Eclipse GEF-based plugin under Eclipse 3.1M6 with GEF
3.1M6.
For many but not all operations (dragging a node, drawing a specialized
anchor) I get a StackOverflowError.
The plugin did not have this problem with Eclipse 2.1, and I haven't tested
it with 3.0.

What is the cause of this problem?
Did something major change in GEF that I don't know about?
I tried to debug the problem, but didn't get anywhere.

Thanks, Felix


!ENTRY org.eclipse.ui 4 0 2005-05-16 15:59:30.769
!MESSAGE Failed to execute runnable (java.lang.StackOverflowError)
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.StackOverflowError)
at org.eclipse.swt.SWT.error(SWT.java:2860)
at org.eclipse.swt.SWT.error(SWT.java:2783)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:121)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:2871)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2530)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1570)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1534)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:306)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:228)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:344)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:156)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:315 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:268)
at org.eclipse.core.launcher.Main.run(Main.java:942)
at org.eclipse.core.launcher.Main.main(Main.java:926)
Caused by: java.lang.StackOverflowError
Re: StackOverflowError in GEF 3.1M6 [message #182010 is a reply to message #181977] Sat, 21 May 2005 21:10 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Debug your app and pausing the execution thread (from the debug view) a few
times should give an idea about what's causing this.

"Felix L J Mayer" <felix.mayer@objectaid.com> wrote in message
news:d6lh2q$kvj$1@news.eclipse.org...
> I am trying to run an Eclipse GEF-based plugin under Eclipse 3.1M6 with
GEF
> 3.1M6.
> For many but not all operations (dragging a node, drawing a specialized
> anchor) I get a StackOverflowError.
> The plugin did not have this problem with Eclipse 2.1, and I haven't
tested
> it with 3.0.
>
> What is the cause of this problem?
> Did something major change in GEF that I don't know about?
> I tried to debug the problem, but didn't get anywhere.
>
> Thanks, Felix
>
>
> !ENTRY org.eclipse.ui 4 0 2005-05-16 15:59:30.769
> !MESSAGE Failed to execute runnable (java.lang.StackOverflowError)
> !STACK 0
> org.eclipse.swt.SWTException: Failed to execute runnable
> (java.lang.StackOverflowError)
> at org.eclipse.swt.SWT.error(SWT.java:2860)
> at org.eclipse.swt.SWT.error(SWT.java:2783)
> at
>
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:121)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:2871)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2530)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1570)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1534)
> at
>
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:306)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
> at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
java:228)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:344)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:156)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
..java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:315 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:268)
> at org.eclipse.core.launcher.Main.run(Main.java:942)
> at org.eclipse.core.launcher.Main.main(Main.java:926)
> Caused by: java.lang.StackOverflowError
>
>
Re: StackOverflowError in GEF 3.1M6 [message #182191 is a reply to message #182010] Mon, 23 May 2005 15:03 Go to previous messageGo to next message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
I tried that, but it didn't give me any idea. Those are asynchronous SWT
actions in a separate thread, so how would I know what in GEF or my
application causes them?

"Pratik Shah" <ppshah@us.ibm.com> wrote in message
news:d6o87n$r9h$1@news.eclipse.org...
> Debug your app and pausing the execution thread (from the debug view) a
> few
> times should give an idea about what's causing this.
>
> "Felix L J Mayer" <felix.mayer@objectaid.com> wrote in message
> news:d6lh2q$kvj$1@news.eclipse.org...
>> I am trying to run an Eclipse GEF-based plugin under Eclipse 3.1M6 with
> GEF
>> 3.1M6.
>> For many but not all operations (dragging a node, drawing a specialized
>> anchor) I get a StackOverflowError.
>> The plugin did not have this problem with Eclipse 2.1, and I haven't
> tested
>> it with 3.0.
>>
>> What is the cause of this problem?
>> Did something major change in GEF that I don't know about?
>> I tried to debug the problem, but didn't get anywhere.
>>
>> Thanks, Felix
>>
>>
>> !ENTRY org.eclipse.ui 4 0 2005-05-16 15:59:30.769
>> !MESSAGE Failed to execute runnable (java.lang.StackOverflowError)
>> !STACK 0
>> org.eclipse.swt.SWTException: Failed to execute runnable
>> (java.lang.StackOverflowError)
>> at org.eclipse.swt.SWT.error(SWT.java:2860)
>> at org.eclipse.swt.SWT.error(SWT.java:2783)
>> at
>>
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:121)
>> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:2871)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2530)
>> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1570)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1534)
>> at
>>
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:306)
>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
>> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
>> at
>>
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
> java:228)
>> at
>>
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:344)
>> at
>>
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:156)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
> )
>> at
>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
> .java:25)
>> at java.lang.reflect.Method.invoke(Method.java:324)
>> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:315 )
>> at org.eclipse.core.launcher.Main.basicRun(Main.java:268)
>> at org.eclipse.core.launcher.Main.run(Main.java:942)
>> at org.eclipse.core.launcher.Main.main(Main.java:926)
>> Caused by: java.lang.StackOverflowError
>>
>>
>
>
Re: StackOverflowError in GEF 3.1M6 [message #182221 is a reply to message #182191] Mon, 23 May 2005 20:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Asyncs are not in a separate thread. Everything is running on the UI
thread.
Do you have the stack trace?
Re: StackOverflowError in GEF 3.1M6 [message #182395 is a reply to message #182221] Tue, 24 May 2005 21:00 Go to previous messageGo to next message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
The only stack trace I have is the one at the beginning of the thread. I
wasn't able to one for the StackOverflowError itself, even when I debugged.
I guess in can try debugging again, but I don't know anything much about
SWT.

"Randy Hudson" <none@us.ibm.com> wrote in message
news:d6tedb$m12$1@news.eclipse.org...
> Asyncs are not in a separate thread. Everything is running on the UI
> thread.
> Do you have the stack trace?
>
Re: StackOverflowError in GEF 3.1M6 [message #182403 is a reply to message #182395] Tue, 24 May 2005 21:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Did you check the .log file in your workspace?

"Felix L J Mayer" <felix.mayer@objectaid.com> wrote in message
news:d704n1$sc9$1@news.eclipse.org...
> The only stack trace I have is the one at the beginning of the thread. I
> wasn't able to one for the StackOverflowError itself, even when I
> debugged. I guess in can try debugging again, but I don't know anything
> much about SWT.
>
> "Randy Hudson" <none@us.ibm.com> wrote in message
> news:d6tedb$m12$1@news.eclipse.org...
>> Asyncs are not in a separate thread. Everything is running on the UI
>> thread.
>> Do you have the stack trace?
>>
>
>
Re: StackOverflowError in GEF 3.1M6 [message #182451 is a reply to message #182403] Wed, 25 May 2005 14:51 Go to previous messageGo to next message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
Yes, that's were the stack trace comes from. I put a breakpoint there, but
the StackOverflowError did not contain a stack trace.

"Randy Hudson" <none@us.ibm.com> wrote in message
news:d705p6$tjs$1@news.eclipse.org...
> Did you check the .log file in your workspace?
>
> "Felix L J Mayer" <felix.mayer@objectaid.com> wrote in message
> news:d704n1$sc9$1@news.eclipse.org...
>> The only stack trace I have is the one at the beginning of the thread. I
>> wasn't able to one for the StackOverflowError itself, even when I
>> debugged. I guess in can try debugging again, but I don't know anything
>> much about SWT.
>>
>> "Randy Hudson" <none@us.ibm.com> wrote in message
>> news:d6tedb$m12$1@news.eclipse.org...
>>> Asyncs are not in a separate thread. Everything is running on the UI
>>> thread.
>>> Do you have the stack trace?
>>>
>>
>>
>
>
Re: StackOverflowError in GEF 3.1M6 [message #182501 is a reply to message #182451] Wed, 25 May 2005 21:27 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 39
Registered: July 2009
Member
The last line of your stack trace says "Caused by OverflowException". It
looks like the SWT exception is wrapping the real exception. Are you sure
there isn't anything more in the trace? Another option is to put a
breakpoint in the SWTError where it is being created and then inspect the
actual SWTError exception to see if it contains a wrapped
OverflowException.


--Cam
Re: StackOverflowError in GEF 3.1M6 [message #182507 is a reply to message #182501] Wed, 25 May 2005 21:42 Go to previous messageGo to next message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
I debugged it, and there was no stack trace in the StackOverflowError.

"Cameron Bateman" <cbateman@rim.com> wrote in message
news:c17306d0349b497d8ecabb95177748ba$1@www.eclipse.org...
> The last line of your stack trace says "Caused by OverflowException". It
> looks like the SWT exception is wrapping the real exception. Are you sure
> there isn't anything more in the trace? Another option is to put a
> breakpoint in the SWTError where it is being created and then inspect the
> actual SWTError exception to see if it contains a wrapped
> OverflowException.
>
>
> --Cam
>
Re: StackOverflowError in GEF 3.1M6 [message #182590 is a reply to message #181977] Wed, 25 May 2005 23:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Is it possible that you are getting this exception during native DND? I
think that SWT may post DND errors using an asyncexec, which is what your
stack trace suggests.

If this is the case, SWT should report more information. You could look for
references to SWT.error within SWT's DropTarget class.

"Felix L J Mayer" <felix.mayer@objectaid.com> wrote in message
news:d6lh2q$kvj$1@news.eclipse.org...
>I am trying to run an Eclipse GEF-based plugin under Eclipse 3.1M6 with GEF
>3.1M6.
> For many but not all operations (dragging a node, drawing a specialized
> anchor) I get a StackOverflowError.
> The plugin did not have this problem with Eclipse 2.1, and I haven't
> tested it with 3.0.
>
> What is the cause of this problem?
> Did something major change in GEF that I don't know about?
> I tried to debug the problem, but didn't get anywhere.
>
> Thanks, Felix
>
>
> !ENTRY org.eclipse.ui 4 0 2005-05-16 15:59:30.769
> !MESSAGE Failed to execute runnable (java.lang.StackOverflowError)
> !STACK 0
> org.eclipse.swt.SWTException: Failed to execute runnable
> (java.lang.StackOverflowError)
> at org.eclipse.swt.SWT.error(SWT.java:2860)
> at org.eclipse.swt.SWT.error(SWT.java:2783)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:121)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:2871)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2530)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1570)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1534)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:306)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:228)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:344)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:156)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:315 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:268)
> at org.eclipse.core.launcher.Main.run(Main.java:942)
> at org.eclipse.core.launcher.Main.main(Main.java:926)
> Caused by: java.lang.StackOverflowError
>
>
Re: StackOverflowError in GEF 3.1M6 [message #182743 is a reply to message #182590] Thu, 26 May 2005 23:00 Go to previous messageGo to next message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
I found two ways to produce the exception:
1. When my diagram is drawn initially, a certain type of connection seems to
cause it. I removed all special drawing from that connection, it didn't make
a difference.
2. When I try to move a node in the diagram.

I don't think moving a node would be native DND, so the answer to your
question would be no.

"Randy Hudson" <none@us.ibm.com> wrote in message
news:d730jm$875$1@news.eclipse.org...
> Is it possible that you are getting this exception during native DND? I
> think that SWT may post DND errors using an asyncexec, which is what your
> stack trace suggests.
>
> If this is the case, SWT should report more information. You could look
> for references to SWT.error within SWT's DropTarget class.
>
> "Felix L J Mayer" <felix.mayer@objectaid.com> wrote in message
> news:d6lh2q$kvj$1@news.eclipse.org...
>>I am trying to run an Eclipse GEF-based plugin under Eclipse 3.1M6 with
>>GEF 3.1M6.
>> For many but not all operations (dragging a node, drawing a specialized
>> anchor) I get a StackOverflowError.
>> The plugin did not have this problem with Eclipse 2.1, and I haven't
>> tested it with 3.0.
>>
>> What is the cause of this problem?
>> Did something major change in GEF that I don't know about?
>> I tried to debug the problem, but didn't get anywhere.
>>
>> Thanks, Felix
>>
>>
>> !ENTRY org.eclipse.ui 4 0 2005-05-16 15:59:30.769
>> !MESSAGE Failed to execute runnable (java.lang.StackOverflowError)
>> !STACK 0
>> org.eclipse.swt.SWTException: Failed to execute runnable
>> (java.lang.StackOverflowError)
>> at org.eclipse.swt.SWT.error(SWT.java:2860)
>> at org.eclipse.swt.SWT.error(SWT.java:2783)
>> at
>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:121)
>> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:2871)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2530)
>> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1570)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1534)
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:306)
>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
>> at
>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
>> at
>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:228)
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:344)
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:156)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:324)
>> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:315 )
>> at org.eclipse.core.launcher.Main.basicRun(Main.java:268)
>> at org.eclipse.core.launcher.Main.run(Main.java:942)
>> at org.eclipse.core.launcher.Main.main(Main.java:926)
>> Caused by: java.lang.StackOverflowError
>>
>>
>
>
Re: StackOverflowError in GEF 3.1M6 [message #183158 is a reply to message #182743] Tue, 31 May 2005 18:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Have you tried catching that exception in the debugger?
Re: StackOverflowError in GEF 3.1M6 [message #183464 is a reply to message #183158] Thu, 02 June 2005 19:30 Go to previous message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
Yes, I tried catching the StackOverflowError, but as usual that didn't work
well.

"Randy Hudson" <none@us.ibm.com> wrote in message
news:d7iaja$vol$1@news.eclipse.org...
> Have you tried catching that exception in the debugger?
>
Previous Topic:[ANN] 3.1RC1 is out
Next Topic:two fixed anchors on a RectangleFigure
Goto Forum:
  


Current Time: Thu Dec 26 15:27:20 GMT 2024

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

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

Back to the top