Bug 397292 - Occasional delay when opening image file
Summary: Occasional delay when opening image file
Status: RESOLVED WORKSFORME
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 18.04.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-08 23:52 UTC by Buck Shockley
Modified: 2018-08-09 23:30 UTC (History)
1 user (show)

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


Attachments
Picture that causes Gwenview to lag (251.92 KB, image/jpeg)
2018-08-08 23:58 UTC, Buck Shockley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Buck Shockley 2018-08-08 23:52:16 UTC
Gwenview sometimes delays when opening an image file. There's no specific image file, it's random.
Comment 1 Buck Shockley 2018-08-08 23:58:46 UTC
Created attachment 114382 [details]
Picture that causes Gwenview to lag

Actually, this image seems to consistently cause Gwenview to lag
Comment 2 null 2018-08-09 10:36:44 UTC
> Gwenview sometimes delays when opening an image file.
I'm not really sure what you mean by that, could you be more specific? For example:

- How are you opening the image?
- What is delayed exactly, opening of Gwenview, opening the image, displaying the image, general unresponsiveness of the whole computer?
- Do you experience the delay also when switching to that image?

> this image seems to consistently cause Gwenview to lag
I don't notice anything wrong with that image, for me it's opening fine just like any other image really.
Comment 3 Buck Shockley 2018-08-09 21:46:31 UTC
> How are you opening the image?

Both double-clicking it in Dolphin and opening it through a terminal cause the same issue.

> What is delayed exactly, opening of Gwenview, opening the image, displaying the image, general unresponsiveness of the whole computer?

Gwenview opening. Switching between images works fine and the Gwenview program is snappy afterwards, but opening Gwenview seems to slow down.

> Do you experience the delay also when switching to that image?

No. Switching images works fine once the program is opened.

I initially thought it was that image, then I widened the scope to images that were on a 1TB HDD mounted in my home folder as opposed to my SSD mounted at /, but it seems to happen with every image on my PC. After a reboot, the problem seems to have gone away. I'm going to see if it happens again after prolonged uptime.
Comment 4 null 2018-08-09 23:30:24 UTC
If a restart of Gwenview does not fix the issue, but a restart of the computer does, I'm pretty sure Gwenview cannot be at fault.

Sounds like excessive swapping or high CPU usage to me, you might want to check with KSysGuard. Also double-check whether other apps are affected too, e.g. by opening an image in Okular.

I'm closing this for now, but feel free to reopen and possibly change the Bugzilla product once you have more certainty on what component is causing the issue. In that case a video recording might be helpful, and looking at it with gdb.