Bug 297748

Summary: Konquest crashes on changing kill percentage without selecting planet first
Product: [Applications] konquest Reporter: michael <reeves.87>
Component: generalAssignee: Pierre Ducroquet <pinaraf>
Status: RESOLVED FIXED    
Severity: crash CC: betatesteur.30, kde-games-bugs, M.Keuchel, sergiu
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.8.5
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description michael 2012-04-09 00:19:44 UTC
Application: konquest (2.1)
KDE Platform Version: 4.8.2 (4.8.2)
Qt Version: 4.8.0
Operating System: Linux 3.0.0-17-generic x86_64
Distribution: Ubuntu 11.10

-- Information about the crash:
Konquest crashes on changing kill percentage without selecting planet first. Seems to happen every time. I am using kdegames-4.8.2 on the kubunutu ppa.

The crash can be reproduced every time.

-- Backtrace:
Application: Konquest (konquest), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f15a1e897a0 (LWP 18901))]

Thread 2 (Thread 0x7f15902b3700 (LWP 18904)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f15902b2ad0 in ?? ()
#2  0x00007fff33ccb7e7 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 1 (Thread 0x7f15a1e897a0 (LWP 18901)):
[KCrash Handler]
#6  t (this=<optimized out>) at ../../konquest/dialogs/newgamedlg.cc:575
#7  operator[] (i=<optimized out>, this=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:465
#8  sector (coord=<optimized out>, this=0x1e18d70) at ../../konquest/map/map.h:68
#9  NewGameDlg::slotNewKillPercentage (this=<optimized out>, value=<optimized out>) at ../../konquest/dialogs/newgamedlg.cc:491
#10 0x0000000000412145 in NewGameDlg::qt_metacall (this=0x2172100, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff33c01740) at moc_newgamedlg.cpp:92
#11 0x00007f159fbfdc09 in QMetaObject::activate (sender=0x1e6b7a0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff33c01740) at kernel/qobject.cpp:3566
#12 0x00007f15a0ec7550 in QDoubleSpinBox::valueChanged (this=<optimized out>, _t1=0.45000000000000001) at .moc/release-shared/moc_qspinbox.cpp:320
#13 0x00007f15a0c971e7 in QDoubleSpinBoxPrivate::emitSignals (this=0x1e6d300, ep=<optimized out>, old=<optimized out>) at widgets/qspinbox.cpp:1088
#14 0x00007f15a0c07dee in QAbstractSpinBoxPrivate::setValue (this=0x1e6d300, val=..., ep=EmitIfChanged, doUpdate=true) at widgets/qabstractspinbox.cpp:1721
#15 0x00007f15a0c08d0c in QAbstractSpinBox::stepBy (this=0x1e6b7a0, steps=1) at widgets/qabstractspinbox.cpp:623
#16 0x00007f15a0c06dba in QAbstractSpinBoxPrivate::updateState (this=0x1e6d300, up=true, fromKeyboard=false) at widgets/qabstractspinbox.cpp:1613
#17 0x00007f15a0c06ecf in QAbstractSpinBox::mousePressEvent (this=0x1e6b7a0, event=0x7fff33c02130) at widgets/qabstractspinbox.cpp:1327
#18 0x00007f15a0885bf9 in QWidget::event (this=0x1e6b7a0, event=0x7fff33c02130) at kernel/qwidget.cpp:8357
#19 0x00007f15a0835104 in notify_helper (e=0x7fff33c02130, receiver=0x1e6b7a0, this=0x15fdf80) at kernel/qapplication.cpp:4555
#20 QApplicationPrivate::notify_helper (this=0x15fdf80, receiver=0x1e6b7a0, e=0x7fff33c02130) at kernel/qapplication.cpp:4527
#21 0x00007f15a083a92f in QApplication::notify (this=<optimized out>, receiver=0x1e6b7a0, e=0x7fff33c02130) at kernel/qapplication.cpp:4098
#22 0x00007f15a1887bf6 in KApplication::notify (this=0x7fff33c048a0, receiver=0x1e6b7a0, event=0x7fff33c02130) at ../../kdeui/kernel/kapplication.cpp:311
#23 0x00007f159fbe961c in QCoreApplication::notifyInternal (this=0x7fff33c048a0, receiver=0x1e6b7a0, event=0x7fff33c02130) at kernel/qcoreapplication.cpp:876
#24 0x00007f15a08360d2 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#25 QApplicationPrivate::sendMouseEvent (receiver=0x1e6b7a0, event=0x7fff33c02130, alienWidget=0x1e6b7a0, nativeWidget=0x2172100, buttonDown=0x1e6b7a0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3166
#26 0x00007f15a08b2765 in QETWidget::translateMouseEvent (this=0x2172100, event=<optimized out>) at kernel/qapplication_x11.cpp:4616
#27 0x00007f15a08b162a in QApplication::x11ProcessEvent (this=0x7fff33c048a0, event=0x7fff33c029f0) at kernel/qapplication_x11.cpp:3732
#28 0x00007f15a08da602 in x11EventSourceDispatch (s=0x15fc920, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#29 0x00007f159c884a5d in g_main_dispatch (context=0x15fbe20) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:2441
#30 g_main_context_dispatch (context=0x15fbe20) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3011
#31 0x00007f159c885258 in g_main_context_iterate (context=0x15fbe20, block=<optimized out>, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3089
#32 0x00007f159c885429 in g_main_context_iteration (context=0x15fbe20, may_block=1) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3152
#33 0x00007f159fc18bbf in QEventDispatcherGlib::processEvents (this=0x15cf4b0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#34 0x00007f15a08da28e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#35 0x00007f159fbe8402 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#36 0x00007f159fbe8657 in QEventLoop::exec (this=0x7fff33c02dc0, flags=...) at kernel/qeventloop.cpp:204
#37 0x00007f15a0d02f06 in QDialog::exec (this=0x2172100) at dialogs/qdialog.cpp:552
#38 0x0000000000418c96 in GameView::startNewGame (this=0x1e30f00) at ../../konquest/gameview.cc:452
#39 0x0000000000412281 in MainWindow::qt_metacall (this=0x17687b0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff33c02fd0) at moc_mainwin.cpp:75
#40 0x00007f159fbfdc09 in QMetaObject::activate (sender=0x17aad60, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff33c02fd0) at kernel/qobject.cpp:3566
#41 0x00007f15a082ec52 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#42 0x00007f15a082ee3f in QAction::activate (this=0x17aad60, event=<optimized out>) at kernel/qaction.cpp:1257
#43 0x00007f15a0c7e589 in QMenuPrivate::activateCausedStack (this=0x1a37930, causedStack=..., action=0x17aad60, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1028
#44 0x00007f15a0c84692 in QMenuPrivate::activateAction (this=0x1a37930, action=0x17aad60, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1120
#45 0x00007f15a19497a0 in KMenu::mouseReleaseEvent (this=0x1a502a0, e=0x7fff33c03ba0) at ../../kdeui/widgets/kmenu.cpp:464
#46 0x00007f15a0885914 in QWidget::event (this=0x1a502a0, event=0x7fff33c03ba0) at kernel/qwidget.cpp:8361
#47 0x00007f15a0c85c2b in QMenu::event (this=0x1a502a0, e=0x7fff33c03ba0) at widgets/qmenu.cpp:2460
#48 0x00007f15a0835104 in notify_helper (e=0x7fff33c03ba0, receiver=0x1a502a0, this=0x15fdf80) at kernel/qapplication.cpp:4555
#49 QApplicationPrivate::notify_helper (this=0x15fdf80, receiver=0x1a502a0, e=0x7fff33c03ba0) at kernel/qapplication.cpp:4527
#50 0x00007f15a083a92f in QApplication::notify (this=<optimized out>, receiver=0x1a502a0, e=0x7fff33c03ba0) at kernel/qapplication.cpp:4098
#51 0x00007f15a1887bf6 in KApplication::notify (this=0x7fff33c048a0, receiver=0x1a502a0, event=0x7fff33c03ba0) at ../../kdeui/kernel/kapplication.cpp:311
#52 0x00007f159fbe961c in QCoreApplication::notifyInternal (this=0x7fff33c048a0, receiver=0x1a502a0, event=0x7fff33c03ba0) at kernel/qcoreapplication.cpp:876
#53 0x00007f15a08360d2 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#54 QApplicationPrivate::sendMouseEvent (receiver=0x1a502a0, event=0x7fff33c03ba0, alienWidget=0x0, nativeWidget=0x1a502a0, buttonDown=0x0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3166
#55 0x00007f15a08b2e31 in QETWidget::translateMouseEvent (this=0x1a502a0, event=<optimized out>) at kernel/qapplication_x11.cpp:4550
#56 0x00007f15a08b162a in QApplication::x11ProcessEvent (this=0x7fff33c048a0, event=0x7fff33c04460) at kernel/qapplication_x11.cpp:3732
#57 0x00007f15a08da602 in x11EventSourceDispatch (s=0x15fc920, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#58 0x00007f159c884a5d in g_main_dispatch (context=0x15fbe20) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:2441
#59 g_main_context_dispatch (context=0x15fbe20) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3011
#60 0x00007f159c885258 in g_main_context_iterate (context=0x15fbe20, block=<optimized out>, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3089
#61 0x00007f159c885429 in g_main_context_iteration (context=0x15fbe20, may_block=1) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3152
#62 0x00007f159fc18bbf in QEventDispatcherGlib::processEvents (this=0x15cf4b0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#63 0x00007f15a08da28e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#64 0x00007f159fbe8402 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#65 0x00007f159fbe8657 in QEventLoop::exec (this=0x7fff33c04830, flags=...) at kernel/qeventloop.cpp:204
#66 0x00007f159fbed6e7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#67 0x0000000000411bef in main (argc=1, argv=0x7fff33c04c18) at ../../konquest/Konquest.cc:58

Possible duplicates by query: bug 289859.

Reported using DrKonqi
Comment 1 Sergiu Bivol 2012-05-05 20:15:04 UTC
Created attachment 70881 [details]
New crash information added by DrKonqi

konquest (2.1) on KDE Platform 4.8.2 (4.8.2) using Qt 4.8.1

- What I was doing when the application crashed:
Opened a new game and tried to change the production of a planet, without selecting a planet first.

-- Backtrace (Reduced):
#6  t (this=<optimized out>) at ../../konquest/dialogs/newgamedlg.cc:575
#7  operator[] (i=<optimized out>, this=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:478
#8  sector (coord=..., this=0x295c710) at ../../konquest/map/map.h:68
#9  NewGameDlg::slotNewProduction (this=<optimized out>, value=9) at ../../konquest/dialogs/newgamedlg.cc:499
[...]
#11 0x00007f32ecd88fce in QSpinBox::valueChanged (this=<optimized out>, _t1=9) at .moc/release-shared/moc_qspinbox.cpp:163
Comment 2 Albert Astals Cid 2012-07-12 17:40:26 UTC
SVN commit 1305493 by aacid:

Disable KillPercentageSB and ProductionSB if there is no selected map

Based in a patch by Michael Reeves <reeves.87@gmail.com> in svn reviewboard 7006
Related: bug 298066
FIXED-IN: 4.8.5


 M  +4 -2      newgamedlg.cc  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1305493
Comment 3 Albert Astals Cid 2012-07-12 17:41:50 UTC
SVN commit 1305494 by aacid:

backport r1305493 | aacid | 2012-07-12 19:40:19 +0200 (Thu, 12 Jul 2012) | 7 lines

Disable KillPercentageSB and ProductionSB if there is no selected map

Based in a patch by Michael Reeves <reeves.87@gmail.com> in svn reviewboard 7006
Related: bug 298066
FIXED-IN: 4.8.5


 M  +4 -2      newgamedlg.cc  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1305494
Comment 4 Albert Astals Cid 2012-07-12 17:45:45 UTC
SVN commit 1305495 by aacid:

backport r1305493 | aacid | 2012-07-12 19:40:19 +0200 (Thu, 12 Jul 2012) | 7 lines

Disable KillPercentageSB and ProductionSB if there is no selected map

Based in a patch by Michael Reeves <reeves.87@gmail.com> in svn reviewboard 7006
Related: bug 298066
FIXED-IN: 4.8.5


 M  +4 -2      newgamedlg.cc  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1305495
Comment 5 Jekyll Wu 2012-09-02 07:50:42 UTC
*** Bug 306151 has been marked as a duplicate of this bug. ***
Comment 6 Jekyll Wu 2012-09-02 07:51:02 UTC
*** Bug 306148 has been marked as a duplicate of this bug. ***
Comment 7 Alexander Schuch 2013-11-30 01:49:19 UTC
*** Bug 306032 has been marked as a duplicate of this bug. ***