Menu

#2 It looks unstable on Mac OS X

closed
nobody
None
5
2006-12-08
2006-12-05
Anonymous
No

I'm interested in your nice idea of the Matrex.
But I encountered a problem.
I tried to use Matrex 1.0 final with the following condition,
but the window named 'Matrex 1.0 Desktop' did not work and then it was killed.

Condition:
Mac OS X 10.4.8 (latest patches applied)
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)

Java said the following message.

Exception in thread "Thread-5" org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:3374)
at org.eclipse.swt.SWT.error(SWT.java:3297)
at org.eclipse.swt.SWT.error(SWT.java:3268)
at org.eclipse.swt.widgets.Widget.error(Widget.java:653)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:331)
at org.eclipse.swt.widgets.Control.internal_new_GC(Control.java:1315)
at org.eclipse.swt.graphics.GC.carbon_new(GC.java:163)
at org.eclipse.swt.widgets.Control.drawWidget(Control.java:655)
at org.eclipse.swt.widgets.Widget.kEventControlDraw(Widget.java:1001)
at org.eclipse.swt.widgets.Widget.controlProc(Widget.java:352)
at org.eclipse.swt.widgets.Display.controlProc(Display.java:838)

Thank you.
Kusashi Nameta (JPN)

Discussion

  • aferrandi

    aferrandi - 2006-12-05

    Logged In: YES
    user_id=1186039
    Originator: NO

    It looks like a problem that comes when the Display is not handled in the GUI thread.
    As far as I know in Windows and Linux the GUI thread is the main thread, but in MacOSX it could be another one (Thread 5 like you reported).
    I'll try to give a better look, but by now I saw that a possible solution is to start java with the -XstartOnFirstThread option (see http://eclipsezone.com/eclipse/forums/m92017975.html\).
    Just edit the matrex_macosx.sh file to give a try.

     
  • aferrandi

    aferrandi - 2006-12-06

    Logged In: YES
    user_id=1186039
    Originator: NO

    Can you please let me know if it works with the -XstartOnFirstThread option?

    Thanks.

     
  • Nobody/Anonymous

    Logged In: NO

    It works fine with the option.
    Thank you so much!

    Kusashi Nameta (JPN)

     
  • aferrandi

    aferrandi - 2006-12-08
    • status: open --> closed
     

Log in to post a comment.