New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
assertion failure in jme3test.games.CubeField #988
Comments
Commenting out line 284 seems to resolve the issue, though I don't fully understand why:
|
a) wouldn't it be nice if JME assertions included a message. |
I guess the assertion is making sure that the parent's overrides were applied first?
This implies that it is incorrect to ever call updateGeometricState() directly on a child. (which is new... was just ill advised before) |
Thanks for the analysis. I suppose we should remove line 284 at least, since examples should ... set a good example. I'm unsure whether we should remove the assert as well. |
Well the assert is confirming that the parent has been updated before applying its overrides. If we want to allow direct updateGeometricState calling on children then a lot more work would have to be done other than just removing that line. It would be nice if we would go through and add messages to our asserts so that they mean something, though. |
Fixed in |
Currently (in
master
branch at 3.3-6680) theCubeField
app crashes with anAssertionError
the 1st time ENTER is pressed. Here is a typical stack trace:The text was updated successfully, but these errors were encountered: