Bug 498912 - Kodaskanna stuck when launching from shortcuts, while the direct command-line launch works normally.
Summary: Kodaskanna stuck when launching from shortcuts, while the direct command-line...
Status: RESOLVED WORKSFORME
Alias: None
Product: kodaskanna
Classification: Applications
Component: general (other bugs)
Version First Reported In: 0.2.2
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Friedrich W. H. Kossebau
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2025-01-20 03:22 UTC by rnotlnglgq
Modified: 2025-01-22 13:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rnotlnglgq 2025-01-20 03:22:21 UTC
Application: kodaskanna (0.2.2)
 (Compiled from sources)
ApplicationNotResponding [ANR]: false
Qt Version: 6.8.1
Frameworks Version: 6.7.0
Operating System: Linux 6.6.67-gentoo-dist x86_64
Windowing System: Wayland
Distribution: "Gentoo Linux"
DrKonqi: 6.2.4 [KCrashBackend]

-- Information about the crash:
I just upgraded from an old version which is for QT5. Now I'm in QT6.
The binary was built from newest source from Github. (cmake . && make -j16 && sudo make install)

The crash can be reproduced every time.

-- Backtrace:
Application: Kodaskanna (kodaskanna), signal: Aborted

[KCrash Handler]
#4  0x00007f104b92bfe7 in syscall () at /usr/lib64/libc.so.6
#5  0x00007f104bfd39e5 in QBasicMutex::lockInternal() () at /usr/lib64/libQt6Core.so.6
#6  0x00007f104c731e3c in ??? () at /usr/lib64/libQt6Gui.so.6
#7  0x00007f104c732fb0 in ??? () at /usr/lib64/libQt6Gui.so.6
#8  0x00007f104c73368c in QImageReader::canRead() const () at /usr/lib64/libQt6Gui.so.6
#9  0x00007f104bca2b1f in ??? () at /usr/lib64/libKF6IconThemes.so.6
#10 0x00007f104bca3844 in KIconLoader::loadScaledIcon(QString const&, KIconLoader::Group, double, QSize const&, int, QList<QString> const&, QString*, bool, std::optional<KIconColors> const&) const () at /usr/lib64/libKF6IconThemes.so.6
#11 0x00007f104bc98360 in KIconEngine::createPixmap(QSize const&, double, QIcon::Mode, QIcon::State) () at /usr/lib64/libKF6IconThemes.so.6
#12 0x00007f104bc98abe in KIconEngine::scaledPixmap(QSize const&, QIcon::Mode, QIcon::State, double) () at /usr/lib64/libKF6IconThemes.so.6
#13 0x00007f104c702f11 in ??? () at /usr/lib64/libQt6Gui.so.6
#14 0x00007f104c6fa67f in QIcon::pixmap(QSize const&, double, QIcon::Mode, QIcon::State) const () at /usr/lib64/libQt6Gui.so.6
#15 0x00007f103c0f32f6 in ??? () at /usr/lib64/qt6/plugins/styles/breeze6.so
#16 0x00007f103c116f96 in ??? () at /usr/lib64/qt6/plugins/styles/breeze6.so
#17 0x00007f103c114daa in ??? () at /usr/lib64/qt6/plugins/styles/breeze6.so
#18 0x00007f103c1102d9 in ??? () at /usr/lib64/qt6/plugins/styles/breeze6.so
#19 0x00007f103c11583a in ??? () at /usr/lib64/qt6/plugins/styles/breeze6.so
#20 0x00007f104d0600cc in QToolButton::paintEvent(QPaintEvent*) () at /usr/lib64/libQt6Widgets.so.6
#21 0x00007f104d31091f in QWidget::event(QEvent*) () at /usr/lib64/libQt6Widgets.so.6
#22 0x00007f104d301001 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt6Widgets.so.6
#23 0x00007f104c0f7c38 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/libQt6Core.so.6
#24 0x00007f104d2dec75 in QWidgetPrivate::sendPaintEvent(QRegion const&) () at /usr/lib64/libQt6Widgets.so.6
#25 0x00007f104d2e5cc1 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib64/libQt6Widgets.so.6
#26 0x00007f104d2e6ff1 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib64/libQt6Widgets.so.6
#27 0x00007f104d2e6e26 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib64/libQt6Widgets.so.6
#28 0x00007f104d2e6e26 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib64/libQt6Widgets.so.6
#29 0x00007f104d2e6e26 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib64/libQt6Widgets.so.6
#30 0x00007f104d2e58e4 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib64/libQt6Widgets.so.6
#31 0x00007f104d2e6ff1 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib64/libQt6Widgets.so.6
#32 0x00007f104d2e6e26 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib64/libQt6Widgets.so.6
#33 0x00007f104d2e6e26 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib64/libQt6Widgets.so.6
#34 0x00007f104d2e58e4 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib64/libQt6Widgets.so.6
#35 0x00007f104d2e7cb5 in QWidgetRepaintManager::paintAndFlush() () at /usr/lib64/libQt6Widgets.so.6
#36 0x00007f104d2e8506 in QWidgetRepaintManager::sync(QWidget*, QRegion const&) () at /usr/lib64/libQt6Widgets.so.6
#37 0x00007f104d31212e in ??? () at /usr/lib64/libQt6Widgets.so.6
#38 0x00007f104d301001 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt6Widgets.so.6
#39 0x00007f104c0f7c38 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/libQt6Core.so.6
#40 0x00007f104c776d8b in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) () at /usr/lib64/libQt6Gui.so.6
#41 0x00007f104c7ce8bb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt6Gui.so.6
#42 0x00007f104cba1860 in ??? () at /usr/lib64/libQt6Gui.so.6
#43 0x00007f104af10572 in ??? () at /usr/lib64/libglib-2.0.so.0
#44 0x00007f104af13777 in ??? () at /usr/lib64/libglib-2.0.so.0
#45 0x00007f104af13d9c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#46 0x00007f104bec4aec in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt6Core.so.6
#47 0x00007f104c11e55b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt6Core.so.6
#48 0x00007f104c11e853 in QCoreApplication::exec() () at /usr/lib64/libQt6Core.so.6
#49 0x000055b66ddbc8a2 in main (argc=1, argv=0x7ffed8e96d18) at /home/share/Program/Qt/kodaskanna/src/app/main.cpp:74
[Inferior 1 (process 9005) detached]

