Re: [Tuxracer-devel] too many Particles and libtcl8.x
Status: Beta
Brought to you by:
jfpatry
From: Ingo R. <gr...@gm...> - 2000-02-29 14:11:13
|
Jasmin Patry <jf...@cg...> writes: > To follow up on the particle system bug: > > If you can reliably re-create the problem, Yep, I can reproduce the problem, since it always happens when I press J or L. > could you please apply the attached patch to part_sys.c and send me > the resulting core file? There is no core file generated. So I played a bit around with gdb: ,---- | nstuxracer: Maximum number of particles exceeded. | *** Please help the Tux Racer developers by emailing the core file | *** that has just been created (gzip it first, please) to | *** <jf...@cg...>. Thanks! | | Breakpoint 1, create_new_particles (loc={x = 0.67505081281655532, | y = -20.186827572125033, z = -50.121188293065998}, vel={x = 0, y = 1, | z = 0}, num=186591) at part_sys.c:66 | 66 assert( 0 ); | (gdb) bt | #0 create_new_particles (loc={x = 0.67505081281655532, | y = -20.186827572125033, z = -50.121188293065998}, vel={x = 0, y = 1, | z = 0}, num=186591) at part_sys.c:66 | ^^^^^^ <-------------------- This looks far to big | #1 0x80598e5 in generate_particles (plyr=0x806e4bc, | dtime=0.0012768565664670987, pos={x = 0.50005081281655528, | y = -20.186827572125033, z = -50.121188293065998}, | speed=78.311284378030109) at phys_sim.c:754 `---- Looks like plyr->control.turn_fact is the cause for this: ,---- | (gdb) print generate_particles::plyr->control.turn_fact | $5 = 48711.292061943917 `---- > Please also specify your compiler version (I'm assuming I'll need to use > the same version to use your core file, or no? I'm new to distributed > development. :-). I'm using gcc 2.95.2, but AFAIK you need the same tuxracer binary as I used to generate the core file. > By the way, if you want to suppress particle generation altogether, > simply comment out the call to generate_particles() in phys_sim.c. That didn't help. Tux gets totally out of controll if I press J or L, looks like the problem is not the particle system, but instead that there is something wrong with the controls. -- ICQ: 59461927 http://pingus.seul.org | Ingo Ruhnke <gr...@gm...> http://home.pages.de/~grumbel/ | ------------------------------------------------------------------------+ |