GNOME Bugzilla – Bug 319694
deskbar-applet-0.8.2 numerous _parse_search errors/crash while unused
Last modified: 2005-11-08 20:53:49 UTC
Version details: 0.8.2 Distribution/Version: Gentoo 2005.1 2.6.13-ck8 AMD64 I had deskbar-applet-0.8.2 crash even though I wasn't doing a search at the time and hadn't for over an hour. It was just sitting on the panel, then I got the dialog indicating it had quit unexpectedly. I re-ran it through the terminal, and have had the following error show up 92 times (so far): Error:_parse_search:No way to extract a <SEARCH field: updateCheckDays=1 After starting it through the terminal, I have not used it to see if I could duplicate the crash. So far, it hasn't crashed again, but it should not be generating the above error over and over if I'm not doing any searches. Here's the full console output, minus the errors which all appear at the end: Running installed deskbar, using normal PYTHONPATH Data Dir: /usr/share/deskbar-applet Handlers Dir: /usr/lib64/deskbar-applet/handlers Binding Global shortcut <Alt>F3 to focus the deskbar Loading module 'Address Book' from file /usr/lib64/deskbar-applet/handlers/evolution.py. Loading module 'Live Google search' from file /usr/lib64/deskbar-applet/handlers/google-live.py. Loading module 'Search for disks and network places' from file /usr/lib64/deskbar-applet/handlers/volumes.py. Loading module 'File Search' from file /usr/lib64/deskbar-applet/handlers/programs.py. Loading module 'Dictionary Lookup' from file /usr/lib64/deskbar-applet/handlers/programs.py. Loading module 'Desktop Programs' from file /usr/lib64/deskbar-applet/handlers/programs.py. Loading module 'Files' from file /usr/lib64/deskbar-applet/handlers/files.py. Loading module 'Email Addresses' from file /usr/lib64/deskbar-applet/handlers/email_address.py. Loading module 'File Manager bookmarks' from file /usr/lib64/deskbar-applet/handlers/gtkbookmarks.py. Loading module 'Live Beagle Queries' from file /usr/lib64/deskbar-applet/handlers/beagle-live.py. *** *** The file /usr/lib64/deskbar-applet/handlers/epiphany.py (EpiphanyBookmarksHandler) decided to not load itself: Epiphany is not your preferred browser, not using it. *** Loading module 'Search Engines' from file /usr/lib64/deskbar-applet/handlers/mozilla.py. Loading module 'Bookmarks' from file /usr/lib64/deskbar-applet/handlers/mozilla.py. *** *** The file /usr/lib64/deskbar-applet/handlers/galago.py (GalagoHandler) decided to not load itself: Waiting for python bindings of galago. Should allow to send IM by typing name. *** Loading module 'Beagle' from file /usr/lib64/deskbar-applet/handlers/beagle.py. *** *** The file /usr/lib64/deskbar-applet/handlers/galeon.py (GaleonBookmarksHandler) decided to not load itself: Galeon is not your preferred browser, not using it. *** Loading module 'Command line programs' from file /usr/lib64/deskbar-applet/handlers/pathprograms.py. Loading module 'Folders' from file /usr/lib64/deskbar-applet/handlers/directories.py. Loading module 'Web Addresses' from file /usr/lib64/deskbar-applet/handlers/web_address.py. Initializing Search for disks and network places Initializing Desktop Programs Error:load_icon:Icon Load Error:Failed to open file '/usr/share/icons/hicolor/scalable/apps/bmp.svg': No such file or directory (Icon 'bmp.png' not present in theme) Error:load_icon:Icon Load Error:Icon 'gnome-alsamixer/gnome-alsamixer-icon' not present in theme (Icon 'gnome-alsamixer/gnome-alsamixer-icon.png' not present in theme) Error:load_icon:Icon Load Error:Icon 'kmenu' not present in theme (Icon 'kmenu' not present in theme) Error:load_icon:Icon Load Error:Failed to open file '/usr/share/pixmaps/nautilus-launch-icon.png': No such file or directory (Icon '/usr/share/pixmaps/nautilus-launch-icon.png' not present in theme) Error:_scan_desktop_files:File Error:/usr/share/applications/sun_java-jre.desktop:No section: 'Desktop Entry' Error:load_icon:Icon Load Error:Icon 'gnome-warning' not present in theme (Icon 'gnome-warning.png' not present in theme) Error:load_icon:Icon Load Error:Icon 'mini/xmms_mini' not present in theme (Icon 'mini/xmms_mini.xpm' not present in theme) Error:load_icon:Icon Load Error:Icon 'CastPodder' not present in theme (Icon 'CastPodder.png' not present in theme) Error:_scan_desktop_files:File Error:/usr/share/applications/gnome-schedule.desktop:No option 'name' in section: 'Desktop Entry' Error:load_icon:Icon Load Error:Icon 'vmware' not present in theme (Icon 'vmware.png' not present in theme) Error:load_icon:Icon Load Error:Icon 'limewire' not present in theme (Icon 'limewire.png' not present in theme) Initializing Files Initializing File Manager bookmarks Initializing Search Engines Error:_parse_search:No way to extract a <SEARCH field: updateCheckDays=1 Initializing Bookmarks Initializing Beagle Initializing Command line programs Initializing Folders Initializing Web Addresses Initializing Address Book Initializing Live Google search Initializing Live Beagle Queries
The fact that you see 92 parse errors leads me to beleive deskbar thinks that the bookmarks/search engines are changing constantly. The parse error by itself isn't really a problem. My guess is that file monitoring is not going well, are you using fam, or gamin inotify/polling ? Can you try to remove all calls to watcher in mozilla.py, it should look like: 83 #———»———if not hasattr(self, 'watcher'): 84 #———»———»———self.watcher = DirWatcher() 85 #———»———»———self.watcher.connect('changed', lambda watcher, f: self._pa« 86 »———»——— 87 #———»———self.watcher.add(smart_dirs) 88 »———»———self._parse_search_engines(smart_dirs) 89 »———»——— 90 »———def _parse_search_engines(self, smart_dirs):»———»——— 91 »———»———self._smart_bookmarks = MozillaSmartBookmarksDirParser(self, sm« 92 93 #———def stop(self): 94 #———»———self.watcher.remove_all()
I'm using gamin with inotify. I will remove the calls to watcher but I won't have time for this until either late tonight or tomorrow morning (EST/EDT). I'm up to 304 errors now, but the applet has not crashed again. I am running two versions of Firefox (but not simultaneously), 1.5 beta 2 and 1.0.7, the latter being a 32-bit binary so I can use Flash and other 32-bit plugins (thanks a lot Macromedia for such splendid AMD 64-bit support...). During the time this was running I switched between them 2-3 times so that might confuse things slightly -- but I didn't switch 304 times!
There is nothing urgent here, please take your time. I would also be interested to see how often does mozilla/firefox write the bookmarks/search engines files, to do this just try to see when _parse_search_engines is called in reaction to firefox actions, like close, add bookmark, or next/back, link click, etc.
Closing this, because it does not seems to be an issue anymore. I wrote a new parser which should remove the errors, too.