Bug 461240

Summary: kbreakout crashes on startup
Product: [Applications] kbreakout Reporter: Christopher Tanner <christann404>
Component: generalAssignee: Viranch Mehta <viranch.mehta>
Status: RESOLVED DOWNSTREAM    
Severity: crash CC: aacid, kde-games-bugs-null
Priority: NOR Keywords: drkonqi
Version First Reported In: 22.08.2   
Target Milestone: ---   
Platform: Mandriva RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Christopher Tanner 2022-10-31 11:45:31 UTC
Application: kbreakout (22.08.2)

Qt Version: 5.15.7
Frameworks Version: 5.99.0
Operating System: Linux 6.0.5-desktop-1omv4090 x86_64
Windowing System: X11
Distribution: "OpenMandriva Lx 4.90"
DrKonqi: 5.26.2 [KCrashBackend]

-- Information about the crash:
The game kbreakout crashes whenever I try to start it up.

The crash can be reproduced every time.

-- Backtrace:
Application: KBreakOut (kbreakout), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f1d40d066b8 in QObject::property(char const*) const () from /lib64/libQt5Core.so.5
#5  0x000055f698356186 in CanvasWidget::updateCursor() ()
#6  0x000055f698356126 in CanvasWidget::event(QEvent*) ()
#7  0x00007f1d418bb090 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#8  0x00007f1d418b8d46 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#9  0x00007f1d40cc4ef9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#10 0x00007f1d40cc5f7c in QCoreApplication::sendEvent(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#11 0x00007f1d418be0db in QApplicationPrivate::dispatchEnterLeave(QWidget*, QWidget*, QPointF const&) () from /lib64/libQt5Widgets.so.5
#12 0x00007f1d41924c0a in QWidgetWindow::handleEnterLeaveEvent(QEvent*) () from /lib64/libQt5Widgets.so.5
#13 0x00007f1d4192424d in QWidgetWindow::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#14 0x00007f1d418bb090 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#15 0x00007f1d418b8d46 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#16 0x00007f1d40cc4ef9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#17 0x00007f1d40cc5fcc in QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#18 0x00007f1d41017f02 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /lib64/libQt5Gui.so.5
#19 0x00007f1d40ff1bda in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5
#20 0x00007f1d3817d98c in xcbSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5XcbQpa.so.5
#21 0x00007f1d3eacbfa3 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#22 0x00007f1d3eacc362 in g_main_context_iterate () from /lib64/libglib-2.0.so.0
#23 0x00007f1d3eacc42f in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#24 0x00007f1d40d31e0f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#25 0x00007f1d3817d8e6 in QXcbGlibEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5XcbQpa.so.5
#26 0x00007f1d40cbcde7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#27 0x00007f1d40cc5301 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#28 0x00007f1d410174e6 in QGuiApplication::exec() () from /lib64/libQt5Gui.so.5
#29 0x00007f1d418bf7b3 in QApplication::exec() () from /lib64/libQt5Widgets.so.5
#30 0x000055f698352cca in main ()
[Inferior 1 (process 63375) detached]

Reported using DrKonqi
Comment 1 Albert Astals Cid 2022-10-31 17:10:47 UTC
Does running it from the command line give you any output?

Are you on Plasma or any other desktop Environment?

Can you run (install valgrind first if needed)
 valgrind kbreakout
on the command line and attach its output?
Comment 2 Christopher Tanner 2022-10-31 18:35:40 UTC
When run from a command prompt I get: 
kbreakout
Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
file:///usr/share/kbreakout/qml/main.qml:8:1: module "org.kde.games.core" is not installed 
     import org.kde.games.core 0.1 as KgCore 
     ^
QObject::connect: Cannot connect (nullptr)::levelComplete() to CanvasWidget::levelComplete()
QObject::connect: Cannot connect (nullptr)::gameEnded(int,int,int) to CanvasWidget::gameEnded(int,int,int)
QObject::connect: Cannot connect (nullptr)::mousePressed() to CanvasWidget::mousePressed()
QObject::connect: Cannot connect (nullptr)::ballMovingChanged() to CanvasWidget::updateCursor()
23 -- exe=/usr/bin/kbreakout
13 -- platform=xcb
11 -- display=:0
18 -- appname=kbreakout
17 -- apppath=/usr/bin
10 -- signal=11
10 -- pid=71234
19 -- appversion=22.08.2
22 -- programname=KBreakOut
31 -- bugaddress=submit@bugs.kde.org
12 -- startupid=0
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kbreakout path = /usr/bin pid = 71234
KCrash: Arguments: /usr/bin/kbreakout 
KCrash: Attempting to start /usr/lib64/libexec/drkonqi

[1]+  Stopped                 kbreakout
Comment 3 Albert Astals Cid 2022-11-01 09:52:34 UTC
Seeing

file:///usr/share/kbreakout/qml/main.qml:8:1: module "org.kde.games.core" is not installed 

means you have to complain to your distribution, their package dependencies are broken.