Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Re: 64-bit cocoa SWT build on Java Web Start

Thanks so much for your response, Silenio.  I've been testing on the 3.5 and 3.6M1 releases and also just tried the N20090831-2000 nightly build (the 0901 build had a negative status), but get similar results.  I checked the problem report, and it looks reminiscent of the bug report you mentioned.  Here is a snippet of the error output from my test run:

Java information:
 Exception type: Bus Error (0xa) at pc=0x00000001004d3008

 Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02-83 mixed mode macosx-amd64)

Current thread (0x0000000101866800):  JavaThread "AWT-AppKit" daemon [_thread_in_native, id=1881683712, stack(0x00007fff5f400000,0x00007fff5fc00000)]
Stack: [0x00007fff5f400000,0x00007fff5fc00000]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.eclipse.swt.internal.cocoa.OS.objc_msgSend(JJDDDD)J+0
j  org.eclipse.swt.internal.cocoa.NSColor.colorWithDeviceRed(DDDD)Lorg/eclipse/swt/internal/cocoa/NSColor;+12

Was the fix very recently checked in (ie should I wait for a more recent nightly than the 0831 build)?

Thanks again for your time.

Best,
David
 
Date: Wed, 2 Sep 2009 11:25:45 -0400
From: Silenio Quarti <Silenio_Quarti@xxxxxxxxxx>
Subject: Re: [platform-swt-dev] 64-bit cocoa SWT build on Java Web
       Start
To: "Eclipse Platform SWT component developers list."
       <platform-swt-dev@xxxxxxxxxxx>
Message-ID:
       <OF249D2BE4.E37CDFEE-ON85257625.00542C7E-85257625.0054C48A@xxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"

I tried your sample with the latest code (HEAD) and it works fine for me.
There have been a few bug fixes in the 3.6 branch related to web start
(for example: https://bugs.eclipse.org/bugs/show_bug.cgi?id=270948). Which
build are you running?

Silenio



From:
David Young <david@xxxxxxxxxxxx>
To:
platform-swt-dev@xxxxxxxxxxx
Date:
09/02/2009 05:53 AM
Subject:
[platform-swt-dev] 64-bit cocoa SWT build on Java Web Start
Sent by:
platform-swt-dev-bounces@xxxxxxxxxxx



Hi,

I've been trying to launch an application using the new 64-bit cocoa build
of SWT on Java Web Start on the Mac.  The application works fine when I
launch it through the command line, but crashes when I try to launch it
through Java Web Start.  I wasn't sure whether this is a configuration
error on my part, or if there's something special to running the 64-bit
build via JWS.

Here is my sample application:

import org.eclipse.swt.*;
import org.eclipse.swt.widgets.*;

public class MacSWTTest {
public static void main(String[] args) {
String name = System.getProperty("os.name");
String arch = System.getProperty("os.arch");
System.out.println("name: " + name + ", arch: " + arch);
MacSWTTest test = new MacSWTTest();
}
public MacSWTTest() {
Display disp = new Display();
Shell shell = new Shell(disp); // creates the window
shell.open();
while (!shell.isDisposed() && disp.getShells().length > 0) {
if (!disp.readAndDispatch()) disp.sleep();
}
System.exit(0); // terminate abruptly if window closed
}
}

I am also using the resources modifier in my jnlp file as follows per bug
63306:

<resources os="Mac OS X">
<j2se version="1.6*" java-vm-args="-XstartOnFirstThread"/>
<jar href="" />
</resources>

Usually the program crashes without a log entry or further feedback,
although occasionally I see a thread or stack overflow error briefly on
the Java console.  Is there anything I need to modify, or are there any
tricks to getting this SWT build running on Java Web Start?

Thanks for your time,
David

Back to the top