Comment #5 on issue 126 by heuermh: Update SWT dependency version
http://code.google.com/p/piccolo2d/issues/detail?id=126

On Mac OS X PPC

$ uname -a
Darwin xxx.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:57:01 PDT  
2009;
root:xnu-1228.15.4~1/RELEASE_PPC Power Macintosh

$ java -version
java version "1.5.0_20"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_20-b02-315)
Java HotSpot(TM) Client VM (build 1.5.0_20-141, mixed mode, sharing)

SWTHelloWorld and SWTBasicExample throw an exception:

$ java -classpath
target/piccolo2d-swt-examples-1.3-SNAPSHOT-jar-with-dependencies.jar
edu.umd.cs.piccolox.swt.examples.SWTBasicExample
Exception in thread "Thread-29" org.eclipse.swt.SWTException: Failed to  
execute
runnable (org.eclipse.swt.SWTException: Invalid thread access)
        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:3212)
        at org.eclipse.swt.widgets.Display.observerProc(Display.java:2849)
Caused by: org.eclipse.swt.SWTException: Invalid thread access
        at org.eclipse.swt.SWT.error(SWT.java:3563)
        at org.eclipse.swt.SWT.error(SWT.java:3481)
        at org.eclipse.swt.SWT.error(SWT.java:3452)
        at org.eclipse.swt.widgets.Widget.error(Widget.java:672)
        at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:334)
        at org.eclipse.swt.widgets.Control.redraw(Control.java:2263)
        at edu.umd.cs.piccolox.swt.PSWTCanvas.repaint(PSWTCanvas.java:541)
        at edu.umd.cs.piccolo.PCamera.repaintFrom(PCamera.java:182)
        at edu.umd.cs.piccolo.PNode.repaint(PNode.java:2621)
        at edu.umd.cs.piccolo.PNode.validateFullPaint(PNode.java:2601)
        at edu.umd.cs.piccolo.PNode.validateFullPaint(PNode.java:2609)
        at edu.umd.cs.piccolo.PRoot.processInputs(PRoot.java:328)
        at edu.umd.cs.piccolox.swt.PSWTRoot$1.run(PSWTRoot.java:76)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at  
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
        ... 2 more


SWTBenchTest runs ok, but the window is never visible.

$ java -classpath
target/piccolo2d-swt-examples-1.3-SNAPSHOT-jar-with-dependencies.jar
edu.umd.cs.piccolox.swt.examples.SWTBenchTest
BENCHMARKING:
edu.umd.cs.piccolox.swt.SWTGraphics2D[font=null,color=java.awt.Color[r=0,g=0,b=0]]
Context: normal
Test: line
Shapes per second: 3240
Test: rect
...

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to