I've been using the controlP5 library for a while now, and am a great fan of it.
As I'm working on a large user interface I have a growing number of elements from controlP5.
This morning, when I added an additional dropdownlist and textfield, I received the following error at runtime:
"Exception in thread "Animation Thread" java.lang.RuntimeException: pushMatrix() cannot use push more than 32 times"
As my code is terribly long, I have not included it here.
However, I've played around a bit by commenting out some items and noticed that after a certain amount of controlP5 objects, this error is thrown. I'm assuming there is a pushMatrix() function that is not terminated with a popMatrix in the library.
If you haven't already done this, it may also help to update to the latest version of the library. Perhaps some errors have already been resolved.
Otherwise it would be helpful to track down the error to a specific controller or a certain number of controllers or something. Some kind of reproducible example error (indeed we don't need your whole code). Because as said, I wasn't able to reproduce the error with controlP5 0.7.5.
Leave a comment on amnon.owed's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic