Bug 229594

Summary: Pause the game when level is starting will lead to a crash
Product: [Applications] kapman Reporter: t3ddy <t3ddy1988>
Component: generalAssignee: Thomas Gallinari <tg8187>
Status: RESOLVED DUPLICATE    
Severity: crash CC: johannesobermayr, kde-games-bugs, t3ddy1988
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi

Description t3ddy 2010-03-05 18:46:15 UTC
Version:            (using KDE 4.4.1)
OS:                Linux
Installed from:    Archlinux Packages

Start kapman and pause it when there's still the writing "Level 1", then start playing, it will surely crash, not immediately, but it will crash.

Another thing not related to the bug: focus to the difficulty of the game after having finished one is annoying, I want to play another one not choosing the difficulty level :)
Comment 1 Johannes Obermayr 2010-03-05 23:13:24 UTC
> Start kapman and pause it when there's still the writing "Level 1", then start
> playing, it will surely crash, not immediately, but it will crash.

I cannot reproduce it on openSUSE 11.2 with KDE 4.4.1.
Comment 2 t3ddy 2010-03-06 10:50:01 UTC
I've installed debug package for kapman, but the informations were still completely unuseful.
So I run kapman in gdb:
Starting program: /usr/bin/kapman 
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x0805fc38 in KapmanItem::manageCollision (this=0x8289278)                                   
    at /home/phil/kdemod/core/kdegames/src/kdegames-4.4.1/kapman/kapmanitem.cpp:99           
99      /home/phil/kdemod/core/kdegames/src/kdegames-4.4.1/kapman/kapmanitem.cpp: No such file or directory.                                                                              
        in /home/phil/kdemod/core/kdegames/src/kdegames-4.4.1/kapman/kapmanitem.cpp

This is all I have, no more informations. 
I can try to make a video if you want.
Comment 3 Johannes Obermayr 2010-03-06 19:01:31 UTC
If you cannot send your backtrace via drkonqi please send/attach it manually.

So we can tell you which additional -debug packages must be installed for a useful backtrace.
Comment 4 t3ddy 2010-03-06 20:47:19 UTC
Here is all I get:
Application: Kapman (kapman), signal: Segmentation fault
#0  0xb77fc424 in __kernel_vsyscall ()
#1  0xb6156780 in __nanosleep_nocancel () from /lib/libc.so.6
#2  0xb6156591 in sleep () from /lib/libc.so.6
#3  0xb7678ba2 in ?? () from /usr/lib/libkdeui.so.5
#4  0x00000001 in ?? ()
#5  0x00000000 in ?? ()

It says the information are useless
Comment 5 Johannes Obermayr 2010-03-06 21:25:28 UTC
I explain how you have to go on:

?? () from /usr/lib/libkdeui.so.5

https://www.archlinux.de/?page=Packages

Choose Architektur " "
Schlüsselwörter: "libkdeui.so.5" and choose "Datei"

You should get now a list with packages which contain "libkdeui.so.5" -> It is package "kdelibs".
So you have to install debug package for "kdelibs".

Do this until all "()" are "filled".

In most cases debug package for glibc is not really neccessary but you can install it, too.

Then you get an useful backtrace ...
Comment 6 t3ddy 2010-03-06 22:33:19 UTC
Application: Kapman (kapman), signal: Segmentation fault
[KCrash Handler]
#6  0x0805fc38 in KapmanItem::manageCollision (this=0x893f368) at /home/phil/kdemod/core/kdegames/src/kdegames-4.4.1/kapman/kapmanitem.cpp:99
#7  0x08054743 in KapmanItem::qt_metacall (this=0x893f368, _c=QMetaObject::InvokeMetaMethod, _id=19, _a=0xbfabdb7c) at /home/phil/kdemod/core/kdegames/src/kdegames-4.4.1/kapman/moc_kapmanitem.cpp:88
#8  0xb6fe006a in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#9  0xb6fee65f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#10 0x080537b9 in Kapman::gameUpdated (this=0x87fef10) at /home/phil/kdemod/core/kdegames/src/kdegames-4.4.1/kapman/moc_kapman.cpp:104
#11 0x0805449b in Game::qt_metacall (this=0x87fb5f8, _c=QMetaObject::InvokeMetaMethod, _id=17, _a=0xbfabdcac) at /home/phil/kdemod/core/kdegames/src/kdegames-4.4.1/kapman/moc_game.cpp:119
#12 0xb6fe006a in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#13 0xb6fee65f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#14 0xb703fd47 in QTimer::timeout() () from /usr/lib/libQtCore.so.4
#15 0xb6ff677e in QTimer::timerEvent(QTimerEvent*) () from /usr/lib/libQtCore.so.4
#16 0xb6feb514 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#17 0xb64e2e4c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#18 0xb64e9a5e in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#19 0xb76ae0ca in KApplication::notify (this=0xbfabe544, receiver=0x8832838, event=0xbfabe1e0) at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.1/kdeui/kernel/kapplication.cpp:302
#20 0xb6fdae6b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#21 0xb7009de6 in ?? () from /usr/lib/libQtCore.so.4
#22 0xb7006af7 in ?? () from /usr/lib/libQtCore.so.4
#23 0xb5a35378 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#24 0xb5a38bf0 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#25 0xb5a38d23 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#26 0xb70067b5 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#27 0xb659f5c5 in ?? () from /usr/lib/libQtGui.so.4
#28 0xb6fd94a9 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#29 0xb6fd98fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#30 0xb6fdda6f in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#31 0xb64e2ee7 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#32 0x08064290 in main (argc=1, argv=0xbfabe6b4) at /home/phil/kdemod/core/kdegames/src/kdegames-4.4.1/kapman/main.cpp:47
Comment 7 Johannes Obermayr 2010-03-06 23:06:17 UTC
Now you need debug packages for "qt" and "glib2" and all should be "filled". But AFAIK the first needs on all distributions ~200 MiB installed (~70 MiB to download).
Comment 8 Johannes Obermayr 2010-03-06 23:17:04 UTC
Btw. attach the backtrace with drkonqi. It searches for possible duplicates and tells them.
Comment 9 t3ddy 2010-03-07 12:30:39 UTC
Created attachment 41400 [details]
New crash information added by DrKonqi

This is the only bugreport drkonqi has found, I hope to have done things correctly
Comment 10 Johannes Obermayr 2010-03-08 19:24:04 UTC
Created attachment 41451 [details]
New crash information added by DrKonqi

I can reproduce it now. Backtrace with some more information ...
Comment 11 Christoph Feck 2010-04-14 01:21:13 UTC

*** This bug has been marked as a duplicate of bug 184300 ***