Bug 501775 - Konsole crashes when saving file in Firefox via the file picker portal
Summary: Konsole crashes when saving file in Firefox via the file picker portal
Status: RESOLVED DUPLICATE of bug 501688
Alias: None
Product: konsole
Classification: Applications
Component: general (other bugs)
Version First Reported In: 24.12.3
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-20 04:10 UTC by Andrew Gunnerson
Modified: 2025-03-21 00:26 UTC (History)
1 user (show)

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 Andrew Gunnerson 2025-03-20 04:10:33 UTC
SUMMARY

This is a bit of an odd one. When I save a file in Firefox with the KDE file picker via XDG portals, Konsole will sometimes crash. The issue is not always reproducible, but I've encountered it 5 times so far. I've attached a backtrace with debug symbols below.

This only started happening very recently. Based on the timestamps in coredumpctl, it very likely started happening after Fedora 41 upgraded the frameworks from 6.11.0 to 6.12.0. I do see kconfig in the backtrace, but I wasn't sure if I should report the issue for konsole or kconfig since konsole is the only KDE application that's been crashing on my system.

STEPS TO REPRODUCE

1. If Firefox isn't already using XDG portals, set widget.use-xdg-desktop-portal.file-picker=1 in about:config
2. Go to https://kde.org
3. Right click any image and save it
4. Hit the save button in the KDE file picker dialog

OBSERVED RESULT

Konsole sometimes crashes (though Firefox is fine and the file saves successfully)

EXPECTED RESULT

Konsole should not crash

SOFTWARE/OS VERSIONS

Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.13.7-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × Intel® Core™ i9-9900KS CPU @ 4.00GHz
Memory: 94.2 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4090

ADDITIONAL INFORMATION

#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=11, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007fa641a7fbc3 in __pthread_kill_internal (threadid=<optimized out>, signo=11) at pthread_kill.c:78
#2  0x00007fa641a26f9e in __GI_raise (sig=11) at ../sysdeps/posix/raise.c:26
#3  0x00007fa643b8637e in KCrash::defaultCrashHandler (sig=11) at /usr/src/debug/kf6-kcrash-6.12.0-1.fc41.x86_64/src/kcrash.cpp:605
#4  0x00007fa641a27050 in <signal handler called> () at /lib64/libc.so.6
#5  0x00007fa6432860e8 in QWidget::layout (this=this@entry=0x7fa62404b9d0) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/widgets/kernel/qwidget.h:101
#6  0x00007fa6434040e6 in QMainWindow::menuBar (this=this@entry=0x7fa62404b9d0) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/widgets/widgets/qmainwindow.cpp:465
#7  0x00007fa60d7ca071 in Breeze::ToolsAreaManager::configUpdated (this=0x55d7844d0150) at /usr/src/debug/plasma-breeze-6.3.3-1.fc41.x86_64/kstyle/breezetoolsareamanager.cpp:144
#8  0x00007fa64215a26e in QtPrivate::QSlotObjectBase::call (this=0x55d7844d0230, r=<optimized out>, a=0x7ffce78711e0) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/kernel/qobjectdefs_impl.h:486
#9  doActivate<false> (sender=0x55d78449a2a0, signal_index=3, argv=0x7ffce78711e0) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/kernel/qobject.cpp:4115
#10 0x00007fa642150867 in QMetaObject::activate (sender=sender@entry=0x55d78449a2a0, m=m@entry=0x7fa643c0a920 <KConfigWatcher::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffce78711e0)
    at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/kernel/qobject.cpp:4175
#11 0x00007fa643bcf3ed in KConfigWatcher::configChanged (this=this@entry=0x55d78449a2a0, _t1=..., _t2=<optimized out>) at /usr/src/debug/kf6-kconfig-6.12.0-1.fc41.x86_64/redhat-linux-build/src/core/KF6ConfigCore_autogen/include/moc_kconfigwatcher.cpp:159
#12 0x00007fa643bd7d30 in KConfigWatcher::onConfigChangeNotification (this=0x55d78449a2a0, changes=<optimized out>) at /usr/src/debug/kf6-kconfig-6.12.0-1.fc41.x86_64/src/core/kconfigwatcher.cpp:114
#13 KConfigWatcher::qt_static_metacall (_o=_o@entry=0x55d78449a2a0, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=1, _a=_a@entry=0x7ffce7871448)
    at /usr/src/debug/kf6-kconfig-6.12.0-1.fc41.x86_64/redhat-linux-build/src/core/KF6ConfigCore_autogen/include/moc_kconfigwatcher.cpp:108
#14 0x00007fa643bd7f32 in KConfigWatcher::qt_metacall (this=0x55d78449a2a0, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7ffce7871448) at /usr/src/debug/kf6-kconfig-6.12.0-1.fc41.x86_64/redhat-linux-build/src/core/KF6ConfigCore_autogen/include/moc_kconfigwatcher.cpp:144
#15 0x00007fa640d5e2d7 in QDBusConnectionPrivate::deliverCall (this=0x7fa624001690, object=0x55d78449a2a0, msg=..., metaTypes=<optimized out>, slotIdx=5) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/dbus/qdbusintegrator.cpp:1008
#16 0x00007fa64214b9a2 in QObject::event (this=0x55d78449a2a0, e=0x7fa62403fe00) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/kernel/qobject.cpp:1418
#17 0x00007fa64323d9b8 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55d78449a2a0, e=0x7fa62403fe00) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/widgets/kernel/qapplication.cpp:3296
#18 0x00007fa6420f3590 in QCoreApplication::notifyInternal2 (receiver=0x55d78449a2a0, event=0x7fa62403fe00) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/kernel/qcoreapplication.cpp:1172
#19 0x00007fa6420f37ed in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/kernel/qcoreapplication.cpp:1612
#20 0x00007fa6420f6f51 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55d7841d1b20) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/kernel/qcoreapplication.cpp:1946
#21 0x00007fa6420f71fd in QCoreApplication::sendPostedEvents (receiver=<optimized out>, event_type=<optimized out>) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/kernel/qcoreapplication.cpp:1800
#22 0x00007fa6423efb5f in postEventSourceDispatch (s=0x55d784201640) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:246
#23 0x00007fa63f3ac28c in g_main_dispatch (context=0x7fa624000f00) at ../glib/gmain.c:3357
#24 g_main_context_dispatch_unlocked (context=0x7fa624000f00) at ../glib/gmain.c:4208
#25 0x00007fa63f40c7b8 in g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x7fa624000f00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4273
#26 0x00007fa63f3ad783 in g_main_context_iteration (context=0x7fa624000f00, may_block=1) at ../glib/gmain.c:4338
#27 0x00007fa6423ef2b3 in QEventDispatcherGlib::processEvents (this=0x55d7841d9c70, flags=...) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#28 0x00007fa642100993 in QEventLoop::exec (this=this@entry=0x7ffce7871aa0, flags=..., flags@entry=...) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/global/qflags.h:34
#29 0x00007fa6420fbf6e in QCoreApplication::exec () at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/global/qflags.h:74
#30 0x00007fa6428d7d3d in QGuiApplication::exec () at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/gui/kernel/qguiapplication.cpp:1975
#31 0x00007fa64323d929 in QApplication::exec () at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/widgets/kernel/qapplication.cpp:2564
#32 0x000055d745d2924c in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/konsole-24.12.3-1.fc41.x86_64/src/main.cpp:260
Comment 1 Andrew Gunnerson 2025-03-20 22:52:08 UTC
I just encountered this again, though this time, Konsole crashed when I cancelled out of the portal file picker dialog. The new backtrace is similar, but I noticed that frame 5 has `this=0x0` this time:

#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=11, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007fbf7887fbc3 in __pthread_kill_internal (threadid=<optimized out>, signo=11) at pthread_kill.c:78
#2  0x00007fbf78826f9e in __GI_raise (sig=11) at ../sysdeps/posix/raise.c:26
#3  0x00007fbf7a89c37e in KCrash::defaultCrashHandler (sig=11) at /usr/src/debug/kf6-kcrash-6.12.0-1.fc41.x86_64/src/kcrash.cpp:605
#4  0x00007fbf78827050 in <signal handler called> () at /lib64/libc.so.6
#5  QLayout::menuBar (this=0x0) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/widgets/kernel/qlayout.cpp:898
#6  0x00007fbf7a2040ee in QMainWindow::menuBar (this=this@entry=0x7fbf5c0304b0) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/widgets/widgets/qmainwindow.cpp:465
#7  0x00007fbf609ca071 in Breeze::ToolsAreaManager::configUpdated (this=0x55afb8baf0d0) at /usr/src/debug/plasma-breeze-6.3.3-1.fc41.x86_64/kstyle/breezetoolsareamanager.cpp:144
#8  0x00007fbf78f5a26e in QtPrivate::QSlotObjectBase::call (this=0x55afb8baf1b0, r=<optimized out>, a=0x7ffe03d15c70) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/kernel/qobjectdefs_impl.h:486
#9  doActivate<false> (sender=0x55afb8b789c0, signal_index=3, argv=0x7ffe03d15c70) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/kernel/qobject.cpp:4115
#10 0x00007fbf78f50867 in QMetaObject::activate (sender=sender@entry=0x55afb8b789c0, m=m@entry=0x7fbf7a920920 <KConfigWatcher::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffe03d15c70)
    at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/kernel/qobject.cpp:4175
#11 0x00007fbf7a8e53ed in KConfigWatcher::configChanged (this=this@entry=0x55afb8b789c0, _t1=..., _t2=<optimized out>) at /usr/src/debug/kf6-kconfig-6.12.0-1.fc41.x86_64/redhat-linux-build/src/core/KF6ConfigCore_autogen/include/moc_kconfigwatcher.cpp:159
#12 0x00007fbf7a8edd30 in KConfigWatcher::onConfigChangeNotification (this=0x55afb8b789c0, changes=<optimized out>) at /usr/src/debug/kf6-kconfig-6.12.0-1.fc41.x86_64/src/core/kconfigwatcher.cpp:114
#13 KConfigWatcher::qt_static_metacall (_o=_o@entry=0x55afb8b789c0, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=1, _a=_a@entry=0x7ffe03d15ed8)
    at /usr/src/debug/kf6-kconfig-6.12.0-1.fc41.x86_64/redhat-linux-build/src/core/KF6ConfigCore_autogen/include/moc_kconfigwatcher.cpp:108
#14 0x00007fbf7a8edf32 in KConfigWatcher::qt_metacall (this=0x55afb8b789c0, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7ffe03d15ed8) at /usr/src/debug/kf6-kconfig-6.12.0-1.fc41.x86_64/redhat-linux-build/src/core/KF6ConfigCore_autogen/include/moc_kconfigwatcher.cpp:144
#15 0x00007fbf77cde2d7 in QDBusConnectionPrivate::deliverCall (this=0x7fbf5c001690, object=0x55afb8b789c0, msg=..., metaTypes=<optimized out>, slotIdx=5) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/dbus/qdbusintegrator.cpp:1008
#16 0x00007fbf78f4b9a2 in QObject::event (this=0x55afb8b789c0, e=0x7fbf5c02be60) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/kernel/qobject.cpp:1418
#17 0x00007fbf7a03d9b8 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55afb8b789c0, e=0x7fbf5c02be60) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/widgets/kernel/qapplication.cpp:3296
#18 0x00007fbf78ef3590 in QCoreApplication::notifyInternal2 (receiver=0x55afb8b789c0, event=0x7fbf5c02be60) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/kernel/qcoreapplication.cpp:1172
#19 0x00007fbf78ef37ed in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/kernel/qcoreapplication.cpp:1612
#20 0x00007fbf78ef6f51 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55afb88afb20) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/kernel/qcoreapplication.cpp:1946
#21 0x00007fbf78ef71fd in QCoreApplication::sendPostedEvents (receiver=<optimized out>, event_type=<optimized out>) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/kernel/qcoreapplication.cpp:1800
#22 0x00007fbf791efb5f in postEventSourceDispatch (s=0x55afb8924fe0) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:246
#23 0x00007fbf760f128c in g_main_dispatch (context=0x7fbf5c000f00) at ../glib/gmain.c:3357
#24 g_main_context_dispatch_unlocked (context=0x7fbf5c000f00) at ../glib/gmain.c:4208
#25 0x00007fbf761517b8 in g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x7fbf5c000f00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4273
#26 0x00007fbf760f2783 in g_main_context_iteration (context=0x7fbf5c000f00, may_block=1) at ../glib/gmain.c:4338
#27 0x00007fbf791ef2b3 in QEventDispatcherGlib::processEvents (this=0x55afb88b7c70, flags=...) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#28 0x00007fbf78f00993 in QEventLoop::exec (this=this@entry=0x7ffe03d16530, flags=..., flags@entry=...) at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/global/qflags.h:34
#29 0x00007fbf78efbf6e in QCoreApplication::exec () at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/global/qflags.h:74
#30 0x00007fbf796d7d3d in QGuiApplication::exec () at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/gui/kernel/qguiapplication.cpp:1975
#31 0x00007fbf7a03d929 in QApplication::exec () at /usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/widgets/kernel/qapplication.cpp:2564
#32 0x000055afb4fa024c in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/konsole-24.12.3-1.fc41.x86_64/src/main.cpp:260
Comment 2 TraceyC 2025-03-21 00:26:41 UTC
Thank you for the bug report. Based on the backtrace this looks like a duplicate of bug 501688. Please follow that report if you would like updates on the progress of this issue.

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