I was updating my game to the latest Panda3D (from GitHub, bleeding edge). But whenever I loaded a specific class, Panda3D crashed. No info at all with spam enabled. I pinpointed it to the following line:
I tried to init a single FSM class, and it worked. I realized that PandaNode and FSM weren’t working together.
Consider the following example:
from panda3d.core import PandaNode from direct.fsm.FSM import FSM class Test(PandaNode, FSM): def __init__(self): PandaNode.__init__(self, 'Test') FSM.__init__(self, 'Test') Test()
Running the code leaves me with this traceback (don’t mind the first two calls): i.imgur.com/rLkJ2Fq.png
But if I switch the order… (This was my case, when P3D just simply crashed):
from panda3d.core import PandaNode from direct.fsm.FSM import FSM class Test(FSM, PandaNode): def __init__(self): FSM.__init__(self, 'Test') PandaNode.__init__(self, 'Test') Test()
Just a crash. notify-level spam doesn’t log anything. i.imgur.com/HbRiTqx.png
I’m on Windows 10, using Python 2.7.11, 32-bit Panda3D build on 64-bit processor.
What can I do in this situation? Thanks.