GNOME Bugzilla – Bug 475351
crash in Deskbar: 'NoneType' object has no attribute 'startswith' in history module
Last modified: 2009-03-09 15:25:52 UTC
What were you doing when the application crashed? search for word 'ploy' Distribution: Ubuntu 7.10 (gutsy) Gnome Release: 2.19.92 2007-09-04 (Ubuntu) BugBuddy Version: 2.18.1 System: Linux 2.6.22-11-generic #1 SMP Fri Sep 7 05:07:05 GMT 2007 i686 X Vendor: The X.Org Foundation X Vendor Release: 70000000 Selinux: No Accessibility: Disabled GTK+ Theme: Human Icon Theme: Human 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 (474 sec old) --------------------- CheckGmail uses Gtk2::Sexy for clickable URLs in mail messages Please download and install from CPAN (http://search.cpan.org) if you want to use this feature ... ** Message: failed to load session from /home/baranguren/.nautilus/saved-session-40YFYT PID TTY TIME CMD /bin/sh: /usr/bin/esd: not found QSettings::sync: filename is null/empty QSettings::sync: filename is null/empty QSettings::sync: filename is null/empty QSettings::sync: filename is null/empty /bin/sh: /usr/bin/esd: not found cairo context error: NULL pointer cairo context error: NULL pointer Warning: Couldn't change directory to "/share/X11/xkb" Root directory (-R) option ignored -------------------------------------------------- Traceback (most recent call last):
+ Trace 161706
run_old(*args, **kwargs)
self.__target(*self.__args, **self.__kwargs)
function(*args, **kwargs)
if text.startswith(query):
*** Bug 478963 has been marked as a duplicate of this bug. ***
*** Bug 482569 has been marked as a duplicate of this bug. ***
*** Bug 482745 has been marked as a duplicate of this bug. ***
*** Bug 484539 has been marked as a duplicate of this bug. ***
*** Bug 484542 has been marked as a duplicate of this bug. ***
This has happened to me, but I really have no idea how to reproduce it. Perhaps checking for None before doing string manipulation would help? Simple patch: 52c52 < if text.startswith(query): --- > if text and text.startswith(query): This shouldn't have any negative effects because if you skip the if block, you are simply not finding any matches. But because I haven't figured out how to reproduce this bug, I can't test it.
*** Bug 485020 has been marked as a duplicate of this bug. ***
*** Bug 486968 has been marked as a duplicate of this bug. ***
*** Bug 488155 has been marked as a duplicate of this bug. ***
*** Bug 488909 has been marked as a duplicate of this bug. ***
*** Bug 490190 has been marked as a duplicate of this bug. ***
*** Bug 488705 has been marked as a duplicate of this bug. ***
*** Bug 490907 has been marked as a duplicate of this bug. ***
*** Bug 490910 has been marked as a duplicate of this bug. ***
*** Bug 490608 has been marked as a duplicate of this bug. ***
*** Bug 491008 has been marked as a duplicate of this bug. ***
*** Bug 491023 has been marked as a duplicate of this bug. ***
Created attachment 98018 [details] [review] Throw exception when None value is added to history It seems that somehow None is stored as text in history. This patch throws in exception when the text or action that is None is added to history. Could you please apply this patch, run deskbar from the command line with "/usr/lib/deskbar-applet/deskbar-applet -w" and report the output here, if the exception occurs.
*** Bug 491180 has been marked as a duplicate of this bug. ***
*** Bug 491231 has been marked as a duplicate of this bug. ***
*** Bug 491596 has been marked as a duplicate of this bug. ***
*** Bug 491864 has been marked as a duplicate of this bug. ***
*** Bug 493065 has been marked as a duplicate of this bug. ***
*** Bug 493199 has been marked as a duplicate of this bug. ***
*** Bug 493516 has been marked as a duplicate of this bug. ***
*** Bug 494930 has been marked as a duplicate of this bug. ***
*** Bug 493924 has been marked as a duplicate of this bug. ***
*** Bug 494069 has been marked as a duplicate of this bug. ***
*** Bug 495118 has been marked as a duplicate of this bug. ***
*** Bug 495238 has been marked as a duplicate of this bug. ***
*** Bug 495422 has been marked as a duplicate of this bug. ***
*** Bug 495731 has been marked as a duplicate of this bug. ***
*** Bug 495878 has been marked as a duplicate of this bug. ***
*** Bug 496086 has been marked as a duplicate of this bug. ***
*** Bug 496192 has been marked as a duplicate of this bug. ***
*** Bug 496366 has been marked as a duplicate of this bug. ***
*** Bug 496477 has been marked as a duplicate of this bug. ***
*** Bug 496532 has been marked as a duplicate of this bug. ***
*** Bug 497091 has been marked as a duplicate of this bug. ***
*** Bug 497797 has been marked as a duplicate of this bug. ***
*** Bug 498795 has been marked as a duplicate of this bug. ***
*** Bug 498893 has been marked as a duplicate of this bug. ***
I couldn't find the cause of this problem. But it's more or less fixed in svn and will be part of 2.20.2. It now just aborts when None appears and prints an error message.
*** Bug 499370 has been marked as a duplicate of this bug. ***
*** Bug 500048 has been marked as a duplicate of this bug. ***
*** Bug 500125 has been marked as a duplicate of this bug. ***
*** Bug 500135 has been marked as a duplicate of this bug. ***
*** Bug 500215 has been marked as a duplicate of this bug. ***
*** Bug 500253 has been marked as a duplicate of this bug. ***
*** Bug 500518 has been marked as a duplicate of this bug. ***
*** Bug 501075 has been marked as a duplicate of this bug. ***
*** Bug 501136 has been marked as a duplicate of this bug. ***
*** Bug 501170 has been marked as a duplicate of this bug. ***
*** Bug 501275 has been marked as a duplicate of this bug. ***
*** Bug 501401 has been marked as a duplicate of this bug. ***
*** Bug 501528 has been marked as a duplicate of this bug. ***
*** Bug 501582 has been marked as a duplicate of this bug. ***
*** Bug 501636 has been marked as a duplicate of this bug. ***
*** Bug 502829 has been marked as a duplicate of this bug. ***
*** Bug 502751 has been marked as a duplicate of this bug. ***
*** Bug 503401 has been marked as a duplicate of this bug. ***
*** Bug 503329 has been marked as a duplicate of this bug. ***
*** Bug 503060 has been marked as a duplicate of this bug. ***
*** Bug 502624 has been marked as a duplicate of this bug. ***
*** Bug 502611 has been marked as a duplicate of this bug. ***
*** Bug 502478 has been marked as a duplicate of this bug. ***
*** Bug 503692 has been marked as a duplicate of this bug. ***
*** Bug 503958 has been marked as a duplicate of this bug. ***
*** Bug 504446 has been marked as a duplicate of this bug. ***
*** Bug 504605 has been marked as a duplicate of this bug. ***
*** Bug 504731 has been marked as a duplicate of this bug. ***
*** Bug 504796 has been marked as a duplicate of this bug. ***
*** Bug 504914 has been marked as a duplicate of this bug. ***
*** Bug 505874 has been marked as a duplicate of this bug. ***
*** Bug 506465 has been marked as a duplicate of this bug. ***
*** Bug 506592 has been marked as a duplicate of this bug. ***
*** Bug 506291 has been marked as a duplicate of this bug. ***
I have taken on the edit suggested by hcfinucane@ucdavis.edu in comment #6, and am now testing this. As the deskbar reloads a few times a day and may crash once a week like this, I hope results will be seen soon.
That didn't work, but I am now trying: if text: if text.startswith(query): instead, which I think will.
*** Bug 508440 has been marked as a duplicate of this bug. ***
*** Bug 508097 has been marked as a duplicate of this bug. ***
*** Bug 508199 has been marked as a duplicate of this bug. ***
*** Bug 508774 has been marked as a duplicate of this bug. ***
*** Bug 508852 has been marked as a duplicate of this bug. ***
*** Bug 507659 has been marked as a duplicate of this bug. ***
*** Bug 508984 has been marked as a duplicate of this bug. ***
*** Bug 509002 has been marked as a duplicate of this bug. ***
*** Bug 509642 has been marked as a duplicate of this bug. ***
*** Bug 509790 has been marked as a duplicate of this bug. ***
*** Bug 510045 has been marked as a duplicate of this bug. ***
*** Bug 511674 has been marked as a duplicate of this bug. ***
*** Bug 512176 has been marked as a duplicate of this bug. ***
*** Bug 513457 has been marked as a duplicate of this bug. ***
*** Bug 514285 has been marked as a duplicate of this bug. ***
*** Bug 513989 has been marked as a duplicate of this bug. ***
*** Bug 514647 has been marked as a duplicate of this bug. ***
*** Bug 514667 has been marked as a duplicate of this bug. ***
*** Bug 515188 has been marked as a duplicate of this bug. ***
*** Bug 515391 has been marked as a duplicate of this bug. ***
*** Bug 515925 has been marked as a duplicate of this bug. ***
*** Bug 516147 has been marked as a duplicate of this bug. ***
*** Bug 516463 has been marked as a duplicate of this bug. ***
*** Bug 517196 has been marked as a duplicate of this bug. ***
*** Bug 517733 has been marked as a duplicate of this bug. ***
*** Bug 518076 has been marked as a duplicate of this bug. ***
*** Bug 519688 has been marked as a duplicate of this bug. ***
*** Bug 520008 has been marked as a duplicate of this bug. ***
*** Bug 520354 has been marked as a duplicate of this bug. ***
*** Bug 520696 has been marked as a duplicate of this bug. ***
*** Bug 521304 has been marked as a duplicate of this bug. ***
*** Bug 521701 has been marked as a duplicate of this bug. ***
*** Bug 521944 has been marked as a duplicate of this bug. ***
*** Bug 521777 has been marked as a duplicate of this bug. ***
*** Bug 523227 has been marked as a duplicate of this bug. ***
*** Bug 525928 has been marked as a duplicate of this bug. ***
*** Bug 525639 has been marked as a duplicate of this bug. ***
*** Bug 525044 has been marked as a duplicate of this bug. ***
*** Bug 524239 has been marked as a duplicate of this bug. ***
*** Bug 524430 has been marked as a duplicate of this bug. ***
*** Bug 524667 has been marked as a duplicate of this bug. ***
*** Bug 524688 has been marked as a duplicate of this bug. ***
*** Bug 524754 has been marked as a duplicate of this bug. ***
*** Bug 527248 has been marked as a duplicate of this bug. ***
*** Bug 527608 has been marked as a duplicate of this bug. ***
*** Bug 527816 has been marked as a duplicate of this bug. ***
*** Bug 527899 has been marked as a duplicate of this bug. ***
*** Bug 528934 has been marked as a duplicate of this bug. ***
*** Bug 529066 has been marked as a duplicate of this bug. ***
*** Bug 529555 has been marked as a duplicate of this bug. ***
*** Bug 529597 has been marked as a duplicate of this bug. ***
*** Bug 529644 has been marked as a duplicate of this bug. ***
*** Bug 529901 has been marked as a duplicate of this bug. ***
*** Bug 530260 has been marked as a duplicate of this bug. ***
*** Bug 531964 has been marked as a duplicate of this bug. ***
*** Bug 531828 has been marked as a duplicate of this bug. ***
*** Bug 539296 has been marked as a duplicate of this bug. ***
this issue is still happening on 2.22.2
*** Bug 539946 has been marked as a duplicate of this bug. ***
*** Bug 546611 has been marked as a duplicate of this bug. ***
*** Bug 551351 has been marked as a duplicate of this bug. ***
*** Bug 551556 has been marked as a duplicate of this bug. ***
*** Bug 551813 has been marked as a duplicate of this bug. ***
*** Bug 553478 has been marked as a duplicate of this bug. ***
*** Bug 557614 has been marked as a duplicate of this bug. ***
*** Bug 558388 has been marked as a duplicate of this bug. ***
*** Bug 561985 has been marked as a duplicate of this bug. ***
*** Bug 568963 has been marked as a duplicate of this bug. ***
*** Bug 572534 has been marked as a duplicate of this bug. ***
*** Bug 574559 has been marked as a duplicate of this bug. ***
*** Bug 574643 has been marked as a duplicate of this bug. ***