Bug 481953

Summary: "using current location" when opening Dolphin doesn't work and crash
Product: [Applications] dolphin Reporter: paninomaninodesu
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: akselmo, bugseforuns, kfm-devel, nicolas.fella
Priority: NOR Keywords: qt6
Version: 24.02.0   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: trying to chose and save a current location

Description paninomaninodesu 2024-02-28 19:30:33 UTC
Created attachment 166170 [details]
trying to chose and save a current location

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Navigate to any folder in Dolphin
2. open options and select to use that location when opening dolphin
3. save the change

OBSERVED RESULT
dolphin crashes

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Neon User
(available in About System)
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Seems like the button is selecting nothing, leaving the field blank, and Dolphin can't handle a blank field telling which folder to open.
Comment 1 paninomaninodesu 2024-02-28 22:05:23 UTC
Submited on X11.
Tested on Wayland and it also happens.
(peek that I use to record screens for these occasions doesn't open on Wayland?)
Comment 2 Nicolas Fella 2024-02-28 22:41:06 UTC
Application: Dolphin (dolphin), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f83f6a6b3ab in QMetaObject::cast (this=0x7f83f7d048a0 <QDockWidget::staticMetaObject>, obj=0x5593aabc9290) at ./src/corelib/kernel/qmetaobject.cpp:395
#5  0x00007f83ef4dfb1d in ?? () from /usr/lib/x86_64-linux-gnu/qt6/plugins/styles/breeze6.so
#6  0x00007f83f6a639d8 in QCoreApplicationPrivate::sendThroughApplicationEventFilters (this=this@entry=0x5593aa081700, receiver=receiver@entry=0x5593aabc9290, event=event@entry=0x7ffc5a9c1220) at ./src/corelib/kernel/qcoreapplication.cpp:1235
#7  0x00007f83f7bf4128 in QApplicationPrivate::notify_helper (this=0x5593aa081700, receiver=0x5593aabc9290, e=0x7ffc5a9c1220) at ./src/widgets/kernel/qapplication.cpp:3267
#8  0x00007f83f6a63e18 in QCoreApplication::notifyInternal2 (receiver=0x5593aabc9290, event=0x7ffc5a9c1220) at ./src/corelib/kernel/qcoreapplication.cpp:1121
#9  0x00007f83f69cd826 in QObjectPrivate::setParent_helper (this=0x5593aaaad720, o=o@entry=0x5593aabc9290) at ./src/corelib/kernel/qobject.cpp:2269
#10 0x00007f83f69ce27d in QObject::setParent (this=this@entry=0x5593aa81e370, parent=parent@entry=0x5593aabc9290) at ./src/corelib/kernel/qobject.cpp:2194
#11 0x00007f83f69ce41c in QObject::QObject (this=<optimized out>, dd=..., parent=<optimized out>, this=<optimized out>, dd=..., parent=<optimized out>) at ./src/corelib/kernel/qobject.cpp:986
#12 0x00007f83f82f6d03 in KMessageBox::DialogButtonsHelper::DialogButtonsHelper (buttons=0x5593aaa688b0, dialog=0x5593aabc9290, this=0x5593aa81e370) at ./src/kmessagebox.cpp:99
#13 KMessageBox::createKMessageBox (dialog=0x5593aabc9290, buttons=0x5593aaa688b0, icon=..., text=..., strlist=..., ask=..., checkboxReturn=0x0, options=..., details=..., notifyType=QMessageBox::Critical) at ./src/kmessagebox.cpp:188
#14 0x00007f83f82f83b7 in KMessageBox::createKMessageBox (dialog=dialog@entry=0x5593aabc9290, buttons=buttons@entry=0x5593aaa688b0, icon=icon@entry=QMessageBox::Critical, text=..., strlist=..., ask=..., checkboxReturn=0x0, options=..., details=...) at ./src/kmessagebox.cpp:153
#15 0x00007f83f82f85d2 in KMessageBox::errorInternal (dialog=0x5593aabc9290, text=..., title=..., buttonOk=..., options=...) at ./src/kmessagebox.cpp:804
#16 0x00007f83f82f8756 in KMessageBox::error (parent=parent@entry=0x5593aab43740, text=..., title=..., options=options@entry=...) at ./src/kmessagebox.cpp:809
#17 0x00005593a881fbc6 in FoldersTabsSettingsPage::showSetDefaultDirectoryError (this=0x5593aab43740) at ./src/settings/interface/folderstabssettingspage.cpp:260
#18 0x00005593a8820405 in FoldersTabsSettingsPage::applySettings (this=0x5593aab43740) at ./src/settings/interface/folderstabssettingspage.cpp:172
#19 0x00005593a88136a0 in InterfaceSettingsPage::applySettings (this=<optimized out>) at ./src/settings/interface/interfacesettingspage.cpp:64
#20 0x00005593a87e5718 in DolphinSettingsDialog::applySettings (this=0x7f83e000e610) at ./src/settings/dolphinsettingsdialog.cpp:134
#21 0x00007f83f6a2b7ce in QtPrivate::QSlotObjectBase::call (a=<optimized out>, r=<optimized out>, this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ./src/corelib/kernel/qobjectdefs_impl.h:433
#22 doActivate<false> (sender=0x5593aac71630, signal_index=9, argv=0x7ffc5a9c1a10) at ./src/corelib/kernel/qobject.cpp:4039
#23 0x00007f83f7b935d6 in QAbstractButton::clicked (this=<optimized out>, _t1=<optimized out>) at ./obj-x86_64-linux-gnu/src/widgets/Widgets_autogen/include/moc_qabstractbutton.cpp:408
#24 0x00007f83f7b8b3ae in QAbstractButtonPrivate::emitClicked (this=0x5593aabac310) at ./src/widgets/widgets/qabstractbutton.cpp:379
#25 0x00007f83f7b8b78e in QAbstractButtonPrivate::click (this=0x5593aabac310) at ./src/widgets/widgets/qabstractbutton.cpp:372
#26 0x00007f83f7b8b933 in QAbstractButton::mouseReleaseEvent (this=0x5593aac71630, e=0x7ffc5a9c1fd0) at ./src/widgets/widgets/qabstractbutton.cpp:974
#27 0x00007f83f7c2e71f in QWidget::event (this=0x5593aac71630, event=0x7ffc5a9c1fd0) at ./src/widgets/kernel/qwidget.cpp:8959
#28 0x00007f83f7bf40eb in QApplicationPrivate::notify_helper (this=this@entry=0x5593aa081700, receiver=receiver@entry=0x5593aac71630, e=e@entry=0x7ffc5a9c1fd0) at ./src/widgets/kernel/qapplication.cpp:3296
#29 0x00007f83f7bf833e in QApplication::notify (this=<optimized out>, receiver=0x5593aac71630, e=0x7ffc5a9c1fd0) at ./src/widgets/kernel/qapplication.cpp:2782
#30 0x00007f83f6a63e18 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x5593aac71630, event=event@entry=0x7ffc5a9c1fd0) at ./src/corelib/kernel/qcoreapplication.cpp:1121
#31 0x00007f83f6a63e6d in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x5593aac71630, event=event@entry=0x7ffc5a9c1fd0) at ./src/corelib/kernel/qcoreapplication.cpp:1553
#32 0x00007f83f7bf3838 in QApplicationPrivate::sendMouseEvent (receiver=0x5593aac71630, event=0x7ffc5a9c1fd0, alienWidget=0x5593aac71630, nativeWidget=0x7f83e000e610, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at ./src/widgets/kernel/qapplication.cpp:2366
#33 0x00007f83f7c41847 in QWidgetWindow::handleMouseEvent (this=0x5593aac1a590, event=0x7ffc5a9c2370) at ./src/widgets/kernel/qwidgetwindow.cpp:653
#34 0x00007f83f7c3b185 in QWidgetWindow::event (this=0x5593aac1a590, event=0x7ffc5a9c2370) at ./src/widgets/kernel/qwidgetwindow.cpp:267
#35 0x00007f83f7bf40eb in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5593aac1a590, e=0x7ffc5a9c2370) at ./src/widgets/kernel/qapplication.cpp:3296
#36 0x00007f83f6a63e18 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x5593aac1a590, event=event@entry=0x7ffc5a9c2370) at ./src/corelib/kernel/qcoreapplication.cpp:1121
#37 0x00007f83f6a63e6d in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x5593aac1a590, event=event@entry=0x7ffc5a9c2370) at ./src/corelib/kernel/qcoreapplication.cpp:1553
#38 0x00007f83f6eee9eb in QGuiApplicationPrivate::processMouseEvent (e=0x5593aac1b910) at ./src/gui/kernel/qguiapplication.cpp:2325
#39 0x00007f83f6f54ecc in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at ./src/gui/kernel/qwindowsysteminterface.cpp:1109
#40 0x00007f83f1149a8e in xcbSourceDispatch (source=<optimized out>) at ./src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:57
#41 0x00007f83f4d69d3b in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007f83f4dbf258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#43 0x00007f83f4d673e3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#44 0x00007f83f685e1f0 in QEventDispatcherGlib::processEvents (this=0x5593aa117490, flags=...) at ./src/corelib/kernel/qeventdispatcher_glib.cpp:393
#45 0x00007f83f6a6604b in QEventLoop::exec (this=this@entry=0x7ffc5a9c27b0, flags=..., flags@entry=...) at ./src/corelib/global/qflags.h:34
#46 0x00007f83f6a67c7c in QCoreApplication::exec () at ./src/corelib/global/qflags.h:74
#47 0x00007f83f6ee9a20 in QGuiApplication::exec () at ./src/gui/kernel/qguiapplication.cpp:1925
#48 0x00007f83f7bf1689 in QApplication::exec () at ./src/widgets/kernel/qapplication.cpp:2574
#49 0x00005593a87957c3 in main (argc=<optimized out>, argv=<optimized out>) at ./src/main.cpp:253
[Inferior 1 (process 1368) detached]
Comment 3 Akseli Lahtinen 2024-08-29 13:21:08 UTC
I can't get the crash on dolphin 24.11.70, however, the settings field just turns empty instead of getting the current folder.
Comment 4 paninomaninodesu 2024-08-29 14:50:11 UTC
On Dolphin 24.08.0 (Frameworks 6.5.0, QT 6.7.2) still doesn't work, that button can't copy the current location and just empties the field, but at least not it only gives an error message about this without crashing. You can still change the default location imputing the location manually.
Comment 5 Akseli Lahtinen 2024-09-02 08:01:30 UTC
Should be now fixed with https://invent.kde.org/system/dolphin/-/merge_requests/823