GoogleCodeArchive / piccolo2d

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

SWTException: Failed to execute runnable (Invalid thread access) for PSWTCanvasTest on Mac OSX #143

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Separate issue raised for PSWTCanvasTest unit test failure on Mac OSX as
initially described in Issue 126, comments 11 and 13.

Original issue reported on code.google.com by heue...@gmail.com on 27 Oct 2009 at 1:08

GoogleCodeExporter commented 9 years ago
a root-level "mvn clean test" runs without errors here (intel macbook 10.5.8):

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)

Original comment by mr0...@mro.name on 28 Oct 2009 at 11:01

GoogleCodeExporter commented 9 years ago
Great! As stupid as the request seems, can you try runnig it a number of times. 
Threading problems are 
notoriously random.

Original comment by allain.lalonde on 28 Oct 2009 at 11:17

GoogleCodeExporter commented 9 years ago
did two parallel

$ time for (( c=0; c<100; c++ )) do mvn test ; done

without problems. Reminded me how the fan sounds.

Original comment by mr0...@mro.name on 29 Oct 2009 at 12:22

GoogleCodeExporter commented 9 years ago
Fantastic! :)

Original comment by allain.lalonde on 29 Oct 2009 at 12:24

GoogleCodeExporter commented 9 years ago
It wouldn't make sense to re-open this issue only to close it again, but I 
wonder if
you tried running any of the examples in swt-examples?  None of them worked for 
me
until I discovered the JVM option -XstartOnFirstThread:

$ java -XstartOnFirstThread -jar
target/piccolo2d-swt-examples-1.3-SNAPSHOT-jar-with-dependencies.jar

works for me on Mac OSX Carbon PPC versions 3.3.0-v3346 and 3.5.1 and Mac OSX 
Cocoa
PPC version 3.5.1.

Original comment by heue...@gmail.com on 29 Oct 2009 at 5:16