Recent Changes - Search:

edit SideBar

Finalizers

Below are some details about hanging while exiting.

Problem Statement

The issue is that the nightly build has been hanging in ptolemy/configs/doc while running make models.txt. This target invokes ptolemy.actor.gui.HTMLAbout and ends with:

....................................................Warning: Could not open /home/jenkins/worksp\
ace/ptII/org/hlacerti/demo/MicrostepReset/MicrostepReset.xml.  This means that any LiveLinks in \
that model will not be added to the list of all demos. This is not a big problem and can be safe\
ly ignored.: java.io.FileNotFoundException: /home/jenkins/workspace/ptII/org/hlacerti/demo/Micro\
stepReset/MicrostepReset.xml (No such file or directory)
........................................................................  C-c C-z

However, this only happens when the XServer is running:

Xvfb :4 -screen 0 1024x768x24 &
export DISPLAY=localhost:4.0
bash-4.1$ jstack 38112
2017-07-08 15:18:11
Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.91-b14 mixed mode):

"Attach Listener" #107 daemon prio=9 os_prio=0 tid=0x00007f3390001000 nid=0xa658 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"DestroyJavaVM" #104 prio=5 os_prio=0 tid=0x00007f33f800c000 nid=0x94e1 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"org.python.google.common.base.internal.Finalizer" #100 daemon prio=5 os_prio=0 tid=0x00007f33f971a000 nid=0x956d in Object.wait() [0x000\
07f3314612000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
        - locked <0x00000000aa4cabc0> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
        at org.python.google.common.base.internal.Finalizer.run(Finalizer.java:127)

"webcam-discovery-service" #75 daemon prio=5 os_prio=0 tid=0x00007f33f92ad800 nid=0x9549 in Object.wait() [0x00007f33204e2000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        at com.github.sarxos.webcam.WebcamDiscoveryService.run(WebcamDiscoveryService.java:257)
        - locked <0x00000000a42a0198> (a java.lang.Object)
        at java.lang.Thread.run(Thread.java:745)

"atomic-processor-1" #71 daemon prio=5 os_prio=0 tid=0x00007f3318002800 nid=0x9544 waiting on condition [0x00007f33203e1000]
   java.lang.Thread.State: WAITING (parking)
        at sun.misc.Unsafe.park(Native Method)
        - parking to wait for  <0x00000000a42f5448> (a java.util.concurrent.SynchronousQueue$TransferQueue)
        at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
        at java.util.concurrent.SynchronousQueue$TransferQueue.awaitFulfill(SynchronousQueue.java:762)
        at java.util.concurrent.SynchronousQueue$TransferQueue.transfer(SynchronousQueue.java:695)
        at java.util.concurrent.SynchronousQueue.take(SynchronousQueue.java:924)
        at com.github.sarxos.webcam.WebcamProcessor$AtomicProcessor.run(WebcamProcessor.java:81)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

"JavaFX Application Thread" #67 prio=5 os_prio=0 tid=0x00007f33f909b800 nid=0x951e runnable [0x00007f3330bb8000]
   java.lang.Thread.State: RUNNABLE
        at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
        at com.sun.glass.ui.gtk.GtkApplication.lambda$null$49(GtkApplication.java:139)
        at com.sun.glass.ui.gtk.GtkApplication$$Lambda$57/1986657424.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:745)
"Thread-6" #66 daemon prio=5 os_prio=0 tid=0x00007f33f9099000 nid=0x951d waiting on condition [0x00007f33941b8000]
   java.lang.Thread.State: WAITING (parking)
        at sun.misc.Unsafe.park(Native Method)
        - parking to wait for  <0x00000000a2aa1330> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
        at java.util.concurrent.LinkedBlockingDeque.takeFirst(LinkedBlockingDeque.java:492)
        at com.sun.glass.ui.InvokeLaterDispatcher.run(InvokeLaterDispatcher.java:108)

"QuantumRenderer-0" #64 daemon prio=5 os_prio=0 tid=0x00007f33f9052800 nid=0x950c waiting on condition [0x00007f33b0b37000]
   java.lang.Thread.State: WAITING (parking)
        at sun.misc.Unsafe.park(Native Method)
        - parking to wait for  <0x00000000a291f758> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
        at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
        at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:125)
        at java.lang.Thread.run(Thread.java:745)

