Comment 7 for bug 774897

Revision history for this message
3vi1 (launchpad-net-eternaldusk) wrote :

I have/had the same problem - and think I figured out the problem, as well as identified another crash-bug:

The settings *are* saved... there's just a bad bug in the code that parses the backend settings. Notice that the schedule, encryption, files, and whether or not you've turned it on/off are saved properly. Only the backend resets to AmazonS3 (the first one in the list), when you re-enter the dialog.

The reason is: It doesn't set the dialog correctly if the file type is 'volume' instead of 'normal'.

In my case, I was trying to change it to use a folder on a locally mounted drive 'consus'. In the 'Backup Location' dropdown list, my mountpoint showed as one of the options, and I was selecting it there. My dropdown list looked something like this:

   AmazonS3
   Rackspace cloud Files
   -----------
   FTP
   SSH
   WebDAV
   Windows Share
   Custom Location
   ------------
   consus
   System Reserved
   ------------
   Local Folder

But,l after consus (and picking a folder on that drive), exiting and re-entering Backup would show AmazonS3 as the selection again.

So next I tried selecting 'Local Folder'. Which made the dialog immediately crash.

The reason it crashes here is because it's trying to do something with the folder path, but it doesn't default to a valid path (it's null).

When a user does this, they'll find they can't go back in and fix it - it crashes immediately after selecting 'Backup' from the control center::

   evil@saturn:/$ gnome-control-center
   (gnome-control-center:9712): Gtk-WARNING **: /build/buildd/gtk+3.0-3.0.9/./gtk/gtkwidget.c:6786: widget not within a GtkWindow
   Segmentation fault

The solution is to run dconf-editor and changed the org.gnome.deja-dup.file path to a real path ('/'). This fixes the crash.

Now... the WORKAROUND for the original problem everyone was having: Choose 'Custom Location', then put something in the Folder field, then switch to 'Local Folder'. Do *not* exit the Folder field if it is blank when you have Custom Location set, or you will end up with the same crash bug I outline above.