supertuxkart-sourceforge-migration / stk-migration-test2

0 stars 0 forks source link

Stk crashes when using -N --track <arena> #483

Closed supertuxkart-sourceforge-migration closed 10 years ago

supertuxkart-sourceforge-migration commented 10 years ago

Author: kroartem

Stk r10063

Starting program: /home/artem/SVN/supertuxkart/src/supertuxkart -N -R --race-now --list-tracks --track scotland --track tired
[debugging using libthread_db enabled](Thread)
Irrlicht Engine version 1.8.0-alpha
Linux 3.0.0-13-generic #21-Ubuntu SMP Mon Oct 17 20:18:51 UTC 2011 x86_64
[Data files will be fetched from: '..'
[FileManager](FileManager]) Addons files will be stored in '/home/artem/.local/share/supertuxkart/addons'.
[Env var LANGUAGE = 'ru'
[translate](translate]) Env var LANGUAGE = 'ru', which corresponds to 'Russian'
[Trying OpenGL rendering.
[IrrDriver Temp Logger](IrrDriver]) Level 2: No FSAA available.
[Thread 0x7fffeae2d700 (LWP 6241)](New)
[Thread 0x7fffe8f73700 (LWP 6242)](New)
[0x7fffe8f73700 (LWP 6242) exited](Thread)
[Thread 0x7fffe8f73700 (LWP 6243)](New)
[Thread 0x7fffe3fff700 (LWP 6244)](New)
[Warning](Irrlicht) Could not open file of texture: chinch-fur.rgb
[Warning](Irrlicht) Could not open file of texture: chinch-skin.rgb
  Available tracks:
      battleisland: Battle Island
            canyon: Coyote Canyon
              cave: Cave X
              city: Shiny Suburbs
    crescentcrossing: Crescent Crossing
              farm: Bovine Barnyard
         fortmagma: Fort Magma
          hacienda: Hacienda
       islandtrack: The Island
            jungle: Amazonian Journey
        lighthouse: Around the Lighthouse
             mines: Old Mine
        olivermath: Oliver's Math Class
         sandtrack: Shifting Sands
          scotland: Scotland
      snowmountain: Northern Resort
       snowtuxpeak: Snow Peak
           stadium: The Stadium
         startrack: Star Track
            subsea: Subsea
        tuxtollway: Tux Tollway
             xr591: XR591
         zengarden: Zen Garden
    classic-subsea: Classic Subsea
    classic-tollway: Classic Tollway
    doing-the-dishes: Doing the Dishes
        fort-magma: Another Fort Magma
      green-valley: Green Valley
    mystery-island: Mystery Island
     on-an-iceberg: On an Iceberg
           parkade: Parkade
      subsea-track: Subsea track
    the-old-island: The Old Island
        the-plains: The Plains
             tired: Tired
Use --track N to choose track.

You choose to start in track: scotland.
You choose to start in track: tired.
[Warning](Irrlicht) PNG warning: Interlace handling should be turned on when using png_read_image

Program received signal SIGSEGV, Segmentation fault.
QuadGraph::findRoadSector (this=0x0, xyz=..., sector=0x67548c0, 
    all_sectors=<optimized out>) at tracks/quad_graph.cpp:650
650                             : m_all_nodes.size();
(gdb) bt
#0  QuadGraph::findRoadSector (this=0x0, xyz=..., sector=0x67548c0, 
    all_sectors=<optimized out>) at tracks/quad_graph.cpp:650
#1  0x000000000050abe0 in DefaultAIController::reset (this=0x6754880)
    at karts/controller/default_ai_controller.cpp:134
#2  0x000000000050af28 in DefaultAIController::DefaultAIController (
    this=0x6754880, kart=<optimized out>)
    at karts/controller/default_ai_controller.cpp:52
#3  0x000000000052d700 in World::loadAIController (this=<optimized out>, 
    kart=0x5e96420) at modes/world.cpp:237
#4  0x000000000052d83a in World::createKart (this=<optimized out>, 
    kart_ident=..., index=<optimized out>, local_player_id=-1, 
    global_player_id=<optimized out>) at modes/world.cpp:206
#5  0x000000000052f156 in World::init (this=0x1163bf0) at modes/world.cpp:149
#6  0x0000000000530e59 in WorldWithRank::init (this=0x1163bf0)
    at modes/world_with_rank.cpp:27
#7  0x000000000052a32e in ThreeStrikesBattle::init (this=0x1163bf0)
    at modes/three_strikes_battle.cpp:50
#8  0x0000000000556df9 in RaceManager::startNextRace (this=0x7fffe4006b50)
    at race/race_manager.cpp:359
#9  0x00000000005574ec in RaceManager::startNew (this=0x7fffe4006b50)
    at race/race_manager.cpp:302
#10 0x000000000040c159 in main (argc=<optimized out>, argv=<optimized out>)
    at main.cpp:1307
(gdb) 

Setting this to minor.

supertuxkart-sourceforge-migration commented 10 years ago

Author: kroartem Also setting --profile-laps=-1 makes stk crash. Auria and me don't think this is worth fixing.

supertuxkart-sourceforge-migration commented 10 years ago

Author: wardje Might be worth pointing out the second track you are inputting is an arena addon track. I don't seem to be able to reproduce it when using two normal ones. All that happens then is the second one of the two starting (with a slight delay for me compared to the AI).

supertuxkart-sourceforge-migration commented 10 years ago

Author: wardje The ''actual'' problem here seems to be that an arena track is started and subsequently AI karts get added to the race. Their controller tries to look for quadgraphs, which aren't (currently) defined in an arena.

For example, this produces the same error

gdb --args bin/supertuxkart --track battleisland -N

As such, I don't think the double --track parameter is actually relevant. Changing the title.

supertuxkart-sourceforge-migration commented 10 years ago

Author: kroartem Hiker said: 12:42 < hiker> Hmm -N for battle island just worked for me 12:43 < hiker> But I have artist debug mode set

However, it crashes for me both under linux (ubuntu 13.04 x86_64) and windows 7 (64-bit). I thought when it does else if (t->isArena()) race_manager->setMinorMode(RaceManager::MINOR_MODE_3_STRIKES); then everything is ok and it starts Three strikes battle, but I don't understand what happens next.

supertuxkart-sourceforge-migration commented 10 years ago

Author: kroartem Fixed this problem by enabling 0 ai karts for soccer and three strikes battle. Probably not the best solution, patch is in ticket https://sourceforge.net/apps/trac/supertuxkart/ticket/992

supertuxkart-sourceforge-migration commented 10 years ago

Author: kroartem Fixed in r[12857]