F-spot destroys photos from smbfs mount

Bug #160506 reported by Pasi Välkkynen
4
Affects Status Importance Assigned to Milestone
f-spot (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: f-spot

Not sure whether this is related to F-Spot or to the way smb mounts are handled, but the problem is: if I import photos from a network disk, some of the photos get corrupted, just by importing them, even without trying anything that should cause writing on the image files. This does not happen if the photos are on a physically local disk. The issue surfaced after the upgrade to 7.10 distribution. My directory on the disk is mounted as 'verkkolevy' in my home folder like this:

//verkkolevy/pasi /home/pasi/verkkolevy smbfs credentials=/home/pasi/.smbpass,uid=1000 0 0

The corruption shows like this:

- The image file name changes, for example from 'Kisu ja Pasi 2006 002.jpg' to 'Kisu ja Pasi 2006 002.jpg.AlZd9l', i.e. some random letters are added at the end of the filename.
- The image file size changes, for example in the aforementioned image from 2.1 MB to 1.4 MB.
- Only a part of the image is showing, if I open it in another image viewer.
- Only a part of the image is showing clearly, if I open it in F-Spot single view mode, and the rest of the image is blurred. Trying any edits cause this error message:

"Received exception "Error interpreting JPEG image file (Application transferred too few scanlines)"."

So far I haven't been able to get this kind of behaviour with any other software, so I suspect it may be related somehow to the way F-Spot handles files. But of course it may as well just be related to smbfs.

Revision history for this message
Pasi Välkkynen (basil-iki) wrote :
Revision history for this message
Pasi Välkkynen (basil-iki) wrote :
Revision history for this message
Pasi Välkkynen (basil-iki) wrote :

I found out that if the "write tag metadata to file" is turned off, the import works well (at least so far).

If I do edits to the image and it is written as a new file, it remains OK.

So, it would look like the problem is related only to the moment F-Spot imports images and writes them back to the smbfs mount when the tag metadata is added to them. However, specifying a tag while importing does not matter, some writing will still occur, even if no tag is asked to be added.

Revision history for this message
Peter Clifton (pcjc2) wrote :

This may be related to an upstream bug in GTK... I've opened Ubuntu Bug #179154

The upstream is http://bugzilla.gnome.org/show_bug.cgi?id=494667 and it relates to the "Application transferred too few scanlines" you're seeing in your output.

Maia Everett (linneris)
Changed in f-spot:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Jorge Castro (jorge) wrote :

The bug Peter linked to is fixed upstream, Pasi are you still having this problem? I just tried this locally in Hardy and it works for me so I am marking it fixed, please reopen if you have the same problem in Hardy.

Changed in f-spot:
status: Triaged → Fix Released
Revision history for this message
Pasi Välkkynen (basil-iki) wrote :

Still having the problem with my current Gutsy, but I'll see what happens with Hardy when it's officially released.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.