supertuxkart-sourceforge-migration / stk-migration-test2

0 stars 0 forks source link

Stk crashes in demo mode when the player isn't selected #663

Open supertuxkart-sourceforge-migration opened 10 years ago

supertuxkart-sourceforge-migration commented 10 years ago

Author: kroartem

Stk r[11373] Start the game with flags like this: supertuxkart --demo-mode 3 --demo-laps 1 The game will launch and you'll see player selection menu. If you'd be inactive the player won't be chosen and demo mode will try to start but it'll just crash. Stactrace:

supertuxkart: /home/kroartem/SVN/supertuxkart/src/challenges/unlock_manager.hpp:80: GameSlot* UnlockManager::getCurrentSlot(): ??????????? ??????????? <<m_game_slots.find(m_current_game_slot) != m_game_slots.end()>> ?? ?????????.

Program received signal SIGABRT, Aborted.
0x00007ffff61b3445 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007ffff61b3445 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff61b6bab in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007ffff61ac10e in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00007ffff61ac1b2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#4  0x000000000073179d in UnlockManager::getCurrentSlot (this=0x6c532f0)
    at /home/kroartem/SVN/supertuxkart/src/challenges/unlock_manager.hpp:80
#5  0x000000000084b058 in KartPropertiesManager::getRandomKartList (
    this=0x1bcccc0, count=1, existing_karts=..., ai_list=0x1c68f40)
    at /home/kroartem/SVN/supertuxkart/src/karts/kart_properties_manager.cpp:465
#6  0x00000000008ad05d in RaceManager::computeRandomKartList (this=0x1c68e40)
    at /home/kroartem/SVN/supertuxkart/src/race/race_manager.cpp:244
#7  0x000000000087e9a2 in NetworkManager::setupPlayerKartInfo (this=0x1be4440)
    at /home/kroartem/SVN/supertuxkart/src/network/network_manager.cpp:565
#8  0x0000000000860999 in DemoWorld::updateIdleTimeAndStartDemo (
    dt=0.0280000009)
    at /home/kroartem/SVN/supertuxkart/src/modes/demo_world.cpp:142
#9  0x000000000078f496 in GUIEngine::render (elapsed_time=0.0280000009)
    at /home/kroartem/SVN/supertuxkart/src/guiengine/engine.cpp:1181
#10 0x000000000075c861 in IrrDriver::update (this=0x12c8dd0, dt=0.0280000009)
    at /home/kroartem/SVN/supertuxkart/src/graphics/irr_driver.cpp:1534
#11 0x000000000085bdac in MainLoop::run (this=0x1be5f40)
    at /home/kroartem/SVN/supertuxkart/src/main_loop.cpp:160
---Type <return> to continue, or q <return> to quit---
#12 0x0000000000859ca1 in main (argc=6, argv=0x7fffffffe218)
    at /home/kroartem/SVN/supertuxkart/src/main.cpp:1420

Migrated-From: https://sourceforge.net/apps/trac/supertuxkart/ticket/663

supertuxkart-sourceforge-migration commented 10 years ago

Author: auria Attempt at a fix in #663. Can't test if it works

supertuxkart-sourceforge-migration commented 10 years ago

Author: hikerstk Fixed in r11958 and r11960.