Shotwell crashes, too many open files
Submitted by an unknown user
Link to original bug (#719121)
Description
---- Reported by shotwell-maint@gnome.bugs 2013-10-13 02:39:00 -0700 ----
Original Redmine bug id: 7628
Original URL: http://redmine.yorba.org/issues/7628
Searchable id: yorba-bug-7628
Original author: Thomas Novin
Original description:
Was browsing around in some old directories. Have previously (~ 5 days ago) removed all thumbnails because of problems with them so I guess a lot of them need so be re-generated.
(shotwell:6742): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Error opening file: Too many open files
L 6742 2013-10-13 11:35:48 [CRT] PixbufCache.vala:262: Unable to readahead [13255] /media/mistik_shared/Photos/2011/11-22/PB227139.JPG: Failed to open file '/media/mistik_shared/Photos/2011/11-22/PB227139.JPG': Too many open files
Attaching a console.log + shotwell.log. Shotwell started with 'export SHOTWELL_LOG=1 && shotwell'.
$ apt-cache policy shotwell
shotwell:
Installed: 0.15.0-0ubuntu1
Candidate: 0.15.0-0ubuntu1
Version table: *** 0.15.0-0ubuntu1 0
500 http://se.archive.ubuntu.com/ubuntu/ saucy/main i386 Packages
100 /var/lib/dpkg/status
Related issues:
- related to shotwell - 7587: Watch on a directory misses many photos/videos (Invalid)
---- Additional Comments From shotwell-maint@gnome.bugs 2013-11-13 17:26:00 -0800 ----
History
Comment 1
Updated by Thomas Novin about 1 month ago
- File shotwell.log added
Comment 2
Updated by Jim Nelson about 1 month ago
- Category set to import
- Status changed from Open to Need Information
- Priority changed from Normal to High
Can you tell me how many videos you have in your library?
Comment 3
Updated by Thomas Novin about 1 month ago
Library is 1950 videos (and 23466 photos)
Comment 4
Updated by Jim Nelson about 1 month ago
- Assignee set to Jim Nelson
- Priority changed from High to Urgent
Thomas, are you willing to pull Shotwell from git and build and install it manually?
Comment 5
Updated by Thomas Novin about 1 month ago
I have never done that before so I think it will take too much time and clutter my system with all build dependencies.. but I could install the -dbg package and do a trace (if I can reproduce the error)?
Comment 6
Updated by Jim Nelson about 1 month ago
Actually, I need you to build a version before a specific commit (specifically, 9b7cd5a4), so this isn't available in the debug package. One of the last commits we made to Shotwell 0.15 was a bug (or so it looked) of the video thumbnailer re-opening stdout when it didn't need to (#7580). I'm wondering if that patch has something to do with this problem. I don't know why it would, but because it involves video thumbnails and opening/closing files, I'm suspicious.
Comment 7
Updated by Thomas Novin about 1 month ago
- File shotwell.log added
Got the issue again, attaching the log.. if it can help.
Comment 8
Updated by John Feibusch 16 days ago
I got an error like this too, when importing photos and videos into a new
catalog. I worked around it by increasing the open file limit. When the import
was done, I noticed that Shotwell had a lot of pipes open. I used a command
like "ls -l /proc/<PID>
/fd | grep -c pipe", where <PID>
is the Shotwell
process. The number reported was exactly the same as the number of videos that
Shotwell said it imported. So it seems that Shotwell is leaving a pipe open
when it imports a video.
I'm running Ubuntu 13.10 with the version of Shotwell included in that distro (0.15)
I think this could be reproduced just by importing a few videos, then checking to see if any pipes are open in the Shotwell process after the import is done.
Comment 9
Updated by Jim Nelson 8 days ago
- Status changed from Need Information to Open
-
Assignee deleted (
<strike>
_Jim Nelson_</strike>
) - Target version set to 0.16.0
--- Bug imported by chaz@yorba.org 2013-11-25 21:59 UTC ---
This bug was previously known as bug 7628 at http://redmine.yorba.org/show_bug.cgi?id=7628 Imported an attachment (id=262696) Imported an attachment (id=262697) Imported an attachment (id=262698)
Unknown milestone "unknown in product shotwell. Setting to default milestone for this product, "---". Setting qa contact to the default for this product. This bug either had no qa contact or an invalid one. Resolution set on an open status. Dropping resolution
Version: 0.15.1
Resolution: RESOLVED FIXED