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 710211 - gnome-shell crashes when searching for application with corrupt .desktop file
gnome-shell crashes when searching for application with corrupt .desktop file
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: search
3.8.x
Other Linux
: Normal critical
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 710648 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-10-15 19:04 UTC by Christian Stadelmann
Modified: 2014-06-21 21:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
the corrupt .desktop file (261 bytes, application/octet-stream)
2013-10-15 19:04 UTC, Christian Stadelmann
Details

Description Christian Stadelmann 2013-10-15 19:04:26 UTC
Created attachment 257382 [details]
the corrupt .desktop file

Some hours ago I noticed that gnome-shell crashed every time I start searching for in overview mode starting with 'e'. Since there was no gnome-shell update for at least 5 days I thought my hand-written .desktop files may cause the crashes.

After some try-and-error I found out that changing (incorrect) line
~~~~~
Icon=/home/christian/localapps/eclipse java/icon.xpm
~~~~~
of my eclipse.desktop file in ~/.local/share/appliations to a valid path
~~~~~
Icon=/home/christian/localapps/eclipsejava/icon.xpm
~~~~~
gnome-shell stopped crashing. Note that the first path containing spaces does not exist on my system.

There are some crash infos from fedora retrace server for this bug:
https://retrace.fedoraproject.org/faf/reports/242247/
https://retrace.fedoraproject.org/faf/reports/187398/
https://retrace.fedoraproject.org/faf/reports/242257/
https://retrace.fedoraproject.org/faf/reports/239868/
https://retrace.fedoraproject.org/faf/reports/241482/
https://retrace.fedoraproject.org/faf/reports/242220/

Until now I was not able to reproduce this bug with any other .desktop file or application.
Comment 1 Christian Stadelmann 2013-10-15 19:11:09 UTC
Steps to reproduce:
1. Take a valid .desktop file
2. make the ICON property invalid by setting an invalid path
3. notify gnome-shell that this .desktop file has changed by
  A) copying this file to ~/.local/share/applications
  B) moving this file somewhere else and then moving it back to ~/.local/share/applications
  C) logging off and on again
  D) (not tested) restarting gnome-shell
4. search for the name given in the edited .desktop file

This reliably crashes or freezes (100% CPU on one core) gnome-shell for me.
Comment 2 Untersinger Remy 2013-10-25 14:38:23 UTC
*** Bug 710648 has been marked as a duplicate of this bug. ***
Comment 3 Vidar Braut Haarr 2014-01-30 11:21:51 UTC
It would be really useful if gnome-shell logged more when it encountered errors in .desktop files. I have the same problem, and sometimes it's not evident what exactly is the problem.
Comment 4 André Klapper 2014-06-18 17:07:20 UTC
Hi Christian, which gnome-shell version is/was this about?

I tried the steps in comment 1 and cannot reproduce any freeze for a non-existing path to the icon. Running gnome-shell 3.13.

"Eclipse Java" is found in the Applications grid and it's just missing its icon.
Comment 5 Christian Stadelmann 2014-06-21 14:27:57 UTC
It should have been 3.8 from Fedora 19 (or maybe 3.10 from F20 alpha).
Comment 6 André Klapper 2014-06-21 14:56:04 UTC
Thanks. Can you still reproduce this with the latest 3.10 or 3.12 version of gnome-shell? Because I cannot with 3.13. :-/
Comment 7 Christian Stadelmann 2014-06-21 20:55:57 UTC
I tried with 3.10 and cannot reproduce this. Seems fixed.
Comment 8 Florian Müllner 2014-06-21 21:02:32 UTC
Closing then, thanks!