After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 402336 - Importing lots of RAWs leaks file handles
Importing lots of RAWs leaks file handles
Status: RESOLVED DUPLICATE of bug 375365
Product: f-spot
Classification: Other
Component: Import
0.3.x
Other All
: Normal critical
: ---
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2007-01-30 04:28 UTC by George Talusan
Modified: 2007-01-30 07:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description George Talusan 2007-01-30 04:28:22 UTC
Steps to reproduce:
1. Import thousands of RAW files
2. Wait until F-Spot crashes.
3. Repeat.


Stack trace:
Gnome.Vfs.VfsException: Too many open files
  at Gnome.Vfs.Vfs.ThrowException (System.String uri, Result result) [0x00000] 
  at Gnome.Vfs.Vfs.ThrowException (Gnome.Vfs.Uri uri, Result result) [0x00000] 
  at Gnome.Vfs.Sync.Open (Gnome.Vfs.Uri uri, OpenMode mode) [0x00000] 
  at Gnome.Vfs.VfsStream..ctor (System.String text_uri, FileMode mode, Boolean async) [0x00000] 
  at Gnome.Vfs.VfsStream..ctor (System.String uri, FileMode mode) [0x00000] 
  at (wrapper remoting-invoke-with-check) Gnome.Vfs.VfsStream:.ctor (string,System.IO.FileMode)
  at FSpot.ImageFile.Open () [0x00000] 
  at FSpot.Ciff.CiffFile.get_Root () [0x00000] 
  at FSpot.Ciff.CiffFile.get_Date () [0x00000] 
  at FileImportBackend.ChooseLocation (System.String path, System.Collections.Stack created_directories) [0x00000] 
  at FileImportBackend.Step (.Photo& photo, Gdk.Pixbuf& thumbnail, System.Int32& count) [0x00000] 
Could not import file
Stopping

Other information:
My hard disk recently crashed so I'm trying to re-import my photographs into F-Spot.  I have an existing F-Spot photograph hierarchy on a backup drive that I'm trying to copy into my new RAID array.

After importing a few hundred RAWs, F-Spot logs the above exceptions.  Depending on how many files are attempted to be imported, F-Spot will report the error however it may or may not segfault.  Also with too many file handles leaked, icons and thumbnails may render as the default error or ? icon.
Comment 1 Stephane Delcroix 2007-01-30 07:09:10 UTC
Hi,

Thanks for this bug report. The 'too many open files' issue is already reported in our bugzilla as bug #375365.

Can we continue the discussion over there ? Also let us know how much is too much...

*** This bug has been marked as a duplicate of 375365 ***