nakijun / worldwindrcp

Automatically exported from code.google.com/p/worldwindrcp
0 stars 0 forks source link

MacOS X 10.5 crash #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
3/13/10 7:00:01 AM  eclipse[44439]  Apple AWT Java VM was loaded on first thread 
-- can't 
start AWT.
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]   Exception in 
thread "Thread-
1" 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
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
java.lang.ClassLoader$NativeLibrary.load(Native Method)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1861)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1762)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
java.lang.Runtime.loadLibrary0(Runtime.java:823)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
java.lang.System.loadLibrary(System.java:1045)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
java.security.AccessController.doPrivileged(Native Method)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
java.awt.Component.<clinit>(Component.java:560)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.plugin.worldwind.views.EarthView.<clinit>(EarthView.java:60)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.plugin.worldwind.Perspective.createInitialLayout(Perspective.java:58
)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.ui.internal.Perspective.loadPredefinedPersp(Perspective.java:768)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.ui.internal.Perspective.createPresentation(Perspective.java:258)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.ui.internal.Perspective.<init>(Perspective.java:146)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.ui.internal.WorkbenchPage.createPerspective(WorkbenchPage.java:1546)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.ui.internal.WorkbenchPage.init(WorkbenchPage.java:2336)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.ui.internal.WorkbenchPage.<init>(WorkbenchPage.java:561)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(WorkbenchWindow.java:732)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.ui.internal.Workbench$20.runWithException(Workbench.java:1023)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.ja
va:31)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3214)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2958)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:80
1)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.ui.internal.Workbench$25.runWithException(Workbench.java:1342)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.ja
va:31)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3214)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2958)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2309)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.plugin.worldwind.Application.start(Application.java:30)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ecli
pseAppLauncher
.java:106)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLau
ncher.java:76)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
java.lang.reflect.Method.invoke(Method.java:597)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
3/13/10 7:00:01 AM  [0x0-0x972972].org.eclipse.eclipse[44439]       at 
org.eclipse.equinox.launcher.Main.run(Main.java:1173)

Original issue reported on code.google.com by robert.w...@gmail.com on 13 Mar 2010 at 3:01

GoogleCodeExporter commented 9 years ago
The proposed solution would be to add VM arguments section. The eclipse.ini 
needs to go side-by-side with the main eclipse executable in the Eclipse.App 
folder.

A possible (but not verified) workaround is to use Eclipse 3.0's old style of 
running SWT applications:
- use java_swt to launch SWT based applications
(it is basically the same as "/usr/bin/java -XStartOnFirstThread")
- don't use the StartOnFirstThread command line option
- define the headless property

Because the StartOnFirstThread option is not defined, AWT should not complain 
about running in the wrong thread.

Original comment by whatni...@gmail.com on 31 Jan 2011 at 12:19

GoogleCodeExporter commented 9 years ago

Original comment by vladimir...@gmail.com on 18 May 2011 at 5:59