controlP5 / more instances
in
Contributed Library Questions
•
1 year ago
Hello,
I'm using processing (core.jar) in a Swing-GUI, whereas I'm embedding various views, that is PApplet instances. Now I want display two views side by side, but I'm getting the following processing error:
14:12:02.642 [Animation Thread] ERROR o.t.gui.view.sunburst.SunburstGUI - missing a popMatrix() to go with that pushMatrix()
java.lang.RuntimeException: missing a popMatrix() to go with that pushMatrix()
at processing.core.PGraphicsJava2D.popMatrix(Unknown Source) ~[core-1.5.1.jar:na]
at processing.core.PApplet.popMatrix(Unknown Source) [core-1.5.1.jar:na]
at controlP5.ControllerGroup.draw(Unknown Source) ~[controlP5-0.6.5.jar:na]
at controlP5.ControlWindow.draw(Unknown Source) ~[controlP5-0.6.5.jar:na]
at controlP5.ControlP5.draw(Unknown Source) ~[controlP5-0.6.5.jar:na]
at org.treetank.gui.view.ViewUtilities.drawGUI(ViewUtilities.java:120) ~[classes/:na]
at org.treetank.gui.view.sunburst.SunburstGUI.draw(SunburstGUI.java:328) ~[classes/:na]
at org.treetank.gui.view.ProcessingEmbeddedView.draw(ProcessingEmbeddedView.java:123) [classes/:na]
at org.treetank.gui.view.sunburst.SunburstView$Embedded.draw(SunburstView.java:368) [classes/:na]
at processing.core.PApplet.handleDraw(Unknown Source) [core-1.5.1.jar:na]
at processing.core.PApplet.run(Unknown Source) [core-1.5.1.jar:na]
at java.lang.Thread.run(Thread.java:722) [na:1.7.0]
As I'm using two different controlP5 instances within 2 different PApplet instances, I don't know why a popMatrix() should be missing. The views just interact via a modified oberserver-pattern implementation, a class which invokes specific method in all views for example if an item is hovered or the datastructure must be reloaded or alike.
kind regards,
Johannes
1