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 527023 - crash in Deskbar: freshly installed beagle...
crash in Deskbar: freshly installed beagle...
Status: RESOLVED FIXED
Product: deskbar-applet
Classification: Deprecated
Component: Modules
2.22.x
Other All
: High critical
: ---
Assigned To: Sebastian Pölsterl
Deskbar Applet Maintainer(s)
: 527228 527254 527255 528963 529156 530010 530015 530024 530101 530106 530152 530631 530642 531171 531172 532489 532490 532491 532743 532872 532877 532878 532879 533504 533994 534728 535212 535220 535709 536149 536152 536609 536736 536737 536758 537479 538067 538153 539877 539878 542111 547577 551076 556480 556759 558511 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-04-08 21:31 UTC by arne
Modified: 2008-11-01 12:26 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description arne 2008-04-08 21:31:14 UTC
What were you doing when the application crashed?
freshly installed beagle, first try to use beagle-live and typing some characters into the deskbar.
beagled was manually started and was still indexing while I did this.
The "normal" beagle-search-frontend was working, no crashes there.


Distribution: Debian lenny/sid
Gnome Release: 2.22.0 2008-03-14 (Debian)
BugBuddy Version: 2.22.0

System: Linux 2.6.24-1-686 #1 SMP Mon Feb 11 14:37:45 UTC 2008 i686
X Vendor: The X.Org Foundation
X Vendor Release: 10300000
Selinux: No
Accessibility: Disabled
GTK+ Theme: Clearlooks
Icon Theme: gnome

Memory status: size: 0 vsize: 0 resident: 0 share: 0 rss: 0 rss_rlim: 0
CPU usage: start_time: 0 rtime: 0 utime: 0 stime: 0 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 0



----------- .xsession-errors (133746 sec old) ---------------------
err:shell:SHGetFileInfoW pidl is null!
fixme:shell:IShellView_fnSaveViewState (0x1a9170) stub
fixme:richedit:RichEditWndProc_common EM_SETBIDIOPTIONS: stub
fixme:richedit:RichEditWndProc_common EM_SETBIDIOPTIONS: stub
fixme:richedit:RichEditWndProc_common EM_SETBIDIOPTIONS: stub
fixme:richedit:RichEditWndProc_common EM_SETBIDIOPTIONS: stub
fixme:richedit:RichEditWndProc_common EM_SETEDITSTYLE: stub
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
fixme:psdrv:PSDRV_DeviceCapabilities DC_BINADJUST: stub.
fixme:dc:SetVirtualResolution (0x5a98 000026bc 000036d1 000000d1 00000129): stub!
fixme:dc:GetTransform stub: don't know what to do for code 204
fixme:dc:GetTransform stub: don't know what to do for code 204
...Too much output, ignoring rest...
--------------------------------------------------
Traceback (most recent call last):
  • File "/usr/lib/deskbar-applet/modules-2.20-compatible/beagle-live.py", line 361 in _on_snippet_received
    self._on_hit_added(query, container, qstring, qmax)
  • File "/usr/lib/deskbar-applet/modules-2.20-compatible/beagle-live.py", line 393 in _on_hit_added
    self.counter[qstring][hit.get_type()] += 1
KeyError: 'File'

Comment 1 André Klapper 2008-04-10 07:54:24 UTC
*** Bug 527228 has been marked as a duplicate of this bug. ***
Comment 2 André Klapper 2008-04-10 07:54:26 UTC
*** Bug 527254 has been marked as a duplicate of this bug. ***
Comment 3 André Klapper 2008-04-10 07:54:28 UTC
*** Bug 527255 has been marked as a duplicate of this bug. ***
Comment 4 arne 2008-04-12 11:58:02 UTC
The reason of the bug is the following:

The bug occurs (at least) if you find a directory without finding a "normal" file before.

    def _create_match(self, query, hit, qstring, snippet=None):
        hit_type = hit.get_type()
        
        # Directories are Files in beagle context
        if hit_type == "File":
            filetype = hit.get_properties("beagle:FileType")
            if filetype != None and filetype[0] == 'directory':
                hit_type = "Directory"

Here you change hit_type, if you encounter a directory.
                      
[snip]
        self.__counter_lock.acquire()
        # Create new counter for query and type 
        if not hit_type in self._counter[qstring]:
            self._counter[qstring][hit_type] = 0  # hit-type == "directory"
        # Increase counter
        self._counter[qstring][hit.get_type()] += 1 # hit.get_type() == "File"
        # KeyError: 'File'

