[Kde-games-devel] Crash in KScoreDialog

Dmitry Suzdalev dimsuz at gmail.com
Thu Jun 7 20:41:52 CEST 2007


Hello!

While writing most recent fix for katomic, I catched a crash in KScoreDialog.

Unfortunately I can't call this crash 100% reproducible. I tried several 
times. It happens _sometimes_ after I complete the level, enter my name in 
KScoreDialog and hit "OK". Good news is that I have a backtrace :-). Here it 
is (I guess #8 is of interest):

#3  0xb5e52fb9 in abort () from /lib/tls/i686/cmov/libc.so.6
#4  0xb7e51cc2 in qt_message_output (msgType=QtFatalMsg,
    buf=0xbfe31500 "ASSERT failure in QList<T>::at: \"index out of range\", 
file /home/kde-devel/KDE-SVN/qt-copy/include/QtCore/../../src/corelib/tools/qlist.h, 
line 371")  at global/qglobal.cpp:2145
#5  0xb7e51d27 in qFatal (msg=0xb7f44090 "ASSERT failure in %s: \"%s\", 
file %s, line %d") at global/qglobal.cpp:2376
#6  0xb7e51d6c in qt_assert_x (where=0xb705f922 "QList<T>::at", 
what=0xb705f8fa "index out of range", 
file=0xb705f8a0 "/home/kde-devel/KDE-SVN/qt-copy/include/QtCore/../../src/corelib/tools/qlist.h", 
line=371) at global/qglobal.cpp:1912
#7  0xb7002842 in QList<QLabel*>::at (this=0x8118164, i=0) 
at /home/kde-devel/KDE-SVN/qt-copy/include/QtCore/../../src/corelib/tools/qlist.h:371

#8  0xb6ffea15 in KScoreDialog::KScoreDialogPrivate::aboutToShow 
(this=0x812f620) 
at /home/kde-devel/KDE-SVN/kdegames/libkdegames/highscore/kscoredialog.cpp:291

#9  0xb6ffefd0 in KScoreDialog::exec (this=0x812d060) 
at /home/kde-devel/KDE-SVN/kdegames/libkdegames/highscore/kscoredialog.cpp:472
#10 0x0805ea81 in GameWidget::gameOver (this=0x809ff38, moves=51) 
at /home/kde-devel/KDE-SVN/kdegames/katomic/gamewidget.cpp:112

Btw, while playing katomic I repeatedly see this debug output (maybe it'll be 
of some help?):

libkdegames (Highscores): The current high score group "Highscores Level 3" 
isn't in the list, adding it
libkdegames (Highscores): The current high score group "Highscores Level 4" 
isn't in the list, adding it
libkdegames (Highscores): Removing group "Highscores Level 4" since it's 
unused.
libkdegames (Highscores): The current high score group "Highscores Level 4" 
isn't in the list, adding it
libkdegames (Highscores): Removing group "Highscores Level 4" since it's 
unused.
etc etc...

Sorry, currently I lack motivation to fix that myself :). Hope that someone 
(Matt?) will look into it.

Cheers,
Dmitry.


More information about the kde-games-devel mailing list