The TORCS Racing Board
Username: Password: Remember Me?
Lost Password Register
Author: firechief | Created: 2017-05-09 04:35:32
Subject: fa1 crashes in my test race
After only a couple of laps it causes Torcs to segfault. The error's stemming from lines 682-684 in pit.cpp:-

for (int i = 0; i < best_strat.num_stints; i++) {
pitstrategy.stints[j++] = best_strat.stints[i];
}

It crashes on line 683.

When it crashed, best_strat.num_stints was 1635228, though other variables had their values shot to bits so I'm not sure I can trust what Visual Studio's telling me.
Last Edited: 2017-05-09 04:35:32 by firechief
    Author: timfoden | Created: 2017-05-11 16:18:39
    Subject: Re: fa1 crashes in my test race
    I wondered if there's any point in trying to post a result of this race, given that fa1 crashes TORCS. I guess it would be possible to run the race without fa1 and hack the result file to say it didn't manage to run any laps. [in fact I already ran such a race ... nice doughnuts from Axiom after pitting! :)]

    Alternatively does anyone have a fix for fa1?

    Cheers, Tim.
    Last Edited: 2017-05-11 16:18:39 by timfoden
      Author: dummy | Created: 2017-05-11 17:13:54
      Subject: Re: fa1 crashes in my test race
      I agree, it makes no sense to submit a race result this time.

      Yes WALL-E stuck to the wall he was in love with and wouldn't let go :)
      Last Edited: 2017-05-11 17:14:43 by dummy
        Author: firechief | Created: 2017-05-11 17:23:41
        Subject: Re: fa1 crashes in my test race
        That's interesting - I only saw the Axioms nudge a wall on the way into pits due to cutting the corner a little, no donuts though, and after pitting they returned to track as normal.

        Agreed that submitting's a waste of time. You'd probably have to exclude both USR and Axiom due to the name mixup (2016 instead of 2017).
        Last Edited: 2017-05-11 17:23:41 by firechief
          Author: dummy | Created: 2017-05-11 21:20:36
          Subject: Re: fa1 crashes in my test race
          I now especially observed WALL-E. At the first pit stop, he gets new tires and sets throttle to 50%. The throttle stays constant at 50% and we have nice donuts ;)
          Last Edited: 2017-05-11 21:20:36 by dummy
            Author: fa1 | Created: 2017-05-12 02:04:05
            Subject: Re: fa1 crashes in my test race
            Hi all
            Sorry to cause some inconvenience!
            Since we currently are on vacation until end of this week,
            we couldn't submit a new version and we were not aware
            that this will break everyone's test race due to the missing config!

            The next version will make sure it will run properly also for tracks
            without a specific setup.

            Regards, Fabian
            Last Edited: 2017-05-12 02:04:05 by fa1
            Author: firechief | Created: 2017-05-12 04:06:48
            Subject: Re: fa1 crashes in my test race
            Ok, I've replicated the donut problem. Seems I've got a bit of work to do.
            Last Edited: 2017-05-12 06:18:38 by firechief