Red Hat Bugzilla – Bug 466738
Restarting a level crashes xmoto
Last modified: 2008-10-15 11:00:29 EDT
Description of problem:
When I play xmoto in f9, restarting a level works.
When I play xmoto in f10 (rawhide) if I press enter or play level again after failing a level, xmoto quits.
Version-Release number of selected component (if applicable):
Can you run this from a terminal, and report any error messages? A stack trace would also be helpful. Thanks!
[rodd@moose ~]$ xmoto
ODE INTERNAL ERROR 1: assertion "g_bODEInitialized" failed in dCloseODE() [odeinit.cpp]
If this isn't enough, then I might need a little reminding how to get a stack trace. (It's been a while ;-[)
Checking with the ODE maintainer, to see if my patch is bollocks. . .
Interesting xmoto was already calling CloseOde() upon destruction of the BikePlayer object, but not initOde, as it was doing this initOde needs to be called from the BikePlayer init routine instead of from main, so that it gets initialized each time the BikePlayer gets reset (as it first gets closed then).
I've just committed a new patch doing this to CVS and a fixed xmoto is building now, closing this.