Re: Segmentation Fault at "Configure Race"
Bernhard Wymann <[email protected]>
| Newsgroups | gmane.games.torcs.general |
|---|---|
| Organization | wytec |
| Message-ID | <[email protected]> |
Hi I guess you need at least to extract the car package with your desired car such that it appears under this path or to edit the script. I guess nobody hit this problem so far, because people usually start from the "all-in-one" package or took the robotgen script from the tutorial (which does not work anymore for 1.3.4). If you look at the robot tutorial, I provide there a custom "robotgen" script which fits the paths of the tutorial, but the robotgen script in the CVS assumes that everything is there (in the "source"). So you have 2 choices: - Extract the data in the place robotgen expects it or - Quickly edit robotgen to fit your installation path I would just edit robotgen to fit your path, just replace "grep category data/cars/models..." with "grep category /fullpath/data/cars/models...", where fullpath is the location of the stuff on your system. Best regards Bernhard On 05/24/2013 09:46 AM, Michael Sieben wrote: > Hi Bernhard, > > i run the script from the $TORCS_BASE directory. > > the problem seems to be this: > > > $ bash -x robotgen -n "mcc1" -a "McCriddle" -c "car5-trb1" --gpl > *snip* > ++ grep category data/cars/models/car5-trb1/car5-trb1.xml > grep: data/cars/models/car5-trb1/car5-trb1.xml: Datei oder Verzeichnis > nicht gefunden > *snip* > > > but i have no data/..... dirs under my $TORCS_BASE > > should i extract any more than the *-src-* - Archives to the $TORCS_BASE > directory ? > > here are the first 2 levels of dirs: > > export/drivers/ > export/include/ > export/lib/ > export/modules/ > src/doc/ > src/drivers/ > src/interfaces/ > src/libs/ > src/linux/ > src/modules/ > src/raceman/ > src/tools/ > src/windows/ > > > kind regards > McCriddle > > > > > > > > 2013/5/24 Bernhard Wymann <[email protected] <mailto:[email protected]>> > > Hi McCriddle > > Did you put it in the same place like the other script, I guess you > just run it from the wrong place, do the paths relative to the > script exist (here your command works flawlessly)? Does the category > in the car5-trb1 directory exist (in the original it does, maybe you > have modified it)? > > berni@wytec001:~/torcs_src/__torcs/torcs> ./robotgen -n "mcc1" -a > "McCriddle" -c "car5-trb1" --gpl > Generation of robot mcc1 author McCriddle > Copying car5-trb1.rgb ... and car5-trb1.xcf ... done > Copying logo.rgb ... done > Generating src/drivers/mcc1/Makefile ... done > Generating src/drivers/mcc1/mcc1.xml ... done > Generating src/drivers/mcc1/mcc1.cpp ... done > Generating src/drivers/mcc1/mcc1.def ... done > Generating src/drivers/mcc1/mcc1.dsp ... done > > Here you can see how to execute a script verbose: > http://tldp.org/LDP/Bash-__Beginners-Guide/html/sect_02___03.html > <http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_02_03.html> > > Best regards > > Bernhard > > > On 05/23/2013 04:27 PM, Michael Sieben wrote: > > Hi Bernhard, > > i downloaded the robotgen you linked, but now i get this: > > ./robotgen -n "mcc1" -a "McCriddle" -c "car5-trb1" --gpl > grep: data/cars/models/car5-trb1/__car5-trb1.xml: Datei oder > Verzeichnis > nicht gefunden > usage: robotgen -n <name> -a <author> -c <car> [-d description] > [--gpl] > linadmin@svr110:~/torcs-1.3.4$ torcs -s > Visual Properties Report > ------------------------ > Compatibility mode, properties unknown. > linadmin@svr110:~/torcs-1.3.4$ ./robotgen -n "mcc1" -a > "McCriddle" -c > "car5-trb1" --gpl > grep: data/cars/models/car5-trb1/__car5-trb1.xml: Datei oder > Verzeichnis > nicht gefunden > usage: robotgen -n <name> -a <author> -c <car> [-d description] > [--gpl] > > > The "Configure Race" now works fine, after i deleted my > generated robot > from /usr/local/lib/... and /usr/local/share/.... > > kind regards > McCriddle > > > > 2013/5/23 Bernhard Wymann <[email protected] > <mailto:[email protected]> <mailto:[email protected] > <mailto:[email protected]>>> > > > Hi McCriddle > > The ultimate reason for this is probable a fixed memory leak in > 1.3.4. I the CVS you can find a fixed robotgen script: > http://torcs.cvs.sourceforge.____net/viewvc/torcs/torcs/torcs/____robotgen?revision=1.4.2.1&____view=markup&pathrev=r1-3-1 > > > <http://torcs.cvs.sourceforge.__net/viewvc/torcs/torcs/torcs/__robotgen?revision=1.4.2.1&__view=markup&pathrev=r1-3-1 > <http://torcs.cvs.sourceforge.net/viewvc/torcs/torcs/torcs/robotgen?revision=1.4.2.1&view=markup&pathrev=r1-3-1>> > > And have a look at this, this is likely the cause: > http://www.berniw.org/trb/____forum/showthread.php?topicid=____3508 > <http://www.berniw.org/trb/__forum/showthread.php?topicid=__3508> > > > <http://www.berniw.org/trb/__forum/showthread.php?topicid=__3508 > <http://www.berniw.org/trb/forum/showthread.php?topicid=3508>> > > Let us know if this helped, usually the solution of such > stuff is > pretty easy, so keep going. > > Best regards > > Bernhard > > > > On 05/23/2013 01:31 PM, Michael Sieben wrote: > > Hi, > > i'm trying to setup torcs for robot-dev. > > I'm running on Ubuntu 13.04 and used the current > torcs-1.3.4 > sources. > > Basically i followed the tutorial at > http://www.berniw.org/____tutorials/robot/tutorial.html > <http://www.berniw.org/__tutorials/robot/tutorial.html> > > <http://www.berniw.org/__tutorials/robot/tutorial.html > <http://www.berniw.org/tutorials/robot/tutorial.html>> > > After applying a patch ( see > http://comments.gmane.org/____gmane.games.torcs.general/1584 > <http://comments.gmane.org/__gmane.games.torcs.general/1584> > > > <http://comments.gmane.org/__gmane.games.torcs.general/1584 > <http://comments.gmane.org/gmane.games.torcs.general/1584>__> ) i > got the > game running and can start race without any problems. > > Using the robotgen from the tutorial i generated and > compiled my > basic > robot and then tried to test it. > > Unfortunately torcy crashes whenever i try to modify > the race > settings ( > Configura race ) as soon as i hit "Accept" in the track > selection. > > I hope someone can give me a hint where my environment > is lacking. > > Thanks in advance > McCriddle > > > Here is the output from torcs -d : > > GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu > Copyright (C) 2013 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > <http://gnu.org/licenses/gpl.____html > <http://gnu.org/licenses/gpl.__html> > > <http://gnu.org/licenses/gpl.__html > <http://gnu.org/licenses/gpl.html>>> > This is free software: you are free to change and > redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type > "show copying" > and "show warranty" for details. > This GDB was configured as "x86_64-linux-gnu". > For bug reporting instructions, please see: > <http://www.gnu.org/software/____gdb/bugs/ > <http://www.gnu.org/software/__gdb/bugs/> > <http://www.gnu.org/software/__gdb/bugs/ > <http://www.gnu.org/software/gdb/bugs/>>>... > Reading symbols from > /usr/local/lib/torcs/torcs-____bin...done. > > (gdb) Starting program: /usr/local/lib/torcs/torcs-bin -l > /home/linadmin/.torcs -L /usr/local/lib/torcs -D > /usr/local/share/games/torcs > warning: no loadable sections found in added symbol-file > system-supplied > DSO at 0x7ffff7ffa000 > [Thread debugging using libthread_db enabled] > Using host libthread_db library > "/lib/x86_64-linux-gnu/____libthread_db.so.1". > > Visual Properties Report > ------------------------ > Compatibility mode, properties unknown. > [New Thread 0x7fffeee39700 (LWP 20929)] > [New Thread 0x7fffee638700 (LWP 20930)] > [New Thread 0x7fffeb474700 (LWP 20931)] > [Thread 0x7fffeb474700 (LWP 20931) exited] > [New Thread 0x7fffeb474700 (LWP 20932)] > [New Thread 0x7fffe6c72700 (LWP 20933)] > [Thread 0x7fffe6c72700 (LWP 20933) exited] > [Thread 0x7fffeb474700 (LWP 20932) exited] > [Thread 0x7fffee638700 (LWP 20930) exited] > [Thread 0x7fffeee39700 (LWP 20929) exited] > process 20925 is executing new program: > /usr/local/lib/torcs/torcs-bin > [Thread debugging using libthread_db enabled] > Using host libthread_db library > "/lib/x86_64-linux-gnu/____libthread_db.so.1". > > Visual Properties Report > ------------------------ > Compatibility mode, properties unknown. > [New Thread 0x7fffeee39700 (LWP 20934)] > [New Thread 0x7fffee638700 (LWP 20935)] > [New Thread 0x7fffeb474700 (LWP 20936)] > [Thread 0x7fffeb474700 (LWP 20936) exited] > [New Thread 0x7fffeb474700 (LWP 20937)] > [New Thread 0x7fffe6c72700 (LWP 20938)] > > Program received signal SIGSEGV, Segmentation fault. > 0x00007ffff613ac51 in ?? () from > /lib/x86_64-linux-gnu/libc.so.____6 > > (gdb) #0 0x00007ffff613ac51 in ?? () from > /lib/x86_64-linux-gnu/libc.so.____6 > > #1 0x00007ffff613a8c6 in strdup () from > /lib/x86_64-linux-gnu/libc.so.____6 > > #2 0x00007ffff4de3389 in RmDriversSelect > (vs=vs@entry=0x7ffff73859c0 > <ds>) at driverselect.cpp:360 > #3 0x00007ffff717e758 in reConfigRunState () at > racemanmenu.cpp:155 > #4 0x00007ffff75b0447 in GfuiScreenActivate > (screen=0x2839ea0) at > gui.cpp:491 > #5 0x00007ffff4de176b in rmtsDeactivate > (screen=<optimized out>) at > trackselect.cpp:80 > #6 0x00007ffff4de1871 in rmtsSelect () at > trackselect.cpp:171 > #7 0x00007ffff75b025b in gfuiMouse (y=<optimized out>, > x=<optimized > out>, state=1, button=0) > at gui.cpp:423 > ---Type <return> to continue, or q <return> to > quit---#8 gfuiMouse > (button=0, state=1, x=<optimized out>, y=<optimized > out>) at > gui.cpp:398 > #9 0x00007ffff6d4c7d8 in glutMainLoopEvent () from > /usr/lib/x86_64-linux-gnu/____libglut.so.3 > > #10 0x00007ffff6d4cd81 in glutMainLoop () from > /usr/lib/x86_64-linux-gnu/____libglut.so.3 > > #11 0x00000000004013b6 in main (argc=8, > argv=0x7fffffffe068) at > main.cpp:134 > (gdb) quit > A debugging session is active. > > Inferior 1 [process 20925] will be killed. > > Quit anyway? (y or n) [answered Y; input not from terminal] > > > > > ------------------------------____----------------------------__--__------------------ > > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance > monitoring service > that delivers powerful full stack analytics. Optimize and > monitor your > browser, app, & servers with just a few lines of code. > Try New Relic > and get this awesome Nerd Life shirt! > http://p.sf.net/sfu/newrelic_____d2d_may > <http://p.sf.net/sfu/newrelic___d2d_may> > <http://p.sf.net/sfu/newrelic___d2d_may > <http://p.sf.net/sfu/newrelic_d2d_may>> > > > > ___________________________________________________ > Torcs-users mailing list > [email protected].____net > <mailto:Torcs-users@lists.__sourceforge.net > <mailto:[email protected]>> > https://lists.sourceforge.net/____lists/listinfo/torcs-users > <https://lists.sourceforge.net/__lists/listinfo/torcs-users> > > <https://lists.sourceforge.__net/lists/listinfo/torcs-users > <https://lists.sourceforge.net/lists/listinfo/torcs-users>__> > > > > > ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may