segfault when restarting a race many times

Carlos Diógenes <[email protected]>
Newsgroups gmane.games.torcs.general
Message-ID <[email protected]>
Hi,

I'm training a robot with computational intelligence techniques. For now I'm
using NEAT. After about 1000 race restarts torcs crash. Before this, about
700 race restarts, I percept that the tyres didn't render right, only the
sides were rendered and the middle didn't appear, you can see the track
throw the tyres. You can also see the suspension in the middle of it. I was
using the f1 car that comes with torcs.

I'm using Ubuntu 9.10 and Torcs 1.3.1 using the plib sound backend. If I use
OpenAL the game crash very early, after some restarts. If it's interesting,
I can also provide a bt. I'm also using the patch used in the CIG
championship:
http://sourceforge.net/projects/cig/files/Championship%202009%20Linux/1.3/champ2009patch-1.3.tgz/download

Here is the bt for the problem I described first:

Program received signal SIGSEGV, Segmentation fault.
0x00ffc8e8 in vtable for __cxxabiv1::__si_class_type_info () from
/usr/lib/libstdc++.so.6
(gdb) #0  0x00ffc8e8 in vtable for __cxxabiv1::__si_class_type_info () from
/usr/lib/libstdc++.so.6
#1  0x007f49f4 in grVtxTable::draw_geometry_for_a_car_array (this=0xec4b158)
at grvtxtable.cpp:615
#2  0x007f5d87 in grVtxTable::draw (this=0xec4b158) at grvtxtable.cpp:260
#3  0x00a9568b in ssgLeaf::cull(sgFrustum*, float (*) [4], int) () from
/usr/lib/libplibssg.so.1
#4  0x00aaa6aa in ssgTransform::cull(sgFrustum*, float (*) [4], int) () from
/usr/lib/libplibssg.so.1
#5  0x00aaa6aa in ssgTransform::cull(sgFrustum*, float (*) [4], int) () from
/usr/lib/libplibssg.so.1
#6  0x00aaa6aa in ssgTransform::cull(sgFrustum*, float (*) [4], int) () from
/usr/lib/libplibssg.so.1
#7  0x00a8ff72 in ssgBranch::cull(sgFrustum*, float (*) [4], int) () from
/usr/lib/libplibssg.so.1
#8  0x00a8ff72 in ssgBranch::cull(sgFrustum*, float (*) [4], int) () from
/usr/lib/libplibssg.so.1
#9  0x00a9ff1f in ssgSelector::cull(sgFrustum*, float (*) [4], int) () from
/usr/lib/libplibssg.so.1
#10 0x00aaa6aa in ssgTransform::cull(sgFrustum*, float (*) [4], int) () from
/usr/lib/libplibssg.so.1
#11 0x00a8ff72 in ssgBranch::cull(sgFrustum*, float (*) [4], int) () from
/usr/lib/libplibssg.so.1
#12 0x00a8ff72 in ssgBranch::cull(sgFrustum*, float (*) [4], int) () from
/usr/lib/libplibssg.so.1
#13 0x00a9244b in ssgContext::cull(ssgBranch*) () from
/usr/lib/libplibssg.so.1
#14 0x00a8ddf7 in ssgCullAndDraw(ssgBranch*) () from
/usr/lib/libplibssg.so.1
---Type <return> to continue, or q <return> to quit---#15 0x007e52fb in
grDrawScene () at grscene.cpp:258
#16 0x007e4d3b in cGrScreen::camDraw (this=0x8ada4e8, s=0x870a990) at
grscreen.cpp:288
#17 0x007e4f02 in cGrScreen::update (this=0x8ada4e8, s=0x870a990, Fps=0) at
grscreen.cpp:349
#18 0x007d4cf7 in refresh (s=0x870a990) at grmain.cpp:328
#19 0x00859da4 in ReUpdate () at raceengine.cpp:640
#20 0x008576bd in ReStateManage () at racestate.cpp:97
#21 0x00857a87 in reHookActivate () at racegl.cpp:224
#22 0x00e716d0 in GfuiScreenActivate (screen=0x87174d0) at gui.cpp:490
#23 0x00857813 in ReStateManage () at racestate.cpp:117
#24 0x00857a67 in reDisplay () at racegl.cpp:52
#25 0x001275bb in ?? () from /usr/lib/libglut.so.3
#26 0x0012aea3 in fgEnumWindows () from /usr/lib/libglut.so.3
#27 0x00127f80 in glutMainLoopEvent () from /usr/lib/libglut.so.3
#28 0x001283dd in glutMainLoop () from /usr/lib/libglut.so.3
#29 0x08049067 in main (argc=7, argv=0xbffff8c4) at main.cpp:129

Best regards,
Carlos.

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev

_______________________________________________
Torcs-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/torcs-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.