Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kart profiling triggers an assert in Debug builds #5253

Open
kimden opened this issue Jan 18, 2025 · 0 comments
Open

Kart profiling triggers an assert in Debug builds #5253

kimden opened this issue Jan 18, 2025 · 0 comments

Comments

@kimden
Copy link
Contributor

kimden commented Jan 18, 2025

Description

I tried to run some automatic profiling, for that I wanted to invoke the following command

bin/supertuxkart --disable-addon-karts --disable-addon-tracks --profile-laps=1 --aiNP=pidgin --track=black_forest

(Let me know if that's a wrong command.)

It appears it works in Release and RelWithDebInfo builds, but not in Debug mode, where it throws the following:

supertuxkart: /folder/src/race/race_manager.cpp:460: void RaceManager::startNew(bool): Assertion `(unsigned int)m_num_karts == m_num_ghost_karts+m_ai_kart_list.size()+m_player_karts.size()' failed.

Steps to reproduce

Run the command above in both Release build and Debug build.

Configuration

STK release version: latest git b180a49

Backtrace of the part that doesn't handle assert

#7  0x00005efb59356bdd in RaceManager::startNew (this=0x5efb5b4c8b60, from_overworld=false)
    at /folder/src/race/race_manager.cpp:460
#8  0x00005efb591a835e in main (argc=6, argv=0x7fff357ead08) at /folder/src/main.cpp:2619
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant