Bug 350260

Summary: Knetwalk crashes at startup
Product: [Applications] knetwalk Reporter: Bernhard Jungk <fire>
Component: generalAssignee: Ashwin Rajeev <ashwin_rajeev>
Status: RESOLVED DOWNSTREAM    
Severity: crash CC: ciclista41, kde-games-bugs-null, ramsoft, ramsoft, schwarzer, xdarkmatter
Priority: NOR Keywords: drkonqi
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Bernhard Jungk 2015-07-15 20:38:33 UTC
Application: knetwalk (3.3.0)

Qt Version: 5.4.1
Operating System: Linux 3.19.0-23-generic x86_64
Distribution: Ubuntu 15.04

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

When I start knetwalk it immediately crashes without showing the application window.

The crash can be reproduced every time.

-- Backtrace:
Application: KNetWalk (knetwalk), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f9a4cdb1800 (LWP 6797))]

Thread 5 (Thread 0x7f9a4ab34700 (LWP 6798)):
#0  0x00007f9a5bfad8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f9a55df8b72 in  () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f9a55dfa64f in xcb_wait_for_event () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f9a4ca58099 in QXcbEventReader::run() (this=0x224dd70) at qxcbconnection.cpp:1105
#4  0x00007f9a5c936b0e in QThreadPrivate::start(void*) (arg=0x224dd70) at thread/qthread_unix.cpp:337
#5  0x00007f9a583df6aa in start_thread (arg=0x7f9a4ab34700) at pthread_create.c:333
#6  0x00007f9a5bfb8eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f9a41bac700 (LWP 6801)):
#0  0x00007f9a5bfad8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f9a57ec0ebc in g_main_context_iterate (priority=2147483647, n_fds=1, fds=0x7f9a3c0010c0, timeout=-1, context=0x2318ea0) at /build/buildd/glib2.0-2.44.1/./glib/gmain.c:4103
#2  0x00007f9a57ec0ebc in g_main_context_iterate (context=0x2318ea0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.44.1/./glib/gmain.c:3803
#3  0x00007f9a57ec1242 in g_main_loop_run (loop=0x2319980) at /build/buildd/glib2.0-2.44.1/./glib/gmain.c:4002
#4  0x00007f9a487e5af6 in gdbus_shared_thread_func (user_data=0x231a1d0) at /build/buildd/glib2.0-2.44.1/./gio/gdbusprivate.c:274
#5  0x00007f9a57ee7955 in g_thread_proxy (data=0x22eb4a0) at /build/buildd/glib2.0-2.44.1/./glib/gthread.c:764
#6  0x00007f9a583df6aa in start_thread (arg=0x7f9a41bac700) at pthread_create.c:333
#7  0x00007f9a5bfb8eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f9a413ab700 (LWP 6802)):
#0  0x00007f9a5bfad8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f9a57ec0ebc in g_main_context_iterate (priority=2147483647, n_fds=2, fds=0x7f9a340008c0, timeout=-1, context=0x2323460) at /build/buildd/glib2.0-2.44.1/./glib/gmain.c:4103
#2  0x00007f9a57ec0ebc in g_main_context_iterate (context=context@entry=0x2323460, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.44.1/./glib/gmain.c:3803
#3  0x00007f9a57ec0fcc in g_main_context_iteration (context=0x2323460, may_block=may_block@entry=1) at /build/buildd/glib2.0-2.44.1/./glib/gmain.c:3869
#4  0x00007f9a57ec1009 in glib_worker_main (data=<optimized out>) at /build/buildd/glib2.0-2.44.1/./glib/gmain.c:5618
#5  0x00007f9a57ee7955 in g_thread_proxy (data=0x22eb6d0) at /build/buildd/glib2.0-2.44.1/./glib/gthread.c:764
#6  0x00007f9a583df6aa in start_thread (arg=0x7f9a413ab700) at pthread_create.c:333
#7  0x00007f9a5bfb8eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f9a32ffd700 (LWP 6806)):
#0  0x00007f9a5bfad8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f9a57ec0ebc in g_main_context_iterate (priority=2147483647, n_fds=1, fds=0x7f9a28002e70, timeout=-1, context=0x7f9a28000990) at /build/buildd/glib2.0-2.44.1/./glib/gmain.c:4103
#2  0x00007f9a57ec0ebc in g_main_context_iterate (context=context@entry=0x7f9a28000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.44.1/./glib/gmain.c:3803
#3  0x00007f9a57ec0fcc in g_main_context_iteration (context=0x7f9a28000990, may_block=1) at /build/buildd/glib2.0-2.44.1/./glib/gmain.c:3869
#4  0x00007f9a5cbcdc6c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f9a280008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#5  0x00007f9a5cb723e2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f9a32ffcda0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#6  0x00007f9a5c931b44 in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:503
#7  0x00007f9a5907df65 in  () at /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#8  0x00007f9a5c936b0e in QThreadPrivate::start(void*) (arg=0x255bf40) at thread/qthread_unix.cpp:337
#9  0x00007f9a583df6aa in start_thread (arg=0x7f9a32ffd700) at pthread_create.c:333
#10 0x00007f9a5bfb8eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f9a4cdb1800 (LWP 6797)):
[KCrash Handler]
#6  0x00007f9a5cbaf107 in QObject::setProperty(char const*, QVariant const&) (this=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:135
#7  0x00007f9a5cbaf107 in QObject::setProperty(char const*, QVariant const&) (p=...) at ../../include/QtCore/../../src/corelib/global/qglobal.h:961
#8  0x00007f9a5cbaf107 in QObject::setProperty(char const*, QVariant const&) (this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:110
#9  0x00007f9a5cbaf107 in QObject::setProperty(char const*, QVariant const&) (this=0x0, name=0x41c75f "rotateDuration", value=...) at kernel/qobject.cpp:3824
#10 0x000000000040d403 in GameView::setRotateDuration() ()
#11 0x000000000040d7d9 in GameView::GameView(QWidget*) ()
#12 0x00000000004137a3 in MainWindow::MainWindow(QWidget*) ()
#13 0x000000000040cae8 in main ()

Reported using DrKonqi
Comment 1 dmatt 2015-10-11 11:47:29 UTC
i fails to start in Kubuntu 15.04 and in 15.10 Beta 2 as well.

Running from command line hints on problem (output is copied form Kubuntu 15.10):
 
$ knetwalk
file:///usr/share/knetwalk/qml/main.qml:32:5: Type CanvasItem unavailable 
         CanvasItem { 
         ^
file:///usr/share/knetwalk/qml/CanvasItem.qml:19:1: module "org.kde.games.core" is not installed 
     import org.kde.games.core 0.1 as KgCore 
     ^
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = knetwalk path = /usr/games pid = 2138
KCrash: Arguments: /usr/games/knetwalk 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0
pa_write() failed while trying to wake up the mainloop: Bad file descriptor
pa_write() failed while trying to wake up the mainloop: Bad file descriptor
pa_write() failed while trying to wake up the mainloop: Bad file descriptor
AL lib: (EE) ALCpulsePlayback_contextStateCallback: Received context failure!
AL lib: (EE) ALCpulsePlayback_streamStateCallback: Received stream failure!
pa_write() failed while trying to wake up the mainloop: Bad file descriptor

[1]+  Stopped                 knetwalk
Comment 2 ramsoft 2015-12-13 02:06:27 UTC
I can confirm this bug also in OpenSUSE Leap 42.1; it has appeared after a recent upgrade to Plasma 5.5 (knetwalk worked perfectly with Plasma 5.4).
Now, sometimes it crashes immediately; other times it shows a black window.
Comment 3 Bruce 2016-04-02 01:20:42 UTC
I had this same problem, but found the solution in dmatt's posted output:

file:///usr/share/knetwalk/qml/CanvasItem.qml:19:1: module "org.kde.games.core" is not installed 
     import org.kde.games.core 0.1 as KgCore

Since the output indicated that "org.kde.games.core" was not installed, I tried: 

I put  "org.kde.games.core" into the search buffer in Synaptic Package Manager and one item came out:

"kde-games-core"

I installed it and Knetwalk now works fine.

Recommend this be marked as solved or whatever it needs to be marked when it is not actually a bug.
Comment 4 Frederik Schwarzer 2016-04-02 08:53:37 UTC
Can someone else please confirm that the problem can be solved that way on Opensuse as well?
Comment 5 ralph 2016-04-04 02:09:59 UTC
On openSUSE Leap 42.1 this problem has (magically) disappeared about two months ago, after a "KDE Applications" update.
Comment 6 Frederik Schwarzer 2016-04-04 09:38:52 UTC
Ok, thank you for the report and for giving the hints on how to fix it. The kdegames team is very short on staff and many games are basically unmaintained so things tend to fall off the table once in a while.

This seems like a packaging issue to me, so closing it now.