https://bugs.kde.org/show_bug.cgi?id=510141

Zacharie Cornière <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #7 from Zacharie Cornière <[email protected]> ---
Hello ! I can confirm the issue seems to be caused by a file from an
unavailable NFS in the "Recent File" file cause Gwenview to hang for hours.

gwenview --version
> gwenview 26.04.3

/etc/fstab snippet
> vault.local:/vault/  /mnt/vault  nfs4  
> noauto,nodev,sync,hard,rsize=32768,wsize=32768,_netdev,x-systemd.automount,x-systemd.idle-timeout=1min
>   0 0

If I abort the process, the callstack in gdb does indicate that the thread is
hanging on a stat syscall on a directory in my unavailable NFS
> #0  __GI___fstatat64 (fd=-100, file=0x558068d4d140 
> "/mnt/vault/Videos/shark/", buf=0x7ffdcd456510, flag=0) at 
> ../sysdeps/unix/sysv/linux/fstatat64.c:159
> #1  0x00007ff1864b06e2 in QMimeDatabasePrivate::mimeTypeForFile 
> (this=0x7ff186699a80 
> <_ZZN13QGlobalStaticIN14QtGlobalStatic6HolderIN12_GLOBAL__N_125Q_QGS_staticQMimeDatabaseEEEE8instanceEvE6holder.lto_priv.0>,
>  fileName=..., fileInfo=..., mode=mode@entry=QMimeDatabase::MatchDefault) at 
> /usr/src/debug/qt6-base/qtbase/src/corelib/tools/qarraydatapointer.h:118
> #2  0x00007ff1864b0fc4 in QMimeDatabase::mimeTypeForFile 
> (this=this@entry=0x7ffdcd4566d8, fileName=..., 
> mode=mode@entry=QMimeDatabase::MatchDefault) at 
> /usr/src/debug/qt6-base/qtbase/src/corelib/mimetypes/qmimedatabase.cpp:653
> #3  0x00007ff1864b11f8 in QMimeDatabase::mimeTypeForUrl (this=0x7ffdcd4566d8, 
> url=...) at /usr/src/debug/qt6-base/qtbase/src/corelib 
> mimetypes/qmimedatabase.cpp:739
> #4  0x00007ff188cdac09 in Gwenview::HistoryItem::HistoryItem () at 
> /usr/src/debug/gwenview/gwenview-26.04.3/lib/historymodel.cpp:137
> #5  0x00007ff188cdf8c8 in Gwenview::HistoryItem::load () at 
> /usr/src/debug/gwenview/gwenview-26.04.3/lib/historymodel.cpp:91
> #6  Gwenview::HistoryModelPrivate::load () at 
> /usr/src/debug/gwenview/gwenview-26.04.3/lib/historymodel.cpp:170
> #7  0x0000558060956268 in Gwenview::GvCore::recentFoldersModel () at 
> /usr/src/debug/gwenview/gwenview-26.04.3/app/gvcore.cpp:353
> #8  0x000055806095d7a8 in Gwenview::GvCore::addUrlToRecentFolders () at 
> /usr/src/debug/gwenview/gwenview-26.04.3/app/gvcore.cpp:390
> #9  0x000055806098f27c in Gwenview::GvCore::addUrlToRecentFolders () at 
> /usr/src/debug/gwenview/gwenview-26.04.3/app/gvcore.cpp:381

Deleting both ~/.local/share/gwenview/ and ~/.config/gwenviewrc fixes the issue

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to