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

Crash when switching from online player to offline player and opening the achievements screen #3494

Closed
Alayan-stk-2 opened this Issue Oct 5, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@Alayan-stk-2
Collaborator

Alayan-stk-2 commented Oct 5, 2018

Happens both on my branch and in 0.9.3.

It doesn't happen on every try, from my few tests, the faster you click on the achievements icon after being sent back in the main menu when choosing the offline player, the higher the likelihood of a crash happening.

Backtrace :

0  BaseOnlineProfileAchievements::onUpdate (this=0x12fc3fb0, delta=<optimized out>) at /*/stk-code/src/states_screens/online/online_profile_achievements.cpp:184
1  0x000000000075daac in GUIEngine::render (elapsed_time=elapsed_time@entry=0.0166666675) at /*/stk-code/src/guiengine/engine.cpp:1196
2  0x0000000000a3512e in IrrDriver::update (this=0x13da890, dt=dt@entry=0.0166666675) at /*/stk-code/src/graphics/irr_driver.cpp:1903

The code where it crashes :

        AchievementInfo *info =
                          AchievementsManager::get()->getAchievementInfo(a[i]);

@Alayan-stk-2 Alayan-stk-2 added this to the 0.10.0 milestone Oct 5, 2018

@Alayan-stk-2 Alayan-stk-2 changed the title from Crash when switching from online player and offline player and opening the achievements screen to Crash when switching from online player to offline player and opening the achievements screen Oct 5, 2018

@Alayan-stk-2

This comment has been minimized.

Collaborator

Alayan-stk-2 commented Oct 6, 2018

I got this in my terminal when STK crashed once again after I followed the same steps :

*** Error in ./bin/supertuxkart': corrupted double-linked list: 0x00000000150b62f0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f83ce0047e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x82970)[0x7f83ce00f970]
/lib/x86_64-linux-gnu/libc.so.6(__libc_malloc+0x54)[0x7f83ce011184]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(_Znwm+0x18)[0x7f83ce90b1e8]
./bin/supertuxkart(_ZNSt6vectorIwSaIwEE19_M_emplace_back_auxIIwEEEvDpOT_+0x3e)[0x6deffe]
./bin/supertuxkart(_ZN11StringUtils10utf8ToWideEPKc+0xc0)[0x6de1e0]
./bin/supertuxkart(_ZN12Translations9w_gettextEPKcS1_+0x107)[0x6ca3d7]
./bin/supertuxkart(_ZN29BaseOnlineProfileAchievements8onUpdateEf+0x55)[0x81dfe5]
./bin/supertuxkart(_ZN9GUIEngine6renderEf+0x53c)[0x75ea1c]
./bin/supertuxkart(_ZN9IrrDriver6updateEf+0x17e)[0xa3658e]
./bin/supertuxkart(_ZN8MainLoop3runEv+0x746)[0x7640c6]
./bin/supertuxkart(main+0x9ea)[0x63b24a]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f83cdfad830]
./bin/supertuxkart(_start+0x29)[0x678a19]
@deveee

This comment has been minimized.

Member

deveee commented Nov 15, 2018

May be related to 84840cf ?

@Alayan-stk-2

This comment has been minimized.

Collaborator

Alayan-stk-2 commented Nov 16, 2018

I could get it to crash after a few tries on a 30/10/18 build. I could not get it to crash after around ten tries on the latest master.

So, while I'm not sure how translation and multithreading would impact this ; it seems quite possible it has been fixed.

I'll reopen it should the issue be reproducible in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment