Problems on OSX 10.5 (Leopard)

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Problems on OSX 10.5 (Leopard)

Postby codex » Mon Nov 05, 2007 5:17 pm

I installed the latest stable build of SWTDesigner (5th November) on OSX 10.5.

First problem I had was that the plugins

org.eclipse.swt.layout.grouplayout_1.1.0
org.eclipse.swt.widgets.baseline_1.10

were not picked up if installed in an extension location. This could be solved by moving them to the main Eclipse plugins directory.

Whenever opening SWTDesigner though, I get the following exception:

eclipse.buildId=I20070625-1500
java.version=1.5.0_13
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=de_DE
Framework arguments: -keyring /Users/mb/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws carbon -arch x86 -keyring /Users/mb/.eclipse_keyring -consoleLog -showlocation

Error
Mon Nov 05 20:35:12 COT 2007
Unhandled event loop exception

org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.InternalError: Can't start the AWT because Java was started on the first thread. Make sure StartOnFirstThread is not specified in your application's Info.plist or on the command line)
at org.eclipse.swt.SWT.error(SWT.java:3563)
at org.eclipse.swt.SWT.error(SWT.java:3481)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:126)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3214)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2958)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
Caused by: java.lang.InternalError: Can't start the AWT because Java was started on the first thread. Make sure StartOnFirstThread is not specified in your application's Info.plist or on the command line
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1723)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at apple.awt.RuntimeOptions.getScaleFactor(RuntimeOptions.java:47)
at apple.awt.RuntimeOptions.getAntialiasing(RuntimeOptions.java:161)
at apple.awt.RuntimeOptions.getTextAntialiasing(RuntimeOptions.java:180)
at apple.laf.CUIAquaLookAndFeel.initialize(CUIAquaLookAndFeel.java:126)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:444)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:485)
at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1178)
at javax.swing.UIManager.initialize(UIManager.java:1265)
at javax.swing.UIManager.maybeInitialize(UIManager.java:1253)
at javax.swing.UIManager.getInstalledLookAndFeels(UIManager.java:352)
at com.swtdesigner.actions.laf.LAFManager.getLAFList(LAFManager.java:33)
at com.swtdesigner.actions.laf.LAFManager.getDefaultLAF(LAFManager.java:88)
at com.swtdesigner.actions.laf.LookAndFeelContributionItem.updateDefaultSystemLookAndFeel(LookAndFeelContributionItem.java:97)
at com.swtdesigner.editors.MultiPageEditor.createPartControl(MultiPageEditor.java:184)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:299)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:179)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:400)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1604)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:774)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:673)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:634)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2737)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2651)
at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:2643)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2595)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2590)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2574)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2565)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:644)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:603)
at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$1.run(NewElementWizard.java:70)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
... 22 more

-XStartOnFirstThread is not in my eclipse.ini.

I can work with both SWT and Swing projects, just SWTDesigner is giving problems.

Note that there were changes in the latest JDK for OSX 10.5 regarding SWT compatibility, so maybe that's where the problem lies.

With regards

Michael
codex
 
Posts: 6
Joined: Fri Jun 03, 2005 5:05 am

Postby codex » Mon Nov 05, 2007 5:33 pm

I just noticed that I if I disable Swing support for SWTDesigner ( uncheck Preferences -> Designer -> Swing -> Enable Swing development on OSX ) I' m able to work with SWT.
codex
 
Posts: 6
Joined: Fri Jun 03, 2005 5:05 am

Postby Eric Clayberg » Mon Nov 05, 2007 9:20 pm

See the discussions here...

viewtopic.php?t=1630

viewtopic.php?t=1632

http://www.javalobby.org/forums/thread. ... dID=102936

http://www.javalobby.org/java/forums/t102924.html

https://bugs.eclipse.org/bugs/show_bug.cgi?id=199020

Basically, Java and Eclipse are currently broken in several ways under OSX 10.5 using the JDK supplied with OSX.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby craigp » Wed Nov 14, 2007 5:52 am

Just to let you know, both this bug, and a crashed that I reported, have now been fixed in the nightly builds of Eclipse 3.4. You can get hold of them from here:

http://download.eclipse.org/eclipse/downloads/

Make sure you get build N20071112 or newer.
craigp
 
Posts: 9
Joined: Wed Aug 22, 2007 12:50 am
Location: United Kingdom

Postby Eric Clayberg » Wed Nov 14, 2007 8:54 am

That is very good news. Hopefully, those fixes will make it into 3.3.2 as well.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests