Hi,

I have been able to reproduce and find the cause of this bug.  The bug
is triggered when the file ".config/user-dirs.dirs" is not present.
Simply move that file away and you'll be able to reproduce this.
Running xdg-user-dirs-update might or might not fix the problem, some
variables might not get set in that case, and if there's one variable
missing, the privacy pane fails.

The bug is actually in the activity-log-manager package.  The file src
/files-widget.vala, lines 264-272, says:

  defined_dirs = new HashMap<string, UserDirectory>(str_hash, str_equal);
  defined_dirs.set(Environment.get_user_special_dir(UserDirectory.DESKTOP), 
UserDirectory.DESKTOP);
  defined_dirs.set(Environment.get_user_special_dir(UserDirectory.DOCUMENTS), 
UserDirectory.DOCUMENTS);
  defined_dirs.set(Environment.get_user_special_dir(UserDirectory.DOWNLOAD), 
UserDirectory.DOWNLOAD);
  defined_dirs.set(Environment.get_user_special_dir(UserDirectory.MUSIC), 
UserDirectory.MUSIC);
  defined_dirs.set(Environment.get_user_special_dir(UserDirectory.PICTURES), 
UserDirectory.PICTURES);
  
defined_dirs.set(Environment.get_user_special_dir(UserDirectory.PUBLIC_SHARE), 
UserDirectory.PUBLIC_SHARE);
  defined_dirs.set(Environment.get_user_special_dir(UserDirectory.TEMPLATES), 
UserDirectory.TEMPLATES);
  defined_dirs.set(Environment.get_user_special_dir(UserDirectory.VIDEOS), 
UserDirectory.VIDEOS);

which gets translated into calls like this one, for example:

        _tmp42_ = self->priv->defined_dirs;
        _tmp43_ = g_get_user_special_dir (G_USER_DIRECTORY_DOWNLOAD);
        gee_abstract_map_set ((GeeAbstractMap*) _tmp42_, _tmp43_, 
GINT_TO_POINTER (G_USER_DIRECTORY_DOWNLOAD));

If the userdir file is not present or the variable not defined in it,
the call to g_get_user_special_dir will return null (documented
behaviour), which will make gee_abstract_map_set fail.

The code needs to be reworked to take into account that these dirs might
not be set.


** Package changed: gnome-control-center (Ubuntu) => activity-log-manager 
(Ubuntu)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-control-center in Ubuntu.
https://bugs.launchpad.net/bugs/1024057

Title:
  gnome control center crashed when attempting to open privacy dialogue

Status in “activity-log-manager” package in Ubuntu:
  Confirmed

Bug description:
  When I attempt to open "privacy" in the gnome-control-center (system
  settings), system settings crashes with the following error message.
  All other functions within system settings work:

  magnus@1204:~$ gnome-control-center

  (gnome-control-center:11858): Gtk-CRITICAL **: gtk_box_pack: assertion 
`gtk_widget_get_parent (child) == NULL' failed
  Segmentation fault (core dumped)

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: gnome-control-center 1:3.4.2-0ubuntu0.3
  ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
  Uname: Linux 3.2.0-26-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.0.1-0ubuntu8
  Architecture: amd64
  Date: Thu Jul 12 20:49:23 2012
  ExecutablePath: /usr/bin/gnome-control-center
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 
(20120425)
  ProcEnviron:
   SHELL=/bin/bash
   PATH=(custom, no user)
   LANGUAGE=en_GB:en
   LANG=en_GB.UTF-8
  SourcePackage: gnome-control-center
  UpgradeStatus: No upgrade log present (probably fresh install)
  usr_lib_gnome-control-center:
   activity-log-manager-control-center 0.9.4-0ubuntu3
   deja-dup                            22.0-0ubuntu2
   gnome-bluetooth                     3.2.2-0ubuntu5
   indicator-datetime                  0.3.94-0ubuntu2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/activity-log-manager/+bug/1024057/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to