"AWT-XAWT" #20 daemon prio=6 os_prio=0 tid=0x00007f33f8851000 nid=0x9502 runnable [0x00007f33b19d0000]
   java.lang.Thread.State: RUNNABLE
        at sun.awt.X11.XToolkit.waitForEvents(Native Method)
        at sun.awt.X11.XToolkit.run(XToolkit.java:568)
        at sun.awt.X11.XToolkit.run(XToolkit.java:532)
        at java.lang.Thread.run(Thread.java:745)

"Java2D Disposer" #18 daemon prio=10 os_prio=0 tid=0x00007f33f878f800 nid=0x9501 in Object.wait() [0x00007f33b25c6000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x00000000a242a180> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
        - locked <0x00000000a242a180> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
        at sun.java2d.Disposer.run(Disposer.java:148)
        at java.lang.Thread.run(Thread.java:745)

"Service Thread" #17 daemon prio=9 os_prio=0 tid=0x00007f33f80f2000 nid=0x94ff runnable [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C1 CompilerThread11" #16 daemon prio=9 os_prio=0 tid=0x00007f33f80ef000 nid=0x94fe waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C1 CompilerThread10" #15 daemon prio=9 os_prio=0 tid=0x00007f33f80ed000 nid=0x94fd waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C1 CompilerThread9" #14 daemon prio=9 os_prio=0 tid=0x00007f33f80eb000 nid=0x94fc waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C1 CompilerThread8" #13 daemon prio=9 os_prio=0 tid=0x00007f33f80e8800 nid=0x94fb waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE
"C2 CompilerThread7" #12 daemon prio=9 os_prio=0 tid=0x00007f33f80e6800 nid=0x94fa waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread6" #11 daemon prio=9 os_prio=0 tid=0x00007f33f80e4800 nid=0x94f9 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread5" #10 daemon prio=9 os_prio=0 tid=0x00007f33f80e2000 nid=0x94f8 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread4" #9 daemon prio=9 os_prio=0 tid=0x00007f33f80d8000 nid=0x94f7 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread3" #8 daemon prio=9 os_prio=0 tid=0x00007f33f80d5800 nid=0x94f6 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread2" #7 daemon prio=9 os_prio=0 tid=0x00007f33f80d3800 nid=0x94f5 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread1" #6 daemon prio=9 os_prio=0 tid=0x00007f33f80d1800 nid=0x94f4 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread0" #5 daemon prio=9 os_prio=0 tid=0x00007f33f80ce800 nid=0x94f3 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Signal Dispatcher" #4 daemon prio=9 os_prio=0 tid=0x00007f33f80cd000 nid=0x94f2 runnable [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Finalizer" #3 daemon prio=8 os_prio=0 tid=0x00007f33f8099800 nid=0x94f1 in Object.wait() [0x00007f33b8714000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
        - locked <0x00000000a2431748> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)

"Reference Handler" #2 daemon prio=10 os_prio=0 tid=0x00007f33f8095000 nid=0x94f0 in Object.wait() [0x00007f33b8815000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:502)
        at java.lang.ref.Reference.tryHandlePending(Reference.java:191)
        - locked <0x00000000a2407620> (a java.lang.ref.Reference$Lock)
        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:153)

"VM Thread" os_prio=0 tid=0x00007f33f808d800 nid=0x94ef runnable

"GC task thread#0 (ParallelGC)" os_prio=0 tid=0x00007f33f8021800 nid=0x94e2 runnable

"GC task thread#1 (ParallelGC)" os_prio=0 tid=0x00007f33f8023000 nid=0x94e3 runnable

"GC task thread#2 (ParallelGC)" os_prio=0 tid=0x00007f33f8025000 nid=0x94e4 runnable

"GC task thread#3 (ParallelGC)" os_prio=0 tid=0x00007f33f8027000 nid=0x94e5 runnable
"GC task thread#4 (ParallelGC)" os_prio=0 tid=0x00007f33f8028800 nid=0x94e6 runnable

"GC task thread#5 (ParallelGC)" os_prio=0 tid=0x00007f33f802a800 nid=0x94e7 runnable

