Re: Segmentation Fault at "Configure Race"
Michael Sieben <[email protected]>
| Newsgroups | gmane.games.torcs.general |
|---|---|
| Message-ID | <CAORBCVzqNPpj7fjnAN7urRuKDyfeEMVre4t0Ed+gKQj5bLrDSA@mail.gmail.com> |
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]> > 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]>> >> >> >> 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<[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 _______________________________________________ Torcs-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/torcs-users