Bug 467403 - Dolphin crashes after unmounting external flash drive
Summary: Dolphin crashes after unmounting external flash drive
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 22.12.3
Platform: Arch Linux Linux
: VHI crash
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: drkonqi
: 458777 460004 465694 468699 468854 469004 469242 473154 473284 473348 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-03-15 15:11 UTC by Elia
Modified: 2023-11-18 12:41 UTC (History)
12 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elia 2023-03-15 15:11:37 UTC
Application: dolphin (22.12.3)

Qt Version: 5.15.8
Frameworks Version: 5.104.0
Operating System: Linux 6.2.6-arch1-1 x86_64
Windowing System: X11
Distribution: "Arch Linux"
DrKonqi: 5.27.3 [KCrashBackend]

-- Information about the crash:
Unmounting a USB flash drive (encrypted with luks) causes dolphin to crash, the unmounting operation is not successfull.

The crash can be reproduced every time.

-- Backtrace:
Application: Dolphin (dolphin), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[KCrash Handler]
#6  0x00005618a0b8c202 in TerminalPanel::sendCdToTerminal (this=0x5618a20f56b0, dir=..., addToHistory=TerminalPanel::HistoryPolicy::SkipHistory) at /usr/src/debug/dolphin/dolphin-22.12.3/src/panels/terminal/terminalpanel.cpp:245
#7  0x00005618a0b6a372 in TerminalPanel::goHome (this=0x5618a20f56b0) at /usr/src/debug/dolphin/dolphin-22.12.3/src/panels/terminal/terminalpanel.cpp:56
#8  DolphinMainWindow::slotStorageTearDownFromPlacesRequested (this=0x5618a2069600, mountPath=...) at /usr/src/debug/dolphin/dolphin-22.12.3/src/dolphinmainwindow.cpp:1506
#9  0x00007f28b46bea71 in QtPrivate::QSlotObjectBase::call (a=<optimized out>, r=<optimized out>, this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#10 doActivate<false> (sender=0x5618a20bf620, signal_index=24, argv=0x7ffc87aa6a80) at kernel/qobject.cpp:3923
#11 0x00005618a0b8b2b4 in PlacesPanel::storageTearDownRequested (_t1=..., this=0x5618a20bf620) at /usr/src/debug/dolphin/build/src/dolphinstatic_autogen/DIM5AXWM7T/moc_placespanel.cpp:256
#12 PlacesPanel::slotTearDownRequested (this=0x5618a20bf620, index=...) at /usr/src/debug/dolphin/dolphin-22.12.3/src/panels/places/placespanel.cpp:221
#13 0x00007f28b675c3f7 in KFilePlacesViewPrivate::actionClicked (index=..., this=0x5618a2104f90) at /usr/src/debug/kio/kio-5.104.0/src/filewidgets/kfileplacesview.cpp:1938
#14 operator() (index=..., __closure=<optimized out>) at /usr/src/debug/kio/kio-5.104.0/src/filewidgets/kfileplacesview.cpp:870
#15 QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<const QModelIndex&>, void, KFilePlacesView::KFilePlacesView(QWidget*)::<lambda(const QModelIndex&)> >::call (arg=<optimized out>, f=...) at /usr/include/qt/QtCore/qobjectdefs_impl.h:146
#16 QtPrivate::Functor<KFilePlacesView::KFilePlacesView(QWidget*)::<lambda(const QModelIndex&)>, 1>::call<QtPrivate::List<QModelIndex const&>, void> (arg=<optimized out>, f=...) at /usr/include/qt/QtCore/qobjectdefs_impl.h:256
#17 QtPrivate::QFunctorSlotObject<KFilePlacesView::KFilePlacesView(QWidget*)::<lambda(const QModelIndex&)>, 1, QtPrivate::List<const QModelIndex&>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=<optimized out>, this_=<optimized out>, r=<optimized out>, a=<optimized out>, ret=<optimized out>) at /usr/include/qt/QtCore/qobjectdefs_impl.h:443
#18 0x00007f28b46bea71 in QtPrivate::QSlotObjectBase::call (a=<optimized out>, r=<optimized out>, this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#19 doActivate<false> (sender=0x5618a212b920, signal_index=8, argv=0x7ffc87aa6bf0) at kernel/qobject.cpp:3923
#20 0x00007f28b675656a in KFilePlacesEventWatcher::actionClicked (this=<optimized out>, _t1=...) at /usr/src/debug/kio/build/src/filewidgets/KF5KIOFileWidgets_autogen/include/moc_kfileplacesview_p.cpp:342
#21 0x00007f28b6751645 in KFilePlacesEventWatcher::eventFilter (this=0x5618a212b920, watched=<optimized out>, event=0x7ffc87aa71f0) at /usr/src/debug/kio/kio-5.104.0/src/filewidgets/kfileplacesview_p.h:263
#22 0x00007f28b468dbb2 in QCoreApplicationPrivate::sendThroughObjectEventFilters (receiver=receiver@entry=0x5618a210b840, event=event@entry=0x7ffc87aa71f0) at kernel/qcoreapplication.cpp:1190
#23 0x00007f28b5378b4c in QApplicationPrivate::notify_helper (this=this@entry=0x5618a1b9abd0, receiver=receiver@entry=0x5618a210b840, e=e@entry=0x7ffc87aa71f0) at kernel/qapplication.cpp:3634
#24 0x00007f28b537e379 in QApplication::notify (this=<optimized out>, receiver=<optimized out>, e=0x7ffc87aa71f0) at kernel/qapplication.cpp:3084
#25 0x00007f28b468df48 in QCoreApplication::notifyInternal2 (receiver=0x5618a210b840, event=0x7ffc87aa71f0) at kernel/qcoreapplication.cpp:1064
#26 0x00007f28b468dfd3 in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1474
#27 0x00007f28b537c377 in QApplicationPrivate::sendMouseEvent (receiver=0x5618a210b840, event=0x7ffc87aa71f0, alienWidget=<optimized out>, nativeWidget=0x5618a2069600, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2622
#28 0x00007f28b53cd505 in QWidgetWindow::handleMouseEvent (this=this@entry=0x5618a2120240, event=event@entry=0x7ffc87aa7550) at kernel/qwidgetwindow.cpp:683
#29 0x00007f28b53cf2ae in QWidgetWindow::event (this=0x5618a2120240, event=0x7ffc87aa7550) at kernel/qwidgetwindow.cpp:300
#30 0x00007f28b5378b5c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5618a2120240, e=0x7ffc87aa7550) at kernel/qapplication.cpp:3640
#31 0x00007f28b468df48 in QCoreApplication::notifyInternal2 (receiver=0x5618a2120240, event=0x7ffc87aa7550) at kernel/qcoreapplication.cpp:1064
#32 0x00007f28b468dfd3 in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1474
#33 0x00007f28b4b3efbc in QGuiApplicationPrivate::processMouseEvent (e=0x5618a245cfa0) at kernel/qguiapplication.cpp:2285
#34 0x00007f28b4b28885 in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#35 0x00007f28ae8ec8d0 in xcbSourceDispatch (source=<optimized out>) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:105
#36 0x00007f28b250fafb in g_main_dispatch (context=0x7f28a8000ee0) at ../glib/glib/gmain.c:3460
#37 g_main_context_dispatch (context=0x7f28a8000ee0) at ../glib/glib/gmain.c:4200
#38 0x00007f28b256c5d9 in g_main_context_iterate.constprop.0 (context=0x7f28a8000ee0, block=1, dispatch=1, self=<optimized out>) at ../glib/glib/gmain.c:4276
#39 0x00007f28b250d382 in g_main_context_iteration (context=0x7f28a8000ee0, may_block=1) at ../glib/glib/gmain.c:4343
#40 0x00007f28b46d8c6c in QEventDispatcherGlib::processEvents (this=0x5618a1c6baf0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#41 0x00007f28b46866ec in QEventLoop::exec (this=0x7ffc87aa78f0, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#42 0x00007f28b4691219 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#43 0x00007f28b4b39fe2 in QGuiApplication::exec () at kernel/qguiapplication.cpp:1870
#44 0x00007f28b5376f2a in QApplication::exec () at kernel/qapplication.cpp:2832
#45 0x00005618a0b5ef53 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/dolphin/dolphin-22.12.3/src/main.cpp:258
[Inferior 1 (process 4701) detached]