"GC task thread#6 (ParallelGC)" os_prio=0 tid=0x00007f33f802c800 nid=0x94e8 runnable

"GC task thread#7 (ParallelGC)" os_prio=0 tid=0x00007f33f802e000 nid=0x94e9 runnable

"GC task thread#8 (ParallelGC)" os_prio=0 tid=0x00007f33f8030000 nid=0x94ea runnable

"GC task thread#9 (ParallelGC)" os_prio=0 tid=0x00007f33f8032000 nid=0x94eb runnable

"GC task thread#10 (ParallelGC)" os_prio=0 tid=0x00007f33f8033800 nid=0x94ec runnable

"GC task thread#11 (ParallelGC)" os_prio=0 tid=0x00007f33f8035800 nid=0x94ed runnable

"GC task thread#12 (ParallelGC)" os_prio=0 tid=0x00007f33f8037800 nid=0x94ee runnable

"VM Periodic Task Thread" os_prio=0 tid=0x00007f33f80f5000 nid=0x9500 waiting on condition

JNI global references: 12166

bash-4.1$

After removing the Python and Camera demos from $PTII/ptolemy/configs/doc/completeDemos.htm, I still get the hang.

Here are the changes to completeDemos.htm:

bash-4.1$ svn diff /home/jenkins/workspace/ptII/ptolemy/configs/doc/completeDemos.htm
Index: /home/jenkins/workspace/ptII/ptolemy/configs/doc/completeDemos.htm
===================================================================
--- /home/jenkins/workspace/ptII/ptolemy/configs/doc/completeDemos.htm  (revision 76360)
+++ /home/jenkins/workspace/ptII/ptolemy/configs/doc/completeDemos.htm  (working copy)
@@ -999,13 +999,6 @@
       <li><a href="../../domains/sdf/demo/OrthogonalCom/OrthogonalCom.xml">Orthogonal Communications</a>
        <!--vergilDocs-->

-       <!--Kepler does not include Python-->
-       <!--/ptinyKeplerDocs-->
-      <li><a href="../../actor/lib/python/demo/Ptolemnizer/Ptolemnizer.xml">Ptolemnizer (using Python)</a>
-      <li><a href="../../actor/lib/python/demo/PythonScale/PythonScale.xml">Python Integration</a>
-      <li><a href="../../actor/lib/python/demo/RecordManipulation/RecordManipulation.xml">Python Record Manipulation</a>
-       <!--ptinyKeplerDocs-->
-
        <!--/bcvtbDocs-->
        <!-- Uses the R program, which is not shipped -->
       <li><a href="../../actor/lib/r/demo/R3DPlot/R3DPlot.xml">R3DPlot</a> (Requires the R statistical language) (New in Ptolemy II 11.0\
)</li>
@@ -1168,17 +1161,11 @@
     proxy for that service.

     <ul>
-      <li><a href="../../../org/terraswarm/accessor/demo/AprilTags/AprilTags.xml">AprilTags</a>(New in Ptolemy II 11.0)</li>
-      <li><a href="../../../org/terraswarm/accessor/demo/AprilTagImageAnnotate/AprilTagImageAnnotate.xml">AprilTagImageAnnotate</a>(New \
in Ptolemy II 11.0)</li>
       <li><a href="../../../org/terraswarm/accessor/demo/Audio/Audio.xml">Audio</a>(New in Ptolemy II 11.0)</li>
       <li><a href="../../../org/terraswarm/accessor/demo/Audio/AudioClipPlayer.xml">AudioClipPlayer</a>(New in Ptolemy II 11.0)</li>
       <li><a href="../../../org/terraswarm/accessor/demo/Audio/AudioRecorder.xml">AudioRecorder</a>(New in Ptolemy II 11.0)</li>
       <li><a href="../../../ptolemy/actor/lib/jjs/modules/audio/demo/Audio/Audio.xml">Audio Clip Player</a>(New in Ptolemy II 11.0)</li>
-      <li><a href="../../../org/terraswarm/accessor/demo/AugmentedReality/AugmentedReality.xml">AugmentedReality</a>(New in Ptolemy II 1\
1.0)</li>
       <li><a href="../../../org/terraswarm/accessor/demo/Browser/Browser.xml">Browser</a>(New in Ptolemy II 11.0)</li>
