Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Cocoa port M2

On 10/17/08 12:36 PM, "Dave Smith" <dave.smith@xxxxxxxxxxx> wrote:

> I am testing the Cocoa port with WebStart and it is failing miserably ... So a
> couple of questions ..

Looking at this backtrace you're using a Carbon version of the SWT. You
shouldn't see the CallNextEventHandler in Cocoa code.

I would be very surprised if you could get the Cocoa port to work with Java
Web Start right now.  The Cocoa SWT is subclassing and creating an
NSApplication for event dispatch, so it likely won't be able to coexist with
the AWT.

> 1. Should I be using the 1.5 32 bit java version ?

Yes, there's no 64-bit build of the SWT in either Carbon or Cocoa yet. You
are using it here -- the Hotspot version info reports macosx-x86, which is
the 32-bit JVM.

> 2. Do I still need to add java-vm-args="-XstartOnFirstThread" to j2se version
> element in my jnlp file ?

The short answer is 'yes'. That may change eventually, but at this point I'm
not sure.
 
> My back trace looks like ...
> 
> Java information:
>  Version: Java HotSpot(TM) Client VM (1.5.0_13-119 mixed mode, sharing)
>  Virtual Machine version: Java HotSpot(TM) Client VM (1.5.0_13-119) for
> macosx-x86, built on Sep 28 2007 23:59:21 by root with gcc 4.0.1 (Apple Inc.
> build 5465)
>  Exception type: Bus Error (0xa) at pc=0x95596a4f
> 
> Current thread (0x0101ea70):  JavaThread "javawsApplicationMain"
> [_thread_in_native, id=9391616]
> Stack: [0xb11bb000,0xb123b000)
> Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
> j  org.eclipse.swt.internal.carbon.OS.CallNextEventHandler(II)I+0
> j  org.eclipse.swt.widgets.Widget.callPaintEventHandler(IIIII)I+4
> j  org.eclipse.swt.widgets.Button.callPaintEventHandler(IIIII)I+289
> j  org.eclipse.swt.widgets.Widget.kEventControlDraw(III)I+113
> j  org.eclipse.swt.widgets.Widget.controlProc(III)I+192
> j  org.eclipse.swt.widgets.Display.controlProc(III)I+17
> v  ~StubRoutines::call_stub
> j  org.eclipse.swt.internal.carbon.OS.ShowWindow(I)V+0
> j  org.eclipse.swt.widgets.Shell.setWindowVisible(Z)V+163
> j  org.eclipse.swt.widgets.Shell.setVisible(Z)V+57
> j  org.eclipse.swt.widgets.Shell.open()V+11
> j  com.candata.client.BootStrap.<init>(Lorg/eclipse/swt/widgets/Display;)V+15
> j  com.candata.client.BootStrap$1.run()V+8

Scott

--------------- 
Scott Kovatch
Flex Engineering
Adobe Systems, Inc.
skovatch@xxxxxxxxx

I am Scott Kovatch, and I approved this message.



Back to the top