GNOME Bugzilla – Bug 471672
crash in Deskbar: 'NoneType' object has no attribute 'get_actions'
Last modified: 2007-12-02 22:09:33 UTC
What were you doing when the application crashed? I just changed theme (darklooks -> clearlooks) and while it was loading I opened the deskbar; nothing else :) Distribution: Unknown Gnome Release: 2.19.6 2007-08-20 (Archlinux) BugBuddy Version: 2.19.91 System: Linux 2.6.22-ARCH #1 SMP PREEMPT Thu Aug 23 20:18:37 CEST 2007 i686 X Vendor: The X.Org Foundation X Vendor Release: 10300000 Selinux: No Accessibility: Enabled GTK+ Theme: Clearlooks Icon Theme: Tango 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 Traceback (most recent call last):
+ Trace 158942
cell.set_property ("has-more-actions", len(match.get_actions()) > 1)
*** Bug 471787 has been marked as a duplicate of this bug. ***
*** Bug 474367 has been marked as a duplicate of this bug. ***
*** Bug 477343 has been marked as a duplicate of this bug. ***
*** Bug 477344 has been marked as a duplicate of this bug. ***
*** Bug 477347 has been marked as a duplicate of this bug. ***
*** Bug 477348 has been marked as a duplicate of this bug. ***
Could you post a list of enabled modules, please.
*** Bug 477642 has been marked as a duplicate of this bug. ***
*** Bug 477643 has been marked as a duplicate of this bug. ***
*** Bug 479540 has been marked as a duplicate of this bug. ***
*** Bug 479868 has been marked as a duplicate of this bug. ***
*** Bug 479869 has been marked as a duplicate of this bug. ***
*** Bug 481010 has been marked as a duplicate of this bug. ***
*** Bug 481544 has been marked as a duplicate of this bug. ***
*** Bug 482143 has been marked as a duplicate of this bug. ***
*** Bug 482154 has been marked as a duplicate of this bug. ***
*** Bug 483937 has been marked as a duplicate of this bug. ***
*** Bug 484862 has been marked as a duplicate of this bug. ***
*** Bug 485268 has been marked as a duplicate of this bug. ***
I have only been able to reproduce this when the following modules are enabled: Programs Web Searches (Mozilla) Web Tracker Search
Does the problem appear when you type in a special phrase or doesn't it matter what you type ?
*** Bug 485581 has been marked as a duplicate of this bug. ***
Okay I have now managed to reproduce this bug when only two modules are enabled: Programs Web Searches (Mozilla) Also it doesn't matter which phrase you type in. Everytime is has crashed, it has been a different letter combination. However it does seem to crash before I can type past the first, second or third letter. It seems that it crashes as a result of the query of the the first letter. By the way, if this really is the fault of a module, couldn't you just do: if match: cell.set_property ("has-more-actions", len(match.get_actions()) > 1) else: cell.set_property ("has-more-actions", False) I haven't actually looked at the code, but it seems like a reasonably simple fix. Thanks.
*** Bug 486028 has been marked as a duplicate of this bug. ***
*** Bug 486145 has been marked as a duplicate of this bug. ***
*** Bug 486242 has been marked as a duplicate of this bug. ***
*** Bug 486310 has been marked as a duplicate of this bug. ***
*** Bug 486314 has been marked as a duplicate of this bug. ***
*** Bug 486315 has been marked as a duplicate of this bug. ***
*** Bug 486316 has been marked as a duplicate of this bug. ***
Created attachment 97176 [details] [review] Add additional debugging features I'm almost sure that the programs module does something wrong when indexing .desktop files. To help find the cause of this bug, please follow these steps: 1) Download the latest version of deskbar-applet from the subversion repository and apply the attached patch 2) Run deskbar from the command line with /usr/lib/deskbar-applet/deskbar-applet -w 3) If you come across a ValueError, please post the output here
*** Bug 486656 has been marked as a duplicate of this bug. ***
*** Bug 486903 has been marked as a duplicate of this bug. ***
*** Bug 487172 has been marked as a duplicate of this bug. ***
*** Bug 487291 has been marked as a duplicate of this bug. ***
*** Bug 487292 has been marked as a duplicate of this bug. ***
*** Bug 487293 has been marked as a duplicate of this bug. ***
*** Bug 487294 has been marked as a duplicate of this bug. ***
*** Bug 487373 has been marked as a duplicate of this bug. ***
*** Bug 487391 has been marked as a duplicate of this bug. ***
*** Bug 487392 has been marked as a duplicate of this bug. ***
*** Bug 487721 has been marked as a duplicate of this bug. ***
*** Bug 487800 has been marked as a duplicate of this bug. ***
*** Bug 487943 has been marked as a duplicate of this bug. ***
*** Bug 488462 has been marked as a duplicate of this bug. ***
*** Bug 488469 has been marked as a duplicate of this bug. ***
*** Bug 488548 has been marked as a duplicate of this bug. ***
*** Bug 488652 has been marked as a duplicate of this bug. ***
*** Bug 488686 has been marked as a duplicate of this bug. ***
*** Bug 488949 has been marked as a duplicate of this bug. ***
*** Bug 488993 has been marked as a duplicate of this bug. ***
*** Bug 489283 has been marked as a duplicate of this bug. ***
*** Bug 489194 has been marked as a duplicate of this bug. ***
*** Bug 489195 has been marked as a duplicate of this bug. ***
*** Bug 489439 has been marked as a duplicate of this bug. ***
*** Bug 489548 has been marked as a duplicate of this bug. ***
*** Bug 489565 has been marked as a duplicate of this bug. ***
*** Bug 489566 has been marked as a duplicate of this bug. ***
*** Bug 489690 has been marked as a duplicate of this bug. ***
*** Bug 489681 has been marked as a duplicate of this bug. ***
*** Bug 489676 has been marked as a duplicate of this bug. ***
*** Bug 489677 has been marked as a duplicate of this bug. ***
*** Bug 489599 has been marked as a duplicate of this bug. ***
*** Bug 489586 has been marked as a duplicate of this bug. ***
*** Bug 489890 has been marked as a duplicate of this bug. ***
*** Bug 489891 has been marked as a duplicate of this bug. ***
*** Bug 490278 has been marked as a duplicate of this bug. ***
*** Bug 490218 has been marked as a duplicate of this bug. ***
Sorry, I would have managed to get the traceback sooner but my hard drive died last week. Also an interesting behaviour is that this error never occurs when you just type of the name of the program and hit <enter>. You have to type the name of the program, and then hit <down> so that the first action is selected, before the exception is thrown. Also I have applied the patch provided for this bug, but I don't see the output here. ERROR See bug 359251 and report this output: Match object of unexpected type: <type 'NoneType'> - None Traceback (most recent call last):
+ Trace 172890
ERROR See bug 359251 and report this output: Match object of unexpected type: <type 'NoneType'> - None Traceback (most recent call last):
Created attachment 97909 [details] [review] Raise exception if a NoneType match appears Thanks a lot for the help! I really tried hard to reproduce but wasn't able to. My first assumptions was obviously wrong. Could you please apply this new match. With that patch you'll see a exception when a match appears that's None. That way I can find out which module returns this evil match.
(In reply to comment #31) > Created an attachment (id=97176) [edit] > Add additional debugging features > > I'm almost sure that the programs module does something wrong when indexing > .desktop files. > To help find the cause of this bug, please follow these steps: > 1) Download the latest version of deskbar-applet from the subversion repository > and apply the attached patch > 2 [edit]) Run deskbar from the command line with > /usr/lib/deskbar-applet/deskbar-applet -w > 3) If you come across a ValueError, please post the output here > Don't know if it helps: I did not download the lastest version and did not use the patch, but when I start deskar like this: /usr/lib/deskbar-applet/deskbar-applet -w ,it doesn't crash.
Well i'm running SVN and launching it using -w and it still crashes. I applied the new patch, but the output is identical to my last comment. I checked myself by printing out the entire matches list, and they are all Match instances.
Very interesting. That means that no module is responsible at all, but somehow the match will be overwritten. I have to do some further investigation then.
*** Bug 490318 has been marked as a duplicate of this bug. ***
*** Bug 490382 has been marked as a duplicate of this bug. ***
*** Bug 490383 has been marked as a duplicate of this bug. ***
*** Bug 490388 has been marked as a duplicate of this bug. ***
*** Bug 490480 has been marked as a duplicate of this bug. ***
*** Bug 490694 has been marked as a duplicate of this bug. ***
*** Bug 490715 has been marked as a duplicate of this bug. ***
*** Bug 490873 has been marked as a duplicate of this bug. ***
*** Bug 490874 has been marked as a duplicate of this bug. ***
*** Bug 490875 has been marked as a duplicate of this bug. ***
*** Bug 490889 has been marked as a duplicate of this bug. ***
*** Bug 490911 has been marked as a duplicate of this bug. ***
*** Bug 490979 has been marked as a duplicate of this bug. ***
*** Bug 491013 has been marked as a duplicate of this bug. ***
*** Bug 491041 has been marked as a duplicate of this bug. ***
*** Bug 491269 has been marked as a duplicate of this bug. ***
*** Bug 491278 has been marked as a duplicate of this bug. ***
*** Bug 491439 has been marked as a duplicate of this bug. ***
*** Bug 491490 has been marked as a duplicate of this bug. ***
*** Bug 491513 has been marked as a duplicate of this bug. ***
*** Bug 491538 has been marked as a duplicate of this bug. ***
*** Bug 491892 has been marked as a duplicate of this bug. ***
*** Bug 491781 has been marked as a duplicate of this bug. ***
The following modules are activated: address-book Tracker-Live-Search Files, folders and places Greets Patrick Beck
*** Bug 492350 has been marked as a duplicate of this bug. ***
*** Bug 492349 has been marked as a duplicate of this bug. ***
*** Bug 492348 has been marked as a duplicate of this bug. ***
*** Bug 492758 has been marked as a duplicate of this bug. ***
*** Bug 492768 has been marked as a duplicate of this bug. ***
*** Bug 492757 has been marked as a duplicate of this bug. ***
*** Bug 492898 has been marked as a duplicate of this bug. ***
*** Bug 493028 has been marked as a duplicate of this bug. ***
*** Bug 493295 has been marked as a duplicate of this bug. ***
*** Bug 493484 has been marked as a duplicate of this bug. ***
*** Bug 493588 has been marked as a duplicate of this bug. ***
*** Bug 493677 has been marked as a duplicate of this bug. ***
*** Bug 493790 has been marked as a duplicate of this bug. ***
*** Bug 494665 has been marked as a duplicate of this bug. ***
*** Bug 494666 has been marked as a duplicate of this bug. ***
*** Bug 494779 has been marked as a duplicate of this bug. ***
*** Bug 494875 has been marked as a duplicate of this bug. ***
*** Bug 494916 has been marked as a duplicate of this bug. ***
*** Bug 494928 has been marked as a duplicate of this bug. ***
*** Bug 493967 has been marked as a duplicate of this bug. ***
*** Bug 494269 has been marked as a duplicate of this bug. ***
*** Bug 494270 has been marked as a duplicate of this bug. ***
*** Bug 494326 has been marked as a duplicate of this bug. ***
*** Bug 494459 has been marked as a duplicate of this bug. ***
*** Bug 494560 has been marked as a duplicate of this bug. ***
*** Bug 494562 has been marked as a duplicate of this bug. ***
*** Bug 494563 has been marked as a duplicate of this bug. ***
*** Bug 494564 has been marked as a duplicate of this bug. ***
*** Bug 494572 has been marked as a duplicate of this bug. ***
*** Bug 494587 has been marked as a duplicate of this bug. ***
*** Bug 494638 has been marked as a duplicate of this bug. ***
*** Bug 495109 has been marked as a duplicate of this bug. ***
*** Bug 495149 has been marked as a duplicate of this bug. ***
*** Bug 495179 has been marked as a duplicate of this bug. ***
*** Bug 495460 has been marked as a duplicate of this bug. ***
*** Bug 495483 has been marked as a duplicate of this bug. ***
*** Bug 495558 has been marked as a duplicate of this bug. ***
*** Bug 495559 has been marked as a duplicate of this bug. ***
*** Bug 495560 has been marked as a duplicate of this bug. ***
*** Bug 495561 has been marked as a duplicate of this bug. ***
*** Bug 495562 has been marked as a duplicate of this bug. ***
*** Bug 495563 has been marked as a duplicate of this bug. ***
*** Bug 495627 has been marked as a duplicate of this bug. ***
*** Bug 495646 has been marked as a duplicate of this bug. ***
*** Bug 495886 has been marked as a duplicate of this bug. ***
*** Bug 495887 has been marked as a duplicate of this bug. ***
*** Bug 495906 has been marked as a duplicate of this bug. ***
*** Bug 495910 has been marked as a duplicate of this bug. ***
*** Bug 495911 has been marked as a duplicate of this bug. ***
*** Bug 495912 has been marked as a duplicate of this bug. ***
*** Bug 495913 has been marked as a duplicate of this bug. ***
*** Bug 495914 has been marked as a duplicate of this bug. ***
*** Bug 495915 has been marked as a duplicate of this bug. ***
*** Bug 495928 has been marked as a duplicate of this bug. ***
*** Bug 496047 has been marked as a duplicate of this bug. ***
*** Bug 496177 has been marked as a duplicate of this bug. ***
*** Bug 496353 has been marked as a duplicate of this bug. ***
*** Bug 496712 has been marked as a duplicate of this bug. ***
*** Bug 496713 has been marked as a duplicate of this bug. ***
*** Bug 496838 has been marked as a duplicate of this bug. ***
*** Bug 496891 has been marked as a duplicate of this bug. ***
*** Bug 497089 has been marked as a duplicate of this bug. ***
*** Bug 497122 has been marked as a duplicate of this bug. ***
*** Bug 497123 has been marked as a duplicate of this bug. ***
*** Bug 497124 has been marked as a duplicate of this bug. ***
*** Bug 497133 has been marked as a duplicate of this bug. ***
*** Bug 497543 has been marked as a duplicate of this bug. ***
*** Bug 497544 has been marked as a duplicate of this bug. ***
*** Bug 497545 has been marked as a duplicate of this bug. ***
*** Bug 497546 has been marked as a duplicate of this bug. ***
*** Bug 497547 has been marked as a duplicate of this bug. ***
*** Bug 497548 has been marked as a duplicate of this bug. ***
*** Bug 497893 has been marked as a duplicate of this bug. ***
*** Bug 497906 has been marked as a duplicate of this bug. ***
*** Bug 498025 has been marked as a duplicate of this bug. ***
*** Bug 498024 has been marked as a duplicate of this bug. ***
*** Bug 498118 has been marked as a duplicate of this bug. ***
*** Bug 498209 has been marked as a duplicate of this bug. ***
*** Bug 498249 has been marked as a duplicate of this bug. ***
*** Bug 498389 has been marked as a duplicate of this bug. ***
*** Bug 498447 has been marked as a duplicate of this bug. ***
*** Bug 498597 has been marked as a duplicate of this bug. ***
*** Bug 498598 has been marked as a duplicate of this bug. ***
*** Bug 498851 has been marked as a duplicate of this bug. ***
*** Bug 498853 has been marked as a duplicate of this bug. ***
*** Bug 498857 has been marked as a duplicate of this bug. ***
*** Bug 498914 has been marked as a duplicate of this bug. ***
*** Bug 499012 has been marked as a duplicate of this bug. ***
*** Bug 499026 has been marked as a duplicate of this bug. ***
*** Bug 498020 has been marked as a duplicate of this bug. ***
It's more or less fixed in svn. I couldn't find the cause. It just ignores None values and prints an error message. The fix will be part of 2.20.2 but not 2.21.x, because I still want to find the cause.
*** Bug 499617 has been marked as a duplicate of this bug. ***
*** Bug 500127 has been marked as a duplicate of this bug. ***
*** Bug 500153 has been marked as a duplicate of this bug. ***
*** Bug 500176 has been marked as a duplicate of this bug. ***
*** Bug 500290 has been marked as a duplicate of this bug. ***
*** Bug 500291 has been marked as a duplicate of this bug. ***
*** Bug 500452 has been marked as a duplicate of this bug. ***
*** Bug 500453 has been marked as a duplicate of this bug. ***
*** Bug 500454 has been marked as a duplicate of this bug. ***
*** Bug 500455 has been marked as a duplicate of this bug. ***
*** Bug 500456 has been marked as a duplicate of this bug. ***
*** Bug 500457 has been marked as a duplicate of this bug. ***
*** Bug 500458 has been marked as a duplicate of this bug. ***
added to the auto-reject list with a comment to please update to 2.20.2 (see comment 188).
*** Bug 500558 has been marked as a duplicate of this bug. ***
*** Bug 500580 has been marked as a duplicate of this bug. ***
*** Bug 500609 has been marked as a duplicate of this bug. ***