Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipse-dev] SWT Apps Crash on Carbon when launched from WebStart

I can't find that actual FAQ, though I found something on the main FAQ that mentions webstart only working on windows and gtk. Is this why I can't run the app outside of eclipse at all without lockup problems? I could guess that running from a .app has AWT/Swing libraries in the stub the jar packager creates, but why can't it run from a command line?

marc

On Dec 8, 2003, at 7:10 PM, Steve Northover wrote:

Hi Mark,

Webstart uses AWT and SWT/AWT interop does not work at all on the Mac, even in separate windows. I assume you have read the FAQ about SWT and Mac OS X on the SWT component page?

Steve





<x-tad-smaller>Marc Boorshtein <marc.boorshtein@xxxxxxxxxxxxxxx></x-tad-smaller>
<x-tad-smaller>Sent by: eclipse-dev-admin@xxxxxxxxxxx</x-tad-smaller>
<x-tad-smaller>12/07/2003 11:40 PM</x-tad-smaller>
<x-tad-smaller>Please respond to eclipse-dev</x-tad-smaller>
<x-tad-smaller>        </x-tad-smaller>
<x-tad-smaller>        To:        eclipse-dev@xxxxxxxxxxx</x-tad-smaller>
<x-tad-smaller>        cc:        </x-tad-smaller>
<x-tad-smaller>        Subject:        Re: [eclipse-dev] SWT Apps Crash on Carbon when launched from WebStart</x-tad-smaller>
<x-tad-smaller>After some investigation I have the following issues:</x-tad-smaller>

<x-tad-smaller>2.1.2  - SWT Based applications run VERY eradicly, eventually crashing.  </x-tad-smaller>
<x-tad-smaller> It will work for a few seconds, and then become very un-responsive.    </x-tad-smaller>
<x-tad-smaller>Sometimes the responsivness would come back, sometimes it wouldn't   </x-tad-smaller>
<x-tad-smaller>This would occur both when executed from eclipse or when executed from  </x-tad-smaller>
<x-tad-smaller>a *.app package.</x-tad-smaller>

<x-tad-smaller>3M4 & 3M5 - SWT Based applications hang on startup</x-tad-smaller>

<x-tad-smaller>In all cases the app hangs when executed from a terminal</x-tad-smaller>

<x-tad-smaller>I am guessing that this is related to my event loop, so here it is:</x-tad-smaller>


<x-tad-smaller>while (!shell.isDisposed()) {</x-tad-smaller>
<x-tad-smaller>                                                  if (!display.readAndDispatch())</x-tad-smaller>
<x-tad-smaller>                                                                   display.sleep();</x-tad-smaller>
<x-tad-smaller>}</x-tad-smaller>

<x-tad-smaller>Am I missing something?  The app works just fine on windows (though I  </x-tad-smaller>
<x-tad-smaller>haven't tested on linux or solaris yet).</x-tad-smaller>

<x-tad-smaller>Any help would be greatly appreciated.</x-tad-smaller>

<x-tad-smaller>------------------------------------------------------------------------</x-tad-smaller>
<x-tad-smaller>--------------------------</x-tad-smaller>
<x-tad-smaller>Marc Boorshtein</x-tad-smaller>
<x-tad-smaller>Software Engineer, Octet String</x-tad-smaller>
<x-tad-smaller>marc.boorshtein@xxxxxxxxxxxxxxx</x-tad-smaller>

<x-tad-smaller>On Dec 7, 2003, at 4:02 PM, Marc Boorshtein wrote:</x-tad-smaller>

<x-tad-smaller>> I have created an application in SWT utilizing jface that is deployed  </x-tad-smaller>
<x-tad-smaller>> via webstart.  The application runs well during normal execution on OS  </x-tad-smaller>
<x-tad-smaller>> X Panther, but when started through webstart, the main window opens  </x-tad-smaller>
<x-tad-smaller>> but no interaction can occur.  The log shows the following exception:</x-tad-smaller>
<x-tad-smaller>></x-tad-smaller>
<x-tad-smaller>> org.eclipse.swt.SWTException: Invalid thread access</x-tad-smaller>
<x-tad-smaller>>                  at org.eclipse.swt.SWT.error(SWT.java:2330)</x-tad-smaller>
<x-tad-smaller>>                  at org.eclipse.swt.SWT.error(SWT.java:2260)</x-tad-smaller>
<x-tad-smaller>>                  at org.eclipse.swt.widgets.Widget.error(Widget.java:545)</x-tad-smaller>
<x-tad-smaller>>                  at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:301)</x-tad-smaller>
<x-tad-smaller>>                  at org.eclipse.swt.widgets.Control.getShell(Control.java:829)</x-tad-smaller>
<x-tad-smaller>>                  at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:1815)</x-tad-smaller>
<x-tad-smaller>>                  at  </x-tad-smaller>
<x-tad-smaller>> org.eclipse.swt.widgets.Shell.kEventWindowDeactivated(Shell.java:744)</x-tad-smaller>
<x-tad-smaller>>                  at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1524)</x-tad-smaller>
<x-tad-smaller>>                  at org.eclipse.swt.widgets.Display.windowProc(Display.java:2866)</x-tad-smaller>
<x-tad-smaller>></x-tad-smaller>
<x-tad-smaller>> this problem seems to occur with 2.1.2 and 3M4.  any thoughts?</x-tad-smaller>
<x-tad-smaller>></x-tad-smaller>
<x-tad-smaller>> -----------------------------------------------------------------------</x-tad-smaller>
<x-tad-smaller>> ---------------------------</x-tad-smaller>
<x-tad-smaller>> Marc Boorshtein</x-tad-smaller>
<x-tad-smaller>> Software Engineer, Octet String</x-tad-smaller>
<x-tad-smaller>> marc.boorshtein@xxxxxxxxxxxxxxx</x-tad-smaller>
<x-tad-smaller>></x-tad-smaller>
<x-tad-smaller>> _______________________________________________</x-tad-smaller>
<x-tad-smaller>> eclipse-dev mailing list</x-tad-smaller>
<x-tad-smaller>> eclipse-dev@xxxxxxxxxxx</x-tad-smaller>
<x-tad-smaller>> To change your delivery options, retrieve your password, or  </x-tad-smaller>
<x-tad-smaller>> unsubscribe from this list, visit</x-tad-smaller>
<x-tad-smaller>> http://dev.eclipse.org/mailman/listinfo/eclipse-dev</x-tad-smaller>
<x-tad-smaller>></x-tad-smaller>

<x-tad-smaller>_______________________________________________</x-tad-smaller>
<x-tad-smaller>eclipse-dev mailing list</x-tad-smaller>
<x-tad-smaller>eclipse-dev@xxxxxxxxxxx</x-tad-smaller>
<x-tad-smaller>To change your delivery options, retrieve your password, or unsubscribe from this list, visit</x-tad-smaller>
<x-tad-smaller>http://dev.eclipse.org/mailman/listinfo/eclipse-dev</x-tad-smaller>



Back to the top