Hi again. My code segfaults when calling iPcLinearMovement.SetPath() in this code:
def pccommandinput_moveplane1(self,pc,args): p = csPath(2) p.SetForwardVector (0, csVector3(1,0,0)) p.SetPositionVector(0, csVector3(-2,0,0)) p.SetUpVector (0, csVector3(0,1,0)) p.SetTime (0, 0.0) p.SetForwardVector (1, csVector3(-1,0,0)) p.SetPositionVector(1, csVector3(2,0,0)) p.SetUpVector (1, csVector3(0,1,0)) p.SetTime (1, 1.0) self.mover.SetPath(p) Running celstart in gdb shows this call and code line to be the cause: 0x00007fffe1d98861 in celPcLinearMovement::ExtrapolatePosition (this=0x7fffe34f8fb0, delta=0.104999997) at /home/baribal/src/CEL_latest/plugins/propclass/move/linmove.cpp:1093 1093 float end_time = path->GetTime (path->Length () - 1); Here's the trace: #0 0x00007fffe1d98861 in celPcLinearMovement::ExtrapolatePosition (this=0x7fffe34f8fb0, delta=0.104999997) at /home/baribal/src/CEL_latest/plugins/propclass/move/linmove.cpp:1093 #1 0x00007fffe1d993c1 in celPcLinearMovement::TickEveryFrame (this=0x7fffe34f8fb0) at /home/baribal/src/CEL_latest/plugins/propclass/move/linmove.cpp:1203 #2 0x00007fffeec0b09e in celPlLayer::HandleEvent (this=0x7ffff463e280, ev=..., where=0) at /home/baribal/src/CEL_latest/plugins/stdphyslayer/pl.cpp:114 #3 0x00007fffeec14758 in celPlLayer::EventHandlerLogic::HandleEvent (this=0x7ffff7e06fb0, ev=...) at /home/baribal/src/CEL_latest/./plugins/stdphyslayer/pl.h:275 #4 0x00007ffff765a15c in csEventTree::Dispatch (this=0x6082e0, e=...) at /home/baribal/src/CS_latest/libs/csutil/cssubscription.cpp:576 #5 0x00007ffff765a03a in csEventTree::Notify (this=0x6082e0) at /home/baribal/src/CS_latest/libs/csutil/cssubscription.cpp:546 #6 0x00007ffff762ea51 in csEventQueue::Notify (this=0x7ffff7fe8020, name=...) at /home/baribal/src/CS_latest/libs/csutil/cseventq.cpp:239 #7 0x00007ffff762eb4a in csEventQueue::Process (this=0x7ffff7fe8020) at /home/baribal/src/CS_latest/libs/csutil/cseventq.cpp:255 #8 0x00007ffff76dfb47 in csDefaultRunLoop (r=0x7ffff7f67b40) at /home/baribal/src/CS_latest/libs/csutil/generic/runloop.cpp:99 #9 0x00007ffff7bcf7a6 in CelStart::Start (this=0x6020d0) at /home/baribal/src/CEL_latest/apps/celstart/celstart.cpp:768 #10 0x00007ffff7bcf9b5 in CEL::CelStartMain (argc=2, argv=0x7fffffffe158) at /home/baribal/src/CEL_latest/apps/celstart/celstart.cpp:804 #11 0x0000000000400744 in main (argc=2, argv=0x7fffffffe158) at /home/baribal/src/CEL_latest/apps/celstart/wrapper_main.cpp:30 So... What now? Liebe Grüße, Sebastian Hoffmann ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Cel-main mailing list Cel-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cel-main