I have 2 problems with ssgStateSelector (plib 1.2.0):
1 - minor: the print don't get stderr by default, you should pass
at least the fd (may be ssgState is lacking the default
value also)
2 - major: The clone provokes an error and the program exits.
I have some problems with my gdb so I can't say
a lot... here is the gdb output:
Program received signal SIGSEGV, Segmentation fault.
0x41ebf0d6 in ?? () from /home/torcs/sb/torcs/runtime/modules/graphic/ssggraph.so
(gdb) symbol /home/torcs/sb/torcs/runtime/modules/graphic/ssggraph.so
Load new symbol table from "/home/torcs/sb/torcs/runtime/modules/graphic/ssggraph.so"? (y or n) y
Reading symbols from /home/torcs/sb/torcs/runtime/modules/graphic/ssggraph.so...done.
(gdb) where
#0 0x41ebf0d6 in ?? () from /home/torcs/sb/torcs/runtime/modules/graphic/ssggraph.so
#1 0x41ebf0dc in ?? () from /home/torcs/sb/torcs/runtime/modules/graphic/ssggraph.so
#2 0x41ebf0dc in ?? () from /home/torcs/sb/torcs/runtime/modules/graphic/ssggraph.so
#3 0x41ebf0dc in ?? () from /home/torcs/sb/torcs/runtime/modules/graphic/ssggraph.so
#4 0x41ebf0dc in ?? () from /home/torcs/sb/torcs/runtime/modules/graphic/ssggraph.so
...
In my program, I have the following actions:
myssgStateSelector = new ssgStateSelector(1);
myssgSimpleState = new ssgSimpleState;
myssgSimpleState->setTexture(image);
myssgStateSelector->setStep(0, myssgSimpleState);
then I clone the ssgStateSelector with:
otherssgStateSelector = (ssgStateSelector*)myssgStateSelector->clone(0);
and then boom.
If the problems are not known, I'll try to sort them out tomorrow... it's too late now.
Thanks in advance,
Eric.
--
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
TORCS
The Open Racing Car Simulator
http://torcs.org
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
|