wjc272008 / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

Bug in jME SDK RC2 #543

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've found a bug in jME SDK RC2.
Here is the Stacktrace: http://pastebin.com/Bv4tdbhF

Original issue reported on code.google.com by albiononline on 7 Oct 2012 at 11:01

GoogleCodeExporter commented 9 years ago
We need a test case to fix this, what caused the issue?

Original comment by remy.bou...@gmail.com on 18 Dec 2012 at 4:39

GoogleCodeExporter commented 9 years ago
When looking at TempVars#get() I find that there are no sanity checks whether 
the current index already reached the maximum value of 4 (5-1).

In addition, TempVars#release() contains no sanity checks whether the index 
reached the minimum stack size of 0, eventually causing it to become negative 
when released a second time after that the last element in the stack was 
released.

The actual cause of the problem is that TempVars#release() was not called. I 
presume that the OP did call the TempVars#get() from his own code and then 
forgot to release them again.

Original comment by axnsoftw...@gmail.com on 28 Jan 2014 at 10:43