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 541140 - Export to PicasaWeb fails when account has no existing albums
Export to PicasaWeb fails when account has no existing albums
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: General
0.4.x
Other All
: Normal critical
: ---
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2008-07-01 21:47 UTC by Åsmund Hjulstad
Modified: 2008-07-02 13:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
picasa-no-album.patch (954 bytes, patch)
2008-07-02 12:26 UTC, Maxxer
committed Details | Review

Description Åsmund Hjulstad 2008-07-01 21:47:10 UTC
Steps to reproduce:
1. Create PicasaWeb account (without any albums)
2. Select photo in F-Spot, select Photo | Export | PicasaWeb
3. Enter username and password in gallery dialog
4. F-Spot crashes
(After creating an album through PicasaWeb web interface, everything works OK.)

Stack trace:

(f-spot:12222): 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.
GoogleAccount.Connect()
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.ArgumentOutOfRangeException: Index is less than 0 or more than or equal to the list count.
Parameter name: index
0
  at System.Collections.ArrayList.get_Item (Int32 index) [0x00000] 
  at System.Collections.Specialized.NameObjectCollectionBase.BaseGet (Int32 index) [0x00000] 
  at Mono.Google.Picasa.PicasaAlbumCollection.get_Item (Int32 index) [0x00000] 
  at FSpotGoogleExport.GoogleExport.HandleAlbumOptionMenuChanged (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.OptionMenu.gtk_option_menu_set_menu(IntPtr , IntPtr )
   at Gtk.OptionMenu.gtk_option_menu_set_menu(IntPtr , IntPtr )
   at Gtk.OptionMenu.set_Menu(Gtk.Widget value)
   at FSpotGoogleExport.GoogleExport.PopulateAlbumOptionMenu(Mono.Google.Picasa.PicasaWeb picasa)
   at FSpotGoogleExport.GoogleExport.Connect(FSpotGoogleExport.GoogleAccount selected, System.String token, System.String text)
   at FSpotGoogleExport.GoogleExport.Connect(FSpotGoogleExport.GoogleAccount selected)
   at FSpotGoogleExport.GoogleExport.Connect()
   at FSpotGoogleExport.GoogleExport.Run(IBrowsableCollection selection)
   at FSpot.Extensions.ExportMenuItemNode.OnActivated(System.Object o, System.EventArgs e)
   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)


Other information:
Comment 1 Maxxer 2008-07-02 12:26:57 UTC
Created attachment 113851 [details] [review]
picasa-no-album.patch

this should fix
Comment 2 Stephane Delcroix 2008-07-02 13:21:49 UTC
commit if it works
Comment 3 Maxxer 2008-07-02 13:44:24 UTC
fixed in r4138