Bug 324020

Summary: Knights crashed when selecting chess engine
Product: [Applications] knights Reporter: Jan Olsfors <jan.olsfors>
Component: generalAssignee: Miha Čančula <miha>
Status: RESOLVED NOT A BUG    
Severity: crash CC: alexander.semke, apcomptec, gwierzchowski, kde-games-bugs
Priority: NOR Keywords: drkonqi
Version: 2.5.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jan Olsfors 2013-08-25 17:35:59 UTC
Application: knights (2.5.0)
KDE Platform Version: 4.10.5 "release 1"
Qt Version: 4.8.4
Operating System: Linux 3.7.10-1.16-desktop x86_64
Distribution: "openSUSE 12.3 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:

After starting knights, selected gnuchess as chess engine.
When clicking OK, knights crashed

-- Backtrace:
Application: Knights (knights), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[KCrash Handler]
#6  QByteArray (a=<error reading variable: Cannot access memory at address 0x31>, this=0x7fffc8b33d30) at /usr/include/QtCore/qbytearray.h:439
#7  KgTheme::identifier (this=0x21) at /usr/src/debug/libkdegames-4.10.5/kgtheme.cpp:55
#8  0x00007feee0c0e7e3 in KGameRendererPrivate::setTheme (this=this@entry=0x1e3df10, theme=theme@entry=0x21) at /usr/src/debug/libkdegames-4.10.5/kgamerenderer.cpp:197
#9  0x00007feee0c0f9f0 in _k_setTheme (theme=0x21, this=0x1e3df10) at /usr/src/debug/libkdegames-4.10.5/kgamerenderer.cpp:167
#10 KGameRendererPrivate::_k_setTheme (this=0x1e3df10, theme=0x21) at /usr/src/debug/libkdegames-4.10.5/kgamerenderer.cpp:159
#11 0x00007feee0c10185 in KGameRenderer::frameCount (this=0x1e7a6d0, key=...) at /usr/src/debug/libkdegames-4.10.5/kgamerenderer.cpp:306
#12 0x00007feee0c106d9 in KGameRenderer::spriteExists (this=<optimized out>, key=...) at /usr/src/debug/libkdegames-4.10.5/kgamerenderer.cpp:408
#13 0x000000000044ce4c in Knights::Board::updateTheme (this=this@entry=0x1ec2910) at /home/olsfors/Downloads/knights-2.5.0/src/board.cpp:503
#14 0x000000000044d771 in Knights::Board::Board (this=0x1ec2910, provider=0x1e0d790, parent=<optimized out>) at /home/olsfors/Downloads/knights-2.5.0/src/board.cpp:81
#15 0x000000000044df49 in Knights::KnightsView::setupBoard (this=0x1df1be0, provider=0x1e0d790) at /home/olsfors/Downloads/knights-2.5.0/src/knightsview.cpp:72
#16 0x0000000000454813 in Knights::MainWindow::protocolInitSuccesful (this=0x1dff6b0) at /home/olsfors/Downloads/knights-2.5.0/src/knights.cpp:420
#17 0x0000000000454ac5 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at /home/olsfors/Downloads/knights-2.5.0/build/src/knights.moc:82
#18 Knights::MainWindow::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /home/olsfors/Downloads/knights-2.5.0/build/src/knights.moc:68
#19 0x00007feedf15e29f in QMetaObject::activate (sender=0x1dfb4e0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3548
#20 0x00000000004437d2 in Knights::Manager::protocolInitSuccesful (this=0x1dfb4e0) at /home/olsfors/Downloads/knights-2.5.0/src/gamemanager.cpp:472
#21 0x00007feedf15d77e in QObject::event (this=0x1dfb4e0, e=<optimized out>) at kernel/qobject.cpp:1203
#22 0x00007feede05986c in QApplicationPrivate::notify_helper (this=this@entry=0x1c503d0, receiver=receiver@entry=0x1dfb4e0, e=e@entry=0x1cea750) at kernel/qapplication.cpp:4562
#23 0x00007feede05dceb in QApplication::notify (this=0x7fffc8b34d60, receiver=0x1dfb4e0, e=0x1cea750) at kernel/qapplication.cpp:4423
#24 0x00007feee1ab97f6 in KApplication::notify (this=0x7fffc8b34d60, receiver=0x1dfb4e0, event=0x1cea750) at /usr/src/debug/kdelibs-4.10.5/kdeui/kernel/kapplication.cpp:311
#25 0x00007feedf148d8e in QCoreApplication::notifyInternal (this=0x7fffc8b34d60, receiver=receiver@entry=0x1dfb4e0, event=event@entry=0x1cea750) at kernel/qcoreapplication.cpp:946
#26 0x00007feedf14c6f1 in sendEvent (event=0x1cea750, receiver=0x1dfb4e0) at kernel/qcoreapplication.h:231
#27 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1c23620) at kernel/qcoreapplication.cpp:1570
#28 0x00007feedf177133 in sendPostedEvents () at kernel/qcoreapplication.h:236
#29 postEventSourceDispatch (s=0x1c4f390) at kernel/qeventdispatcher_glib.cpp:279
#30 0x00007feed58157d5 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#31 0x00007feed5815b08 in ?? () from /usr/lib64/libglib-2.0.so.0
#32 0x00007feed5815bc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#33 0x00007feedf1772c6 in QEventDispatcherGlib::processEvents (this=0x1c28b00, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#34 0x00007feede0f9c1e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#35 0x00007feedf147adf in QEventLoop::processEvents (this=this@entry=0x7fffc8b34c30, flags=...) at kernel/qeventloop.cpp:149
#36 0x00007feedf147d68 in QEventLoop::exec (this=0x7fffc8b34c30, flags=...) at kernel/qeventloop.cpp:204
#37 0x00007feedf14ca08 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#38 0x000000000041994f in main (argc=1, argv=0x7fffc8b34e98) at /home/olsfors/Downloads/knights-2.5.0/src/main.cpp:79

Reported using DrKonqi
Comment 1 Christoph Feck 2014-06-19 10:23:58 UTC
*** Bug 336413 has been marked as a duplicate of this bug. ***
Comment 2 Grzegorz Wierzchowski 2014-11-16 21:32:36 UTC
Important detail:
This crash happens only if you had opened Knights configuration window / engines and confirmed this dialog box with OK and then tried to start new game with engine.
Comment 3 Alexander Semke 2016-02-07 12:45:26 UTC
This crash is not reproducable anymore with the current code of KgTheme.