I have somehow similar problem.
While adding any Drawable from another Runnable thread I am getting lock in this line of my sample:
SurfaceDemo2.instance.chart.getScene().add(cyl); // line 742 in SurfaceDemo2.java
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Waited 5000ms for: <3d11791d, 4b0a015a>[count 163, qsz 0, owner <Default RequestProcessor-Display-.x11_:0-1-EDT-1>] - <AWT-EventQueue-0>
at jogamp.common.util.locks.RecursiveLockImpl01Unfairish.lock(RecursiveLockImpl01Unfairish.java:198)
at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:669)
at org.jzy3d.plot3d.rendering.canvas.CanvasNewtAwt.display(CanvasNewtAwt.java:99)
at org.jzy3d.plot3d.rendering.canvas.CanvasNewtAwt.forceRepaint(CanvasNewtAwt.java:104)
at org.jzy3d.plot3d.rendering.view.View.shoot(View.java:131)
at org.jzy3d.plot3d.rendering.view.View.updateBounds(View.java:553)
at org.jzy3d.plot3d.rendering.scene.Graph.add(Graph.java:100)
at org.jzy3d.plot3d.rendering.scene.Graph.add(Graph.java:104)
at org.jzy3d.plot3d.rendering.scene.Scene.add(Scene.java:95)
at com.kz.grbl.SurfaceDemo2$Visualizer.run(SurfaceDemo2.java:742)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
at java.awt.EventQueue.access$400(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:697)
at java.awt.EventQueue$3.run(EventQueue.java:691)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Is it possible to add dynamical points in other thread than Thread: "Default RequestProcessor".
I am attaching maven project.
Library is very promising and I would like to use it... However it looks to me that dynamically adding points is basic functionality and should already be supported - what I am doing wrong?