The reporter indicates this bug may be a duplicate of or related to bug 460004, bug 461535, bug 462740, bug 465694.

Reported using DrKonqi
Comment 1 Méven Car 2023-04-20 16:15:27 UTC
*** Bug 468699 has been marked as a duplicate of this bug. ***
Comment 2 Méven Car 2023-04-20 16:15:36 UTC
*** Bug 465694 has been marked as a duplicate of this bug. ***
Comment 3 Bug Janitor Service 2023-04-20 16:16:57 UTC
A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/531
Comment 4 Méven Car 2023-04-20 16:22:54 UTC
*** Bug 460004 has been marked as a duplicate of this bug. ***
Comment 5 Méven 2023-04-21 13:43:21 UTC
Git commit a654b8dae671140da73d70d80bb2f6e2b0282c18 by Méven Car.
Committed on 21/04/2023 at 13:32.
Pushed by meven into branch 'master'.

TerminalPanel: better check if terminal needs to change its currentWorkingDirectory when unmounting

M  +2    -2    src/dolphinmainwindow.cpp
M  +3    -3    src/panels/terminal/terminalpanel.cpp
M  +1    -1    src/panels/terminal/terminalpanel.h

https://invent.kde.org/system/dolphin/commit/a654b8dae671140da73d70d80bb2f6e2b0282c18
Comment 6 Ben Bonacci 2023-05-03 10:59:16 UTC
*** Bug 469004 has been marked as a duplicate of this bug. ***
Comment 7 Ben Bonacci 2023-05-03 11:14:43 UTC
*** Bug 468854 has been marked as a duplicate of this bug. ***
Comment 8 Ben Bonacci 2023-05-03 11:15:56 UTC
*** Bug 469242 has been marked as a duplicate of this bug. ***
Comment 9 Nicolas Fella 2023-08-13 15:22:21 UTC
*** Bug 473154 has been marked as a duplicate of this bug. ***
Comment 10 Nicolas Fella 2023-08-13 15:22:29 UTC
*** Bug 473284 has been marked as a duplicate of this bug. ***
Comment 11 Nicolas Fella 2023-08-13 15:23:22 UTC
*** Bug 458777 has been marked as a duplicate of this bug. ***
Comment 12 Nicolas Fella 2023-08-13 21:41:59 UTC
*** Bug 473348 has been marked as a duplicate of this bug. ***
Comment 13 Méven Car 2023-11-18 12:41:43 UTC
It seems the bug has not been reproduced since the release of Dolphin 23.08.
Marking it as resolved.
Please reopen (or create a new bug) if the bug is still affecting you.