We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Different behaviour Windows / Linux
Page Index Toggle Pages: 1
Different behaviour Windows / Linux ? (Read 753 times)
Different behaviour Windows / Linux ?
Oct 31st, 2006, 8:59am
 
Hi,

I hope I am in the right section - I am new to processing and I didn't find the Bug session.

On Windows my applet works like a charmm - on Linux it breaks. I use processing 0119 btw.

The only thing I use is core.jar and P3D Mode - I thought this is platform-independent, so why the error ?

Can anybody help me ?

Cheers,
sb

Error while running applet.
java.lang.RuntimeException: Too many calls to popMatrix() (and not enough to pushMatrix)
     at processing.core.PGraphics3D.popMatrix(PGraphics3D.java:2543)
     at processing.core.PApplet.popMatrix(PApplet.java:7320)
     at krachtus.viz.KViz$Node.show(KViz.java:562)
     at krachtus.viz.KViz.showNodes(KViz.java:471)
     at krachtus.viz.KViz.draw(KViz.java:141)
     at processing.core.PApplet.handleDisplay(PApplet.java:1311)
     at processing.core.PGraphics.requestDisplay(PGraphics.java:568)
     at processing.core.PApplet.run(PApplet.java:1406)
     at java.lang.Thread.run(Thread.java:595)
java.lang.RuntimeException: Too many calls to popMatrix() (and not enough to pushMatrix)
     at processing.core.PGraphics3D.popMatrix(PGraphics3D.java:2543)
     at processing.core.PApplet.popMatrix(PApplet.java:7320)
     at krachtus.viz.KViz$Node.show(KViz.java:562)
     at krachtus.viz.KViz.showNodes(KViz.java:471)
     at krachtus.viz.KViz.draw(KViz.java:141)
     at processing.core.PApplet.handleDisplay(PApplet.java:1311)
     at processing.core.PGraphics.requestDisplay(PGraphics.java:568)
     at processing.core.PApplet.run(PApplet.java:1406)
     at java.lang.Thread.run(Thread.java:595)
Re: Different behaviour Windows / Linux ?
Reply #1 - Nov 27th, 2006, 9:07pm
 
Very late reply, but if you read the error it starts off by saying "Too many calls to popMatrix() (and not enough to pushMatrix)". Fix this bug and you'll have a bigger chance of making it run on all platforms. Smiley
Re: Different behaviour Windows / Linux ?
Reply #2 - May 23rd, 2007, 3:59am
 
I can confirm I am getting the same error. This simple program below will produce this error. Strangely it doesn't always happen the first time I play the sketch but the 2nd or 3rd time it will throw the "Too many calls to popMatrix() " error.

void setup(){
 size(400,400,P3D);
}

void draw(){
 background(0);
 translate(width/2,height/2);
 sphere(100);
}

I am running Ubuntu Feisty 7.04
Unfortunately I am new to Linux and wouldn't know where to begin trying to fix this but maybe these observations are helpful to someone who does?
Page Index Toggle Pages: 1