f-spot crashes when exporting to Zooomr

Bug #288070 reported by Austriaco
6
Affects Status Importance Assigned to Milestone
libflickrnet (Debian)
Fix Released
Unknown
libflickrnet (Ubuntu)
Fix Released
Medium
Chris Coulson

Bug Description

Binary package hint: f-spot

f-spot crashes when trying to authorize access to Zooomr in order to export pictures.

My current System Ubuntu Intrepid up to date as of Oct 23rd:

$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10

f-spot version:

$ apt-cache policy f-spot
f-spot:
  Installed: 0.5.0.3-0ubuntu1
  Candidate: 0.5.0.3-0ubuntu1
  Version table:
 *** 0.5.0.3-0ubuntu1 0
        500 http://de.archive.ubuntu.com intrepid/main Packages
        100 /var/lib/dpkg/status

How to reproduce crash:

1.- Open f-spot and import some pictures if necessary.
2.- Select at least one picture.
3.- Go to menu: Photo->Export to->Zooomr
4.- f-spot will ask you to Authorize it, in order to upload photos. Click the button labeled "Authorize" in the "Export" Dialog and f-spot will crash.

What should have happened:

After clicking "Authorize" f-spot should have opened a new browser window or tab sending you to Zooomr API authorization page, as it happens with Flickr export. After that you would be able to click "Complete Authorization" and export the desired pictures to Zooomr (as it happens with Flickr export)
The output from f-spot --debug is the following:

$ f-spot --debug
** Running f-spot in Debug Mode **
** Running Mono with --debug **
[Info 12:51:46.468] Initializing DBus
[Debug 12:51:46.647] DBusInitialization took 0.138103s
[Info 12:51:46.647] Initializing Mono.Addins
[Debug 12:51:46.890] Mono.Addins Initialization took 0.242322s
[Info 12:51:46.897] Starting new FSpot server
[Debug 12:51:47.064] Db Initialization took 0.077519s
[Debug 12:51:47.490] QueryToTemp took 0.005044s : SELECT id, time, uri, description, roll_id, default_version_id, rating, md5_sum FROM photos WHERE id NOT IN (SELECT photo_id FROM photo_tags WHERE tag_id = 2) ORDER BY time DESC
[Debug 12:51:47.648] Query took 0.015846s : SELECT * FROM photoquery_temp_0 LIMIT 100 OFFSET 0
[Debug 12:51:47.737] PhotosPerMonth took 0.017206s
[Debug 12:51:47.738] TimeAdaptor REAL Reload took 0.225277s
[Info 12:51:47.764] Starting BeagleService
[Debug 12:51:47.765] BeagleService startup took 1.5E-05s
[Info 12:51:47.765] Hack for gnome-settings-daemon engaged
[Debug 12:51:47.862] IndexOf took 0.000718s : SELECT ROWID FROM photoquery_temp_0 WHERE time <= 1230764399 ORDER BY time DESC LIMIT 1
[Debug 12:51:47.863] IndexOf took 0.000515s : SELECT ROWID FROM photoquery_temp_0 WHERE id = 262

(f-spot:12550): GdkPixbuf-WARNING **: GdkPixbufLoader finalized without calling gdk_pixbuf_loader_close() - this is not allowed. You must explicitly end the data stream to the loader before dropping the last reference.
[Debug 12:51:51.461] open uri = file:///home/lnieves/Photos/2008/10/22/img_0275.jpg
[Debug 12:51:51.583] open uri = file:///home/lnieves/Photos/2008/10/22/img_0275.jpg
[Debug 12:51:51.584] open uri = file:///home/lnieves/Photos/2008/10/22/img_0275.jpg

(f-spot:12550): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(f-spot:12550): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.Net.ProtocolViolationException: Cannot send data when method is: GET
  at System.Net.HttpWebRequest.BeginGetRequestStream (System.AsyncCallback callback, System.Object state) [0x00000]
  at System.Net.HttpWebRequest.GetRequestStream () [0x00000]
  at FlickrNet.Flickr.DoGetResponse (System.String url, System.String variables) [0x00000]
  at FlickrNet.Flickr.GetResponse (System.Collections.Hashtable parameters, TimeSpan cacheTimeout) [0x00000]
  at FlickrNet.Flickr.GetResponseNoCache (System.Collections.Hashtable parameters) [0x00000]
  at FlickrNet.Flickr.AuthGetFrob () [0x00000]
  at FlickrRemote.TryWebLogin () [0x00000]
  at FSpotFlickrExport.FlickrExport.Login () [0x00000]
  at FSpotFlickrExport.FlickrExport.HandleClicked (System.Object sender, System.EventArgs args) [0x00000]
  at GLib.Signal.voidObjectCallback (IntPtr handle, IntPtr data) [0x00000]
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at GLib.Signal.voidObjectCallback(IntPtr handle, IntPtr data)
   at GLib.Signal.voidObjectCallback(IntPtr , IntPtr )
   at Gtk.Application.gtk_main()
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at Gnome.Program.Run()
   at FSpot.Driver.Main(System.String[] args)
