shotwell hangs with high cpu usage when dir contains many image
Bug #1836019 reported by
shisui
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntuone-shotwell-plugin |
Expired
|
High
|
|||
shotwell (Ubuntu) |
Triaged
|
High
|
Unassigned |
Bug Description
After close shotwell
>$ pgrep shotwell |wc -l
>4
shotwell still run backgroud.
with high cpu usage,.
Load average: 5.95 5.02 3.80
ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: shotwell 0.30.2-0ubuntu2
ProcVersionSign
Uname: Linux 5.0.0-20-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.10-0ubuntu27.1
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Wed Jul 10 16:19:32 2019
InstallationDate: Installed on 2019-06-02 (37 days ago)
InstallationMedia: Ubuntu 18.04.2 LTS "Bionic Beaver" - Release amd64 (20190210)
SourcePackage: shotwell
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in ubuntuone-shotwell-plugin: | |
importance: | Unknown → High |
status: | Unknown → Expired |
To post a comment you must log in.
Hi,
First of all, thanks for this great software.
I've been trying to get rid of many _shotwell.jpg / _shotwell_1.jpg / _shotwell_2.jpg files today, without success so far.
The issue I'd like to raise is that when closing Shotwell, either from the menu or with the usual close button, the application doesn't fully stop right away and keeps running in the background, taking a significant part of the system resources (it looks like a full CPU core at 100% out of 4).
This is a really unusual behavior among desktop apps, it can decrease the battery life drastically on a laptop if the user doesn't notice, and there is no message informing the user or offering a way to control this when closing the app.
Launching Shotwell with export SHOTWELL_LOG=1 shows in the logs that it was in fact still creating new thumbnails for the recently modified pictures (the ones ending in _shotwell.jpg that it has recreated after my deletion attempt) and it finally stopped after a bit more than an hour.
From a user point of view, this is really disturbing. Would it be possible to:
1/ properly stop all long-running background actions (such as thumbnail creation) as soon as the app has been closed by the user?
2/ and maybe offer an option in the settings for users that like the current beavhior?
Personally, if I want to keep things running, I simply keep an app open but minimized. But as soon as I close an app, I expect it to stop taking system resources (and certainly not to keep using 25% of total CPU resources for 1h+ long).
I don't know if this is a design decision or if I've hit a bug, so let me know if you would need any other input. Btw, I've seen this using the master branch, compiled on commit: b5dd17ea16b1a44 933fb65378dc5a3 0971dcec5a
Thanks a lot,
Jérôme