Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT in Swing breaks in SWT 3.7 on OS X
SWT in Swing breaks in SWT 3.7 on OS X [message #688453] Fri, 24 June 2011 18:02 Go to next message
James Peltzer is currently offline James PeltzerFriend
Messages: 43
Registered: July 2009
Member
Hey all.
I just filed bug 350312 to report this issue but wanted to also raise it
here in case anyone has any ideas for a workaround. I really need this code
to work sooner rather than later. I upgrade to 3.7 to fix an issue with web
browsers in Linux.

A brief summary:
I run an RCP application that uses Swing internally for a number of its
editors. The Swing-based editor now requires an embedded web browser for an
advanced feature. I can achieve this fairly simply in Eclipse/SWT 3.6 but
in 3.7 I get stack overflows if I have one embedded SWT component or a VM
crash if I have several. This all works fine in 3.7 on Windows and Linux.
It also works fine in 3.6 on all 3 platforms.

Stacktrace:
Exception in thread "main" java.lang.StackOverflowError
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:220)
at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2092)
at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2255)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5532)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:220)
at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2092)
at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2255)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5532)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)


java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)

org.eclipse.swt.cocoa.macosx.x86_64.source_3.7.0.v3735b.jar


I have a fairly short snippet to reproduce the issue attached to the bug.

Please help.

Thanks.

James
Re: SWT in Swing breaks in SWT 3.7 on OS X [message #689984 is a reply to message #688453] Tue, 28 June 2011 17:07 Go to previous message
James Peltzer is currently offline James PeltzerFriend
Messages: 43
Registered: July 2009
Member
So... No help then? Does anyone know who is responsible for the Cocoa
implementation of SWT? I tried to look at what changed between 3.6.2 and
3.7 but the answer for Shell.java was pretty much everything.

"James Peltzer" <jpeltzer@hotmail.com> wrote in message
news:iu2ivm$gup$1@news.eclipse.org...
> Hey all.
> I just filed bug 350312 to report this issue but wanted to also raise it
> here in case anyone has any ideas for a workaround. I really need this
> code to work sooner rather than later. I upgrade to 3.7 to fix an issue
> with web browsers in Linux.
>
> A brief summary:
> I run an RCP application that uses Swing internally for a number of its
> editors. The Swing-based editor now requires an embedded web browser for
> an advanced feature. I can achieve this fairly simply in Eclipse/SWT 3.6
> but in 3.7 I get stack overflows if I have one embedded SWT component or a
> VM crash if I have several. This all works fine in 3.7 on Windows and
> Linux. It also works fine in 3.6 on all 3 platforms.
>
> Stacktrace:
> Exception in thread "main" java.lang.StackOverflowError
> at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
> at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:220)
> at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2092)
> at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2255)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:5532)
> at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
> at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:220)
> at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2092)
> at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2255)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:5532)
> at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
>
>
> java version "1.6.0_24"
> Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326)
> Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)
>
> org.eclipse.swt.cocoa.macosx.x86_64.source_3.7.0.v3735b.jar
>
>
> I have a fairly short snippet to reproduce the issue attached to the bug.
>
> Please help.
>
> Thanks.
>
> James
Previous Topic:Export jar for 32-bit Machine from 64-bit machine
Next Topic:Coolbar Mouse Listener
Goto Forum:
  


Current Time: Sat Nov 29 10:11:41 GMT 2014

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

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