GNOME Bugzilla – Bug 710211
gnome-shell crashes when searching for application with corrupt .desktop file
Last modified: 2014-06-21 21:02:32 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.
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.
*** Bug 710648 has been marked as a duplicate of this bug. ***
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.
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.
It should have been 3.8 from Fedora 19 (or maybe 3.10 from F20 alpha).
Thanks. Can you still reproduce this with the latest 3.10 or 3.12 version of gnome-shell? Because I cannot with 3.13. :-/
I tried with 3.10 and cannot reproduce this. Seems fixed.
Closing then, thanks!