Bug 416118 - Gwenview freezes or crashes when loading image.
Summary: Gwenview freezes or crashes when loading image.
Status: VERIFIED WORKSFORME
Alias: None
Product: gwenview
Classification: Applications
Component: general (other bugs)
Version First Reported In: 19.12.3
Platform: Manjaro Linux
: NOR major
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-11 15:35 UTC by gregorystarr00
Modified: 2020-08-14 13:22 UTC (History)
4 users (show)

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


Attachments
A screenshot of the error (417.06 KB, image/png)
2020-01-11 15:35 UTC, gregorystarr00
Details
strace showing recent files issue (4.74 KB, text/plain)
2020-08-14 13:20 UTC, Victor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gregorystarr00 2020-01-11 15:35:45 UTC
Created attachment 125030 [details]
A screenshot of the error

SUMMARY
When launching Gwenview to open an image, any image, whether from dolphin or from the terminal, it lags for about 30-50 seconds before displaying any image, or even user interface of any kind. A screenshot is attached.

STEPS TO REPRODUCE
1. Open any image in any way
2. Bug occurs


OBSERVED RESULT
Gwenview 'takes a screenshot' of the desktop in the size of it's window, and when I move around, that afterimage persists. It then takes around 30 seconds to load an image, and around 1/8 of the time, it crashes before loading the image.

EXPECTED RESULT
Gwenview loads the image instantly

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro 18, kernel 5.4
(available in About System)
KDE Plasma Version: 5.17.4
KDE Frameworks Version: 5.65.0
Qt Version: 5.15.0
Comment 1 gregorystarr00 2020-01-11 15:37:43 UTC
This also happens when launching Gwenview W/O images. It doesn't occur in other QT apps.
Comment 2 ariasuni 2020-01-11 17:58:20 UTC
I have this problem too. It goes away when uninstalling kio-fuse.
Comment 3 gregorystarr00 2020-01-12 05:08:11 UTC
(In reply to ariasuni from comment #2)
> I have this problem too. It goes away when uninstalling kio-fuse.

I don't have kio-fuse installed.
Comment 4 Fabian Vogt 2020-01-12 13:29:40 UTC
During the time gwenview is frozen, please run strace -p $(pidof gwenview) and post the output.

> Qt Version: 5.15.0

Really?

(In reply to ariasuni from comment #2)
> I have this problem too. It goes away when uninstalling kio-fuse.

That sounds odd, gwenview doesn't use kio-fuse.
Comment 5 gregorystarr00 2020-01-12 17:31:20 UTC
(In reply to Fabian Vogt from comment #4)
> During the time gwenview is frozen, please run strace -p $(pidof gwenview)
> and post the output.
> 
> > Qt Version: 5.15.0
> 
> Really?

Sorry, I mean 5.14.0, 5.15 isnt out yet. I reinstalled Gwenview, and the problem seems to have gone away.
Comment 6 Patrick Silva 2020-01-20 12:26:46 UTC
closing as per comment 5
Comment 7 sarthakm27 2020-04-26 03:43:13 UTC
I am facing this exact bug on plasma 5.18.4 and gwenview 19.12.3
Comment 8 Victor 2020-08-14 13:20:27 UTC
Created attachment 130869 [details]
strace showing recent files issue

Anything under '/home/victor/Export' is an NFS mount that is not currently available.
Comment 9 Victor 2020-08-14 13:22:09 UTC
I have had the same issue on my laptop (Desktop works ok) for quite a while. I'm running Arch with KDE on both computers. 

I had tried re-installing Gwenview, removing the config file and even disabling KDE connect (found a post where someone had issues online). Nothing worked. 

After running 'strace' it showed that it was trying to load data from '${HOME}/.local/share/gwenview/recentfolders', which pointed to an NFS mount that is not currently active. I deleted the folder and now Gwenview works as expected.

I would assume this to be a bug. Not being able to open recent files should not halt the main thread.