To correct this, simply replace hit.get_type() with hit_type.
Comment 5 Gianluca Borello 2008-04-20 08:17:43 UTC
*** Bug 528963 has been marked as a duplicate of this bug. ***
Comment 6 Gianluca Borello 2008-04-21 12:03:28 UTC
*** Bug 529156 has been marked as a duplicate of this bug. ***
Comment 7 Sebastian Pölsterl 2008-04-26 21:10:20 UTC
*** Bug 530015 has been marked as a duplicate of this bug. ***
Comment 8 Sebastian Pölsterl 2008-04-26 21:10:36 UTC
*** Bug 530024 has been marked as a duplicate of this bug. ***
Comment 9 Sebastian Pölsterl 2008-04-26 21:27:20 UTC
*** Bug 530101 has been marked as a duplicate of this bug. ***
Comment 10 Sebastian Pölsterl 2008-04-26 21:27:35 UTC
*** Bug 530106 has been marked as a duplicate of this bug. ***
Comment 11 Sebastian Pölsterl 2008-04-26 21:30:48 UTC
*** Bug 530010 has been marked as a duplicate of this bug. ***
Comment 12 Gianluca Borello 2008-04-27 11:21:29 UTC
*** Bug 530152 has been marked as a duplicate of this bug. ***
Comment 13 Sebastian Pölsterl 2008-04-29 09:14:19 UTC
Thanks a lot Arne.

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 14 Gianluca Borello 2008-04-30 09:49:56 UTC
*** Bug 530631 has been marked as a duplicate of this bug. ***
Comment 15 Gianluca Borello 2008-04-30 09:50:04 UTC
*** Bug 530642 has been marked as a duplicate of this bug. ***
Comment 16 Gianluca Borello 2008-05-03 09:13:59 UTC
*** Bug 531172 has been marked as a duplicate of this bug. ***
Comment 17 Gianluca Borello 2008-05-03 09:14:05 UTC
*** Bug 531171 has been marked as a duplicate of this bug. ***
Comment 18 Gianluca Borello 2008-05-10 17:32:36 UTC
*** Bug 532489 has been marked as a duplicate of this bug. ***
Comment 19 Gianluca Borello 2008-05-10 17:32:43 UTC
*** Bug 532490 has been marked as a duplicate of this bug. ***
Comment 20 Gianluca Borello 2008-05-10 17:32:50 UTC
*** Bug 532491 has been marked as a duplicate of this bug. ***
Comment 21 Sebastian Pölsterl 2008-05-12 17:24:15 UTC
*** Bug 532743 has been marked as a duplicate of this bug. ***
Comment 22 Gianluca Borello 2008-05-13 11:59:12 UTC
*** Bug 532872 has been marked as a duplicate of this bug. ***
Comment 23 Gianluca Borello 2008-05-13 11:59:18 UTC
*** Bug 532877 has been marked as a duplicate of this bug. ***
Comment 24 Gianluca Borello 2008-05-13 11:59:23 UTC
*** Bug 532878 has been marked as a duplicate of this bug. ***
Comment 25 Gianluca Borello 2008-05-13 11:59:29 UTC
*** Bug 532879 has been marked as a duplicate of this bug. ***
Comment 26 Gianluca Borello 2008-05-17 09:12:44 UTC
*** Bug 533504 has been marked as a duplicate of this bug. ***
Comment 27 Gianluca Borello 2008-05-20 11:34:28 UTC
*** Bug 533994 has been marked as a duplicate of this bug. ***
Comment 28 Sebastian Pölsterl 2008-05-26 21:17:12 UTC
*** Bug 534728 has been marked as a duplicate of this bug. ***
Comment 29 Sebastian Pölsterl 2008-05-28 12:06:25 UTC
*** Bug 535212 has been marked as a duplicate of this bug. ***
Comment 30 Sebastian Pölsterl 2008-05-28 12:06:49 UTC
*** Bug 535220 has been marked as a duplicate of this bug. ***
Comment 31 Sebastian Pölsterl 2008-05-30 10:38:23 UTC
*** Bug 535709 has been marked as a duplicate of this bug. ***
Comment 32 Gianluca Borello 2008-06-02 09:33:16 UTC
*** Bug 536152 has been marked as a duplicate of this bug. ***
Comment 33 Gianluca Borello 2008-06-02 09:33:24 UTC
*** Bug 536149 has been marked as a duplicate of this bug. ***
Comment 34 Gianluca Borello 2008-06-05 10:04:28 UTC
*** Bug 536758 has been marked as a duplicate of this bug. ***
Comment 35 Gianluca Borello 2008-06-05 10:04:28 UTC
*** Bug 536737 has been marked as a duplicate of this bug. ***
Comment 36 Gianluca Borello 2008-06-05 10:04:29 UTC
*** Bug 536736 has been marked as a duplicate of this bug. ***
Comment 37 Gianluca Borello 2008-06-05 10:04:33 UTC
*** Bug 536609 has been marked as a duplicate of this bug. ***
Comment 38 Gianluca Borello 2008-06-10 11:02:35 UTC
*** Bug 537479 has been marked as a duplicate of this bug. ***
Comment 39 Gianluca Borello 2008-06-13 17:40:12 UTC
*** Bug 538067 has been marked as a duplicate of this bug. ***
Comment 40 Gianluca Borello 2008-06-13 17:40:16 UTC
*** Bug 538153 has been marked as a duplicate of this bug. ***
Comment 41 Susana 2008-06-24 06:59:57 UTC
*** Bug 539877 has been marked as a duplicate of this bug. ***
Comment 42 Susana 2008-06-24 07:00:08 UTC
*** Bug 539878 has been marked as a duplicate of this bug. ***
Comment 43 Sebastian Pölsterl 2008-07-09 17:39:38 UTC
*** Bug 542111 has been marked as a duplicate of this bug. ***
Comment 44 Sebastian Pölsterl 2008-08-13 15:25:57 UTC
*** Bug 547577 has been marked as a duplicate of this bug. ***
Comment 45 Sebastian Pölsterl 2008-09-06 11:24:54 UTC
*** Bug 551076 has been marked as a duplicate of this bug. ***
Comment 46 Sebastian Pölsterl 2008-10-20 16:11:41 UTC
*** Bug 556480 has been marked as a duplicate of this bug. ***
Comment 47 Sebastian Pölsterl 2008-10-20 16:14:09 UTC
*** Bug 556759 has been marked as a duplicate of this bug. ***
Comment 48 Susana 2008-11-01 12:26:23 UTC
*** Bug 558511 has been marked as a duplicate of this bug. ***