Re: [Bug 59392] Re: update-desktop-database segfault

2008-03-03 Thread Bill Wilken
Take a look at the script fix suggested on the Ubuntu site.  It worked
for me.

BIll


On Mon, 2008-03-03 at 03:52 +, Ozzyprv wrote:
 How can I get the fix? I think I am getting the same error message.


-- 
update-desktop-database segfault
https://bugs.launchpad.net/bugs/59392
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 59392] Re: update-desktop-database segfault

2008-01-03 Thread Bill Wilken
Paul,

Very interesting  I found one file without a [Desktop Entry] --
one for my NVIDA graphics card that I had to add using restricted
drivers for a GeForce FX5500 (which, no matter what I try, does not
work as well under Ubuntu as under Windows -- perhaps because Ubuntu
lacks drivers for my Samsung SyncMaster 170T)

Bill


On Thu, 2008-01-03 at 05:36 +, Paul Dufresne wrote:
 Hi again Bill!
 You could try:
 grep -r -L \[Desktop Entry\] /usr/share/applications/*|grep .desktop
 This is supposed to show .desktop files that don't contain [Desktop Entry] 
 which would in my
 opinion be the cause of your bug.
 
 If you find zero, it probably means I made some bad assumption.
 If you find one or two, then they are likely to be the cause of your problem. 
 Please attach it (or them).
 If you find a lot, then, again I must have make an other bad assumption.


-- 
update-desktop-database segfault
https://bugs.launchpad.net/bugs/59392
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 59392] Re: update-desktop-database segfault -- SOLUTION!!!!

2008-01-03 Thread Bill Wilken
Paul,

After I sent my last message, I removed two completely empty
placeholders for my NVDIA card from /usr/share/applications (plus
discarded a small number of dead entries for applications which no
longer exist on my system) and as they say in Gay Paris, Voila!, no
more segmentation faults when attempting to add/update/remove
applications.

Thanks for your help.  I should have thought to inspect the contents of
my desktop directory entries.  Nonetheless, I suspect it would be
helpful if a good coder would include some if-then logic that tests
for incomplete/damaged desktop entries rather than allowing Ubuntu to
generate a segmentation fault.

Bill

On Thu, 2008-01-03 at 05:36 +, Paul Dufresne wrote:
 Hi again Bill!
 You could try:
 grep -r -L \[Desktop Entry\] /usr/share/applications/*|grep .desktop
 This is supposed to show .desktop files that don't contain [Desktop Entry] 
 which would in my
 opinion be the cause of your bug.
 
 If you find zero, it probably means I made some bad assumption.
 If you find one or two, then they are likely to be the cause of your problem. 
 Please attach it (or them).
 If you find a lot, then, again I must have make an other bad assumption.


-- 
update-desktop-database segfault
https://bugs.launchpad.net/bugs/59392
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 59392] Re: update-desktop-database segfault

2008-01-02 Thread Bill Wilken
Paul,

No can do.  Running this command produces a segmentation fault ...
exactly the same problem that I encounter when attempting to remove Yelp
or OpenOffice.

Bill


On Wed, 2008-01-02 at 22:27 +, Paul Dufresne wrote:
 Bill, could you in a terminal issue:
 update-desktop-database -v 2~/update-desktop-database.out
 and then attach the resulting update-desktop-database.out file in your home 
 directory to this report?
 
 
 ** Bug watch added: Debian Bug tracker #396439
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=396439
 
 ** Also affects: desktop-file-utils via
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=396439
Importance: Unknown
Status: Unknown


-- 
update-desktop-database segfault
https://bugs.launchpad.net/bugs/59392
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 59392] Re: update-desktop-database segfault

2008-01-02 Thread Bill Wilken
Paul,

Oh yea, get the group_name error you describe below.  For whatever
reason, the apps that are associated with this problem are OpenOffice,
Java runtime, and Yelp.  Any installation which touches these apps
provokes the error and leads to a 139 exit.  None of these apps can be
removed or reconfigured.

Bill

On Wed, 2008-01-02 at 22:13 +, Paul Dufresne wrote:
 Hi Bill!
 Do you have g_key_file_get_string_list: assertion `group_name != NULL' failed 
 too?
 If not, I would probably consider it a different bug, that should be reported 
 in a new bug report.
 In that case, you may want to explore in GUI /var/crash, and 'double-'click 
 the crash file to be guided in reporting bug.
 
 Well, while trying to learn what is update-desktop-database, I extracted code 
 I believe to be the culprit (seems the same in Gutsy and Hardy):
 static void
 process_desktop_file (const char  *desktop_file, 
   const char  *name,
   GError **error)
 {
   GError *load_error; 
   GKeyFile *keyfile;
   char **mime_types; 
   int i;
 
   keyfile = g_key_file_new ();
 
   load_error = NULL;
   g_key_file_load_from_file (keyfile, desktop_file,
  G_KEY_FILE_NONE, load_error);
 
   if (load_error != NULL) 
 {
   g_propagate_error (error, load_error);
   return;
 }
 
   mime_types = g_key_file_get_string_list (keyfile,
g_key_file_get_start_group 
 (keyfile),
MimeType, NULL, load_error);
 
   g_key_file_free (keyfile);
 
 As I have no clue at all what that code does, I'll need a bit of time to
 undestand it. ;-)
 
 That said, when I do:
 sudo apt-get remove yelp
 on my Hardy system, I get no error at all.


-- 
update-desktop-database segfault
https://bugs.launchpad.net/bugs/59392
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 59392] Re: update-desktop-database segfault

2008-01-02 Thread Bill Wilken
Paul,

I've attached the ls.out file.  You'll note some links between
OpenOffice as originally installed by Ubuntu and an aborted effort this
afternoon to download and install the latest OpenOffice code from
OpenOffice.org  Just haven't had time to clean things up.

Bill


On Wed, 2008-01-02 at 22:34 +, Paul Dufresne wrote:
 Oh Bill, could you also do:
  ls -l /usr/share/applications/*.desktop  ~/ls.out
 and attach the resulting ls.out to this report? Please!
 
 I suspect a file among that to not be to root:root, but as I have no
 idea what I am doing, well, ...
 


-rw-r--r-- 1 root root  8839 2007-10-24 10:07 
/usr/share/applications/accessibility-keyboard.desktop
-rw-r--r-- 1 root root  1220 2007-09-21 06:19 
/usr/share/applications/AdobeReader.desktop
-rw-r--r-- 1 root root  2399 2007-05-14 05:38 
/usr/share/applications/alacarte.desktop
-rw-r--r-- 1 root root   392 2007-10-06 08:31 
/usr/share/applications/apport-gtk-mime.desktop
-rw-r--r-- 1 root root 11995 2007-10-24 10:07 
/usr/share/applications/at-properties.desktop
-rw-r--r-- 1 root root   695 2007-06-25 10:09 
/usr/share/applications/audacity.desktop
-rwxr-xr-x 1 root root   320 2007-07-27 17:03 
/usr/share/applications/automatix2.desktop
-rw-r--r-- 1 root root  8296 2007-09-18 12:16 
/usr/share/applications/baobab.desktop
-rw-r--r-- 1 root root   489 2007-09-28 07:00 
/usr/share/applications/bluetooth-analyzer.desktop
-rw-r--r-- 1 root root  1555 2007-09-28 07:00 
/usr/share/applications/bluetooth-properties.desktop
-rw-r--r-- 1 root root  9149 2007-04-27 10:56 
/usr/share/applications/bug-buddy.desktop
-rw-r--r-- 1 root root  9172 2007-09-19 08:48 
/usr/share/applications/cddb-slave.desktop
-rw-r--r-- 1 root root  8332 2007-10-24 10:07 
/usr/share/applications/default-applications.desktop
-rw-r--r-- 1 root root  1445 2007-10-12 20:21 
/usr/share/applications/displayconfig-gtk.desktop
-rw-r--r-- 1 root root  7028 2007-10-24 10:07 
/usr/share/applications/display-properties.desktop
-rw-r--r-- 1 root root  2405 2007-05-18 06:55 
/usr/share/applications/djvulibre-djview3.desktop
-rw-r--r-- 1 root root  9751 2007-09-30 07:46 
/usr/share/applications/ekiga.desktop
-rw-r--r-- 1 root root  5979 2007-10-19 15:08 
/usr/share/applications/eog.desktop
-rw-r--r-- 1 root root 10112 2007-10-22 12:04 
/usr/share/applications/evince.desktop
-rw-r--r-- 1 root root  3987 2007-10-23 14:59 
/usr/share/applications/evolution-2.2.desktop
-rw-r--r-- 1 root root  8349 2007-10-23 14:58 
/usr/share/applications/evolution.desktop
-rw-r--r-- 1 root root  1547 2007-10-23 14:59 
/usr/share/applications/evolution-mail.desktop
-rw-r--r-- 1 root root 11754 2007-10-19 15:37 
/usr/share/applications/file-roller.desktop
-rw-r--r-- 1 root root   508 2007-10-09 06:45 
/usr/share/applications/firefox-3.0.desktop
-rw-r--r-- 1 root root  2509 2007-12-04 05:21 
/usr/share/applications/firefox.desktop
-rw-r--r-- 1 root root  5322 2007-10-19 15:31 
/usr/share/applications/gcalctool.desktop
-rw-r--r-- 1 root root 10100 2007-09-18 06:37 
/usr/share/applications/gconf-editor.desktop
-rw-r--r-- 1 root root  2272 2007-10-06 08:43 
/usr/share/applications/gdebi.desktop
-rw-r--r-- 1 root root  7141 2007-10-22 11:54 
/usr/share/applications/gedit.desktop
-rw-r--r-- 1 root root  5899 2007-09-18 12:16 
/usr/share/applications/gfloppy.desktop
-rw-r--r-- 1 root root  4692 2007-10-05 14:10 
/usr/share/applications/gimp.desktop
-rw-r--r-- 1 root root  2346 2007-09-12 18:21 
/usr/share/applications/gksu.desktop
-rw-r--r-- 1 root root  2740 2007-10-19 16:13 
/usr/share/applications/gmenu-simple-editor.desktop
-rw-r--r-- 1 root root  6407 2007-10-19 16:33 
/usr/share/applications/gnome-about.desktop
-rw-r--r-- 1 root root  5983 2007-10-24 10:07 
/usr/share/applications/gnome-about-me.desktop
-rw-r--r-- 1 root root  4194 2007-10-24 10:07 
/usr/share/applications/gnome-appearance-properties.desktop
-rw-r--r-- 1 root root  1588 2007-10-05 04:03 
/usr/share/applications/gnome-app-install.desktop
-rw-r--r-- 1 root root  1565 2007-10-05 04:03 
/usr/share/applications/gnome-app-install-xfce.desktop
-rw-r--r-- 1 root root   641 2007-09-20 12:22 
/usr/share/applications/gnomebaker.desktop
-rw-r--r-- 1 root root   485 2007-06-14 11:07 
/usr/share/applications/gnome-btdownload.desktop
-rw-r--r-- 1 root root  6038 2007-10-24 10:07 
/usr/share/applications/gnomecc.desktop
-rw-r--r-- 1 root root  5484 2007-09-19 08:48 
/usr/share/applications/gnome-cd.desktop
-rw-r--r-- 1 root root  7253 2007-09-18 12:16 
/usr/share/applications/gnome-dictionary.desktop
-rw-r--r-- 1 root root  7152 2007-10-24 10:07 
/usr/share/applications/gnome-font-viewer.desktop
-rw-r--r-- 1 root root  6804 2007-09-20 09:40 
/usr/share/applications/gnome-keyring-manager.desktop
-rw-r--r-- 1 root root  4761 2007-09-18 06:44 
/usr/share/applications/gnome-nettool.desktop
-rw-r--r-- 1 root root  7480 2007-10-24 10:07 
/usr/share/applications/gnome-network-preferences.desktop
-rw-r--r-- 1 root root   474 2007-10-22 11:53