-      <li><a href="../../../org/terraswarm/accessor/demo/Camera/Camera.xml">Camera</a>(New in Ptolemy II 11.0)</li>
-      <li><a href="../../../org/terraswarm/accessor/demo/Camera/CaptureOpenLoop.xml">CaptureOpenLoop</a>(New in Ptolemy II 11.0)</li>
-      <li><a href="../../../org/terraswarm/accessor/demo/CameraWebSocket/CameraWebSocket.xml">CameraWebSocket</a>(New in Ptolemy II 11.0\
)</li>
       <li><a href="../../../ptolemy/actor/lib/jjs/modules/computerVision/demo/ComputerVision/ComputerVision.xml">ComputerVision</a>(New \
in Ptolemy II 11.0)</li>
       <li><a href="../../../ptolemy/actor/lib/jjs/modules/faceDetector/demo/FaceDetector/FaceDetector.xml">FaceDetector 1</a>(New in Pto\
lemy II 11.0)</li>
       <li><a href="../../../org/terraswarm/accessor/demo/FaceDetector/FaceDetector.xml">FaceDetector 2</a>(New in Ptolemy II 11.0)</li>
@@ -1198,7 +1185,6 @@
       </li>
       <li><a href="../../../org/terraswarm/accessor/demo/IMUSensor/IMUSensor.xml">IMUSensor</a>(New in Ptolemy II 11.0)</li>
       <li><a href="../../../org/terraswarm/accessor/demo/KeyValueStoreClient/KeyValueStoreClient.xml">KeyValueStoreClient</a>(New in Pto\
lemy II 11.0)</li>
-      <li><a href="../../../org/terraswarm/accessor/demo/Kubi/Kubi.xml">Kubi</a> (Requires Kubi Hardware)(New in Ptolemy II 11.0)</li>
       <li> <a href="../../../org/terraswarm/accessor/demo/MotionDetector/MotionDetector.xml">Motion
 Detector</a>(New in Ptolemy II 11.0)</li>
       <li> <a href="../../../org/terraswarm/accessor/demo/MotionLights/MotionLights.xml">MotionLights</a>(New in Ptolemy II 11.0)</li>
@@ -1208,6 +1194,7 @@
       <li><a href="../../../org/terraswarm/accessor/demo/REST/REST.xml">REST</a>(New in Ptolemy II 11.0)</li>
       <li><a href="../../../org/terraswarm/accessor/demo/Scarab/Scarab.xml">Scarab</a>(New in Ptolemy II 11.0)</li>
       <li><a href="../../../org/terraswarm/accessor/demo/SecureSocket/SecureSocket.xml">SecureSocket</a>(New in Ptolemy II 11.0)</li>
+      <li><a href="../../../org/terraswarm/accessor/demo/SpeechSynthesis/SpeechSynthesis.xml">SpeechSynthesis</a>(New in Ptolemy II 11.0\
)</li>
       <li><a href="../../../ptolemy/actor/lib/jjs/modules/speechRecognition/demo/SpeechRecognition/SpeechRecognition.xml">SpeechRecognit\
ion</a>(New in Ptolemy II 11.0, requires Sphinx4)</li>
       <li><a href="../../../org/terraswarm/accessor/demo/SpeechSynthesis/SpeechSynthesis.xml">SpeechSynthesis</a>(New in Ptolemy II 11.0\
)</li>
       <li><a href="../../../org/terraswarm/accessor/demo/StockTick/StockTick.xml">StockTick</a>(New in Ptolemy II 11.0)</li>
@@ -1435,8 +1422,6 @@
       <!-- alphabetical, please -->
       <li><a href="../../../ptolemy/actor/lib/jjs/modules/dsp/demo/AudioFFT/AudioFFT.xml">AudioFFT</a>(New in Ptolemy II 11.0)</li>
       <li><a href="../../../ptolemy/actor/lib/jjs/modules/dsp/demo/AudioFFT/SinusoidFFT.xml">AudioFFT</a>(New in Ptolemy II 11.0)</li>