[Debug 12:53:45.643] Finalizer called on FSpot.Category. Should be Disposed
[Debug 12:53:45.644] Finalizer called on FSpot.Category. Should be Disposed
[Debug 12:53:45.645] Finalizer called on FSpot.Category. Should be Disposed
[Debug 12:53:45.646] Finalizer called on FSpot.Utils.DisposableCache`2[System.String,Gdk.Pixbuf]. Should be Disposed
[Debug 12:53:45.652] Finalizer called on FSpot.Category. Should be Disposed
[Debug 12:53:45.652] Finalizer called on FSpot.Category. Should be Disposed
[Debug 12:53:45.653] Finalizer called on FSpot.Category. Should be Disposed
[Debug 12:53:45.653] Finalizer called on FSpot.Category. Should be Disposed
[Debug 12:53:45.655] Finalizer called on FSpot.Tag. Should be Disposed

If any other information or testing is required, Please let me know.

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Thank you for your bug report. This crash is due to a bug in libflickrnet, so I'm re-assinging. F-Spot seems to bundle it's own patched libflickrnet which doesn't have this problem, but F-Spot isn't built against this version.

FYI, there is a patch in the upstream issue tracker for libflickrnet to make Zoomr support work. This patch will fix the crasher you see, in particular, this bit of the patch will fix it:

@@ -443,7 +443,8 @@
             {

                 // This is needed in the Compact Framework

                 // See for more details: http://msdn2.microsoft.com/en-us/library/1afx2b0f.aspx

- req.GetRequestStream().Close();

+ if (req.Method=="POST")

+ req.GetRequestStream().Close();

             }

Changed in f-spot:
importance: Undecided → Medium
status: New → Triaged
Changed in libflickrnet:
assignee: nobody → chrisccoulson
status: Triaged → In Progress
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Austriaco - I have uploaded a new version of libflickrnet to my PPA (https://launchpad.net/~chrisccoulson/+archive). I would really appreciate it if you could try this package and tell me if it makes F-Spot work with Zooomr.

If it works ok, I will nominate this for a stable release update once Intrepid is released.

Thanks

Revision history for this message
Austriaco (lanieves) wrote :

Hi Chris,

Thanks, your patched packaged worked for me, at least on my first test exporting only one picture. f-spot was authorized and the the picture was sent to Zooomr as expected.

The only complaint I have now is that tags are exported as one long string instead of as several different words, for instance, if I had tagged my picture with "heidelberg", "germany", the exported picture will appear on Zooomr tagged as "heidelberg germany", which is not the intended behavior. However, I guess this should be filed as a separate bug?

Revision history for this message
Austriaco (lanieves) wrote :

Sorry, about the tag thing, maybe I do have the long "heidelberg germany" tags in my original pictures as stored in the database, so please, ignore that complaint. I guess I have to input the tags separated by "commas" instead of "spaces" when importing the pictures into f-spot?

Revision history for this message
Jorge Gallegos (thekad) wrote :

Mmh, I believe zooomr uses commas when entering your tags, however, that should be seamless from f-spot's pov. That still should be logged as diff bug though :)

Revision history for this message
João Almeida (t3mujin) wrote :

The newer version of libflickrnet resolved the crash, but now whenever I click the button to authorize F-Spot in Zooomr I keep getting this error:

"User not logged in / Insufficient permissions"

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Here's a debdiff for Jaunty. The patch is taken from http://www.codeplex.com/FlickrNet/WorkItem/View.aspx?WorkItemId=2459, and is already in the version of libflickrnet which F-Spot ships with.

Changed in libflickrnet:
status: In Progress → Triaged
Revision history for this message
Jorge Gallegos (thekad) wrote :

can this be backported to Intrepid? I guess pushing this patch to the following version should be fairly easy. Right now 0.5.0.3-0ubuntu4 presents the same original issue.

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

I've forwarded this bug and patch to Debian too

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libflickrnet - 25277-6ubuntu4

---------------
libflickrnet (25277-6ubuntu4) jaunty; urgency=low

  * debian/patches/unbreak-zooomr-support.diff:
    - Fix F-Spot crash and properly support exporting to
      Zooomr (LP: #288070)

 -- Chris Coulson <email address hidden> Sun, 11 Jan 2009 19:09:51 +0000

Changed in libflickrnet:
status: Triaged → Fix Released
Changed in libflickrnet:
status: Unknown → Fix 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.