Reported using DrKonqi
Comment 1 Friedrich W. H. Kossebau 2025-01-21 18:47:13 UTC
Thanks for the report.

Though, looking at the backtrace and given things only fail when started via the system ("launching from shortcuts") this seems not an issue of kodaskanna, but an issue with your local installation:
* the backtrace shows the breeze style fails to load some icon
* kodaskanna is said to launch fine from the commandline env, so seems the system env within which the "shortcuts" launch has a different setup?

Please get in contact with gentoo experts (do not know one myself) on how to resolve the problem you encounter here. You might want to try also other qt-based apps to get a pattern to find the cause.
Comment 2 rnotlnglgq 2025-01-22 13:37:10 UTC
(In reply to Friedrich W. H. Kossebau from comment #1)
> Thanks for the report.
> 
> Though, looking at the backtrace and given things only fail when started via
> the system ("launching from shortcuts") this seems not an issue of
> kodaskanna, but an issue with your local installation:
> * the backtrace shows the breeze style fails to load some icon
> * kodaskanna is said to launch fine from the commandline env, so seems the
> system env within which the "shortcuts" launch has a different setup?
> 
> Please get in contact with gentoo experts (do not know one myself) on how to
> resolve the problem you encounter here. You might want to try also other
> qt-based apps to get a pattern to find the cause.

I've played with desktop file, `env` and KIO source code for an hour, trying to figure it out. And finally gave it up.
I'm temporarily using `Terminal=true` in the desktop file as a workaround. (Or alternatively use `Exec=konsole -e kodaskanna`, while `bash -c` does not work.)
Comment 3 rnotlnglgq 2025-01-22 13:41:57 UTC
BTW, kodaskanna is the only application that I have this issue on. Though I can't tell how many QT applications are there. I have a QML plasmoid written by me, and a Wolfram Mathematica which is distribute with a specific version of QT libraries(i.e. it does not use my system's).