-      <li><a href="../../../ptolemy/actor/lib/jjs/modules/cameras/demo/Capture/Capture.xml">Capture</a>(New in Ptolemy II 11.0)</li>
-      <li><a href="../../../ptolemy/actor/lib/jjs/modules/cameras/demo/Capture/CaptureOpenLoop.xml">CaptureOpenLoop</a>(New in Ptolemy I\
I 11.0)</li>
       <li><a href="../../../ptolemy/actor/lib/jjs/modules/contextAware/demo/ContextAware/ContextAware.xml">ContextAware</a>(New in Ptole\
my II 11.0)</li>
       <li> Crypto demos:
         <ul>
@@ -1589,7 +1574,6 @@
       <li><a href="../../../org/ptolemy/ptango/demo/UCBPower/UCBPower.xml">UCBPower</a>  </li>
       <li><a href="../../../org/ptolemy/ptango/demo/UCBPower/UCBPowerAnalyzerServer.xml">UCBPowerAnalyzerServer</a>  </li>
       <li><a href="../../../org/ptolemy/ptango/demo/UCBPowerPtera/UCBPowerPtera.xml">UCBPowerPtera</a>  </li>
-      <li><a href="../../../org/ptolemy/ptango/demo/WebServerDE/WebServerDE.xml">WebServerDE</a>  </li>
     </ul>

     <!--vergilDocs-->
bash-4.1$

Here is the stack trace:

bash-4.1$ jstack 4924
2017-07-08 15:58:32
Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.91-b14 mixed mode):

"Attach Listener" #95 daemon prio=9 os_prio=0 tid=0x00007f0574001000 nid=0x140b waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"DestroyJavaVM" #92 prio=5 os_prio=0 tid=0x00007f05fc00c000 nid=0x133d waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"JavaFX Application Thread" #67 prio=5 os_prio=0 tid=0x00007f05fd06a000 nid=0x137a runnable [0x00007f05d41f6000]
   java.lang.Thread.State: RUNNABLE
        at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
        at com.sun.glass.ui.gtk.GtkApplication.lambda$null$49(GtkApplication.java:139)
        at com.sun.glass.ui.gtk.GtkApplication$$Lambda$57/1986657424.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:745)

"Thread-6" #66 daemon prio=5 os_prio=0 tid=0x00007f05fd066800 nid=0x1379 waiting on condition [0x00007f05d44f7000]
   java.lang.Thread.State: WAITING (parking)
        at sun.misc.Unsafe.park(Native Method)
        - parking to wait for  <0x00000000a2ae2558> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
        at java.util.concurrent.LinkedBlockingDeque.takeFirst(LinkedBlockingDeque.java:492)
        at com.sun.glass.ui.InvokeLaterDispatcher.run(InvokeLaterDispatcher.java:108)

"QuantumRenderer-0" #64 daemon prio=5 os_prio=0 tid=0x00007f05fd020800 nid=0x1368 waiting on condition [0x00007f05dc100000]
   java.lang.Thread.State: WAITING (parking)
        at sun.misc.Unsafe.park(Native Method)
        - parking to wait for  <0x00000000a2ae1378> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
        at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
        at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:125)
        at java.lang.Thread.run(Thread.java:745)

"AWT-XAWT" #20 daemon prio=6 os_prio=0 tid=0x00007f05fc821000 nid=0x135e runnable [0x00007f05dcf99000]
   java.lang.Thread.State: RUNNABLE
        at sun.awt.X11.XToolkit.waitForEvents(Native Method)
        at sun.awt.X11.XToolkit.run(XToolkit.java:568)
        at sun.awt.X11.XToolkit.run(XToolkit.java:532)
        at java.lang.Thread.run(Thread.java:745)

"Java2D Disposer" #18 daemon prio=10 os_prio=0 tid=0x00007f05fc760000 nid=0x135d in Object.wait() [0x00007f05ddb8f000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x00000000a2406ce0> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
        - locked <0x00000000a2406ce0> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
        at sun.java2d.Disposer.run(Disposer.java:148)
        at java.lang.Thread.run(Thread.java:745)

"Service Thread" #17 daemon prio=9 os_prio=0 tid=0x00007f05fc0f2000 nid=0x135b runnable [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C1 CompilerThread11" #16 daemon prio=9 os_prio=0 tid=0x00007f05fc0ef000 nid=0x135a waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C1 CompilerThread10" #15 daemon prio=9 os_prio=0 tid=0x00007f05fc0ed000 nid=0x1359 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C1 CompilerThread9" #14 daemon prio=9 os_prio=0 tid=0x00007f05fc0ea800 nid=0x1358 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C1 CompilerThread8" #13 daemon prio=9 os_prio=0 tid=0x00007f05fc0e8800 nid=0x1357 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread7" #12 daemon prio=9 os_prio=0 tid=0x00007f05fc0e6800 nid=0x1356 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread6" #11 daemon prio=9 os_prio=0 tid=0x00007f05fc0e4800 nid=0x1355 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread5" #10 daemon prio=9 os_prio=0 tid=0x00007f05fc0e2000 nid=0x1354 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread4" #9 daemon prio=9 os_prio=0 tid=0x00007f05fc0d8000 nid=0x1353 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread3" #8 daemon prio=9 os_prio=0 tid=0x00007f05fc0d5800 nid=0x1352 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread2" #7 daemon prio=9 os_prio=0 tid=0x00007f05fc0d3800 nid=0x1351 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread1" #6 daemon prio=9 os_prio=0 tid=0x00007f05fc0d1800 nid=0x1350 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread0" #5 daemon prio=9 os_prio=0 tid=0x00007f05fc0ce800 nid=0x134f waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Signal Dispatcher" #4 daemon prio=9 os_prio=0 tid=0x00007f05fc0cd000 nid=0x134e runnable [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Finalizer" #3 daemon prio=8 os_prio=0 tid=0x00007f05fc099800 nid=0x134d in Object.wait() [0x00007f05dfbfa000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
        - locked <0x00000000a241b720> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)

"Reference Handler" #2 daemon prio=10 os_prio=0 tid=0x00007f05fc095000 nid=0x134c in Object.wait() [0x00007f05dfcfb000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:502)
        at java.lang.ref.Reference.tryHandlePending(Reference.java:191)
        - locked <0x00000000a2407208> (a java.lang.ref.Reference$Lock)
        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:153)

"VM Thread" os_prio=0 tid=0x00007f05fc08d800 nid=0x134b runnable

"GC task thread#0 (ParallelGC)" os_prio=0 tid=0x00007f05fc021800 nid=0x133e runnable

"GC task thread#1 (ParallelGC)" os_prio=0 tid=0x00007f05fc023000 nid=0x133f runnable

"GC task thread#2 (ParallelGC)" os_prio=0 tid=0x00007f05fc025000 nid=0x1340 runnable

"GC task thread#3 (ParallelGC)" os_prio=0 tid=0x00007f05fc027000 nid=0x1341 runnable

"GC task thread#4 (ParallelGC)" os_prio=0 tid=0x00007f05fc028800 nid=0x1342 runnable

"GC task thread#5 (ParallelGC)" os_prio=0 tid=0x00007f05fc02a800 nid=0x1343 runnable

"GC task thread#6 (ParallelGC)" os_prio=0 tid=0x00007f05fc02c800 nid=0x1344 runnable

"GC task thread#7 (ParallelGC)" os_prio=0 tid=0x00007f05fc02e000 nid=0x1345 runnable

"GC task thread#8 (ParallelGC)" os_prio=0 tid=0x00007f05fc030000 nid=0x1346 runnable

"GC task thread#9 (ParallelGC)" os_prio=0 tid=0x00007f05fc032000 nid=0x1347 runnable

"GC task thread#10 (ParallelGC)" os_prio=0 tid=0x00007f05fc033800 nid=0x1348 runnable

"GC task thread#11 (ParallelGC)" os_prio=0 tid=0x00007f05fc035800 nid=0x1349 runnable

"GC task thread#12 (ParallelGC)" os_prio=0 tid=0x00007f05fc037800 nid=0x134a runnable

"VM Periodic Task Thread" os_prio=0 tid=0x00007f05fc0f5000 nid=0x135c waiting on condition

JNI global references: 9447

bash-4.1$
 

Workaround

Modified ptolemy/configs/doc/makefile so that we set DISPLAY to the empty string before starting.

Probably the issue is that we are not doing the work in the AWT thread.

Edit - History - Print - Recent Changes - Search
Page last modified on July 08, 2017, at 11:28 pm