Bug 53586 - crashes when drag-and-drop to move piece is finished
Summary: crashes when drag-and-drop to move piece is finished
Status: RESOLVED FIXED
Alias: None
Product: kbackgammon
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Jens Hoefkens
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-29 15:25 UTC by hughjonesd
Modified: 2003-02-15 21:03 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hughjonesd 2003-01-29 15:25:10 UTC
Version:            (using KDE KDE 3.1)
Installed from:    SuSE RPMs
OS:          Linux

Here's the backtrace:

(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...[New Thread 1024 (LWP 5442)]
(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
0x41021099 in wait4 () from /lib/libc.so.6
#0  0x41021099 in wait4 () from /lib/libc.so.6
#1  0x4109bbd8 in __DTOR_END__ () from /lib/libc.so.6
#2  0x40ed5072 in waitpid () from /lib/libpthread.so.0
#3  0x406874bb in KCrash::defaultCrashHandler ()
   from /opt/kde3/lib/libkdecore.so.4
#4  0x40ed2a74 in pthread_sighandler () from /lib/libpthread.so.0
#5  <signal handler called>
#6  0x08063ed2 in KDialog::marginHint ()
#7  0x0812cec0 in ?? ()
#8  0x0805ff85 in KDialog::marginHint ()
#9  0x409d5c15 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#10 0x08077b04 in KBgEngine::staticMetaObject ()
#11 0x08072f74 in KBgEngineOffline::staticMetaObject ()
#12 0x08070f0b in KBgEngineOffline::staticMetaObject ()
#13 0x409d5b74 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#14 0x08064210 in KDialog::marginHint ()
#15 0x08067bc1 in KDialog::marginHint ()
#16 0x08069ff1 in KDialog::marginHint ()
#17 0x0806a115 in KDialog::marginHint ()
#18 0x409ffa66 in QWidget::event () from /usr/lib/libqt-mt.so.3
#19 0x4098a8da in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#20 0x4098a14e in QApplication::notify () from /usr/lib/libqt-mt.so.3
#21 0x40625e6b in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#22 0x40938a7b in QETWidget::translateMouseEvent () from /usr/lib/libqt-mt.so.3
#23 0x40936cd9 in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3
#24 0x40946d3a in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#25 0x4099ac80 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#26 0x4099abc7 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#27 0x4098aa56 in QApplication::exec () from /usr/lib/libqt-mt.so.3
#28 0x0805fd6c in KDialog::marginHint ()
#29 0x40f969ed in __libc_start_main () from /lib/libc.so.6
Comment 1 George Staikos 2003-02-13 04:48:31 UTC
Subject: KDE_3_1_BRANCH: kdegames/kbackgammon

CVS commit by staikos: 

arghgh

Unbreak kbackgammon.  Please be careful when doing "cleanups".  Make sure that
nothing actually breaks.

CCMAIL: 53586-done@bugs.kde.org


  M +9 -1      engines/nextgen/kbgng.cpp   1.4.4.1
  M +2 -2      kbg.cpp   1.24.2.2


--- kdegames/kbackgammon/kbg.cpp  #1.24.2.1:1.24.2.2
@@ -122,5 +122,5 @@ KBg::KBg(QWidget *parent, const char *na
 
         KStdGameAction::roll(this, SLOT(roll()), actionCollection())->setEnabled(false);
-        KStdGameAction::endTurn(this, SLOT(done()), actionCollection())->setEnabled(false);
+        KStdGameAction::endTurn(this, SLOT(done()), actionCollection(), "move_endturn")->setEnabled(false);
         (new KAction(i18n("Double Cube"), QIconSet(kapp->iconLoader()->loadIcon
                                                    (PROG_NAME "-double.xpm", KIcon::Toolbar)),

--- kdegames/kbackgammon/engines/nextgen/kbgng.cpp  #1.4:1.4.4.1
@@ -215,4 +215,7 @@ void KBgEngineNg::slotPlayerJoinedGame(K
 void KBgEngineNg::slotCreatePlayer(KPlayer *&p, int rtti, int io, bool v, KGame *g)
 {
+    Q_UNUSED(rtti)
+    Q_UNUSED(g)
+    Q_UNUSED(io)
     emit infoText(i18n("creating player. virtual=%1").arg(v));
     p = createPlayer(1);
@@ -319,4 +322,5 @@ void KBgEngineNg::redo()
 void KBgEngineNg::handleMove(QString *s)
 {
+    Q_UNUSED(s)
     // TODO
 }
@@ -335,4 +339,5 @@ void KBgEngineNg::roll()
 void KBgEngineNg::rollDice(const int w)
 {
+    Q_UNUSED(w)
     // empty
 }
@@ -527,4 +532,5 @@ void KBgEngineNg::slotPropertyChanged(KG
 void KBgEngineNg::slotPropertyChanged(KGamePropertyBase *p, KGame *me)
 {
+    Q_UNUSED(me)
     switch (p->id()) {
 
@@ -561,4 +567,6 @@ void KBgEngineNg::changeName()
 void KBgEngineNg::slotNetworkData(int msgid, const QByteArray &msg, Q_UINT32 r, Q_UINT32 s)
 {
+    Q_UNUSED(r);
+    Q_UNUSED(s);
     switch (msgid) {
 


Comment 2 Jens Hoefkens 2003-02-13 08:24:42 UTC
Subject: Re:  crashes when drag-and-drop to move piece is finished

Thanks mate!

Btw, is the HEAD branch open again for development?



Cheers,
Jens 

On Thursday 13 February 2003 04:48 am, you wrote:
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
>
> http://bugs.kde.org/show_bug.cgi?id=53586
> staikos@kde.org changed:
>
>            What    |Removed                     |Added
> ---------------------------------------------------------------------------
>- Status|UNCONFIRMED                 |RESOLVED
>          Resolution|                            |FIXED
>
>
>
> ------- Additional Comments From staikos@kde.org  2003-02-13 04:48 -------
> Subject: KDE_3_1_BRANCH: kdegames/kbackgammon
>
> CVS commit by staikos:
>
> arghgh
>
> Unbreak kbackgammon.  Please be careful when doing "cleanups".  Make sure
> that nothing actually breaks.
>
> CCMAIL: 53586-done@bugs.kde.org
>
>
>   M +9 -1      engines/nextgen/kbgng.cpp   1.4.4.1
>   M +2 -2      kbg.cpp   1.24.2.2
>
>
> --- kdegames/kbackgammon/kbg.cpp  #1.24.2.1:1.24.2.2
> @@ -122,5 +122,5 @@ KBg::KBg(QWidget *parent, const char *na
>
>          KStdGameAction::roll(this, SLOT(roll()),
> actionCollection())->setEnabled(false); -       
> KStdGameAction::endTurn(this, SLOT(done()),
> actionCollection())->setEnabled(false); +       
> KStdGameAction::endTurn(this, SLOT(done()), actionCollection(),
> "move_endturn")->setEnabled(false); (new KAction(i18n("Double Cube"),
> QIconSet(kapp->iconLoader()->loadIcon (PROG_NAME "-double.xpm",
> KIcon::Toolbar)),
>
> --- kdegames/kbackgammon/engines/nextgen/kbgng.cpp  #1.4:1.4.4.1
> @@ -215,4 +215,7 @@ void KBgEngineNg::slotPlayerJoinedGame(K
>  void KBgEngineNg::slotCreatePlayer(KPlayer *&p, int rtti, int io, bool v,
> KGame *g) {
> +    Q_UNUSED(rtti)
> +    Q_UNUSED(g)
> +    Q_UNUSED(io)
>      emit infoText(i18n("creating player. virtual=%1").arg(v));
>      p = createPlayer(1);
> @@ -319,4 +322,5 @@ void KBgEngineNg::redo()
>  void KBgEngineNg::handleMove(QString *s)
>  {
> +    Q_UNUSED(s)
>      // TODO
>  }
> @@ -335,4 +339,5 @@ void KBgEngineNg::roll()
>  void KBgEngineNg::rollDice(const int w)
>  {
> +    Q_UNUSED(w)
>      // empty
>  }
> @@ -527,4 +532,5 @@ void KBgEngineNg::slotPropertyChanged(KG
>  void KBgEngineNg::slotPropertyChanged(KGamePropertyBase *p, KGame *me)
>  {
> +    Q_UNUSED(me)
>      switch (p->id()) {
>
> @@ -561,4 +567,6 @@ void KBgEngineNg::changeName()
>  void KBgEngineNg::slotNetworkData(int msgid, const QByteArray &msg,
> Q_UINT32 r, Q_UINT32 s) {
> +    Q_UNUSED(r);
> +    Q_UNUSED(s);
>      switch (msgid) {

Comment 3 Hadacek Nicolas 2003-02-15 21:03:13 UTC
just to be sure: you're not talking of my "cleanups" (ie more use of standard 
actions) in head ? your fix seems to be for the 3.1 branch only, right ? the 
problem should not exist in head ...

see you,
Nicolas Hadacek
Comment 4 Jens Hoefkens 2003-02-16 11:52:44 UTC
Subject: Re:  crashes when drag-and-drop to move piece is finished

I don't know if it was you who did the cleanup and when, but the introduction 
of the standard actions did indeed cause the problem: whoever did it missed 
one reference to one of the old actions.

But regardless, I am glad somebody did the original cleanup (thanks Nicolaus) 
and somebody did the fix (thanks George). From now on I'll take better care 
of the code (I am now settled into a new job and will have more time again).


Jens

On Saturday 15 February 2003 09:03 pm, you wrote:
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
>
> http://bugs.kde.org/show_bug.cgi?id=53586
>
>
>
>
> ------- Additional Comments From hadacek@kde.org  2003-02-15 21:03 -------
> just to be sure: you're not talking of my "cleanups" (ie more use of
> standard actions) in head ? your fix seems to be for the 3.1 branch only,
> right ? the problem should not exist in head ...
>
> see you,
> Nicolas Hadacek