gwibber crashes on load with KeyError on sender
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Gwibber |
Undecided
|
Unassigned |
Bug Description
Upon loading gwibber, I receive the following output:
----------
** (gwibber:25512): WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags'
** (gwibber:25512): WARNING **: Trying to register gtype 'WnckWindowActions' as enum when in fact it is of type 'GFlags'
** (gwibber:25512): WARNING **: Trying to register gtype 'WnckWindowMove
No dbus monitor yet
Updating...
Updating...
Traceback (most recent call last):
File "/usr/bin/gwibber", line 67, in <module>
client.Client()
File "/usr/lib/
self.w = GwibberClient()
File "/usr/lib/
self.setup_ui()
File "/usr/lib/
self.
File "/usr/lib/
self.update()
File "/usr/lib/
self.
File "/usr/lib/
accounts=
File "/usr/lib/
content = template.
File "/usr/lib/
return runtime.
File "/usr/lib/
_render_
File "/usr/lib/
_exec_
File "/usr/lib/
callable_
File "memory:0x1a60650", line 207, in render_body
File "/usr/lib/
return lambda *args, **kwargs:
File "base_mako", line 805, in render_messages
File "memory:0x1a60650", line 84, in message
File "/usr/lib/
return lambda *args, **kwargs:
File "base_mako", line 317, in render_sidebar
KeyError: 'sender'
----------
After this, gwibber exits, and no windows appear. However, `ps ax | grep gwibber` after the fact reveals the following:
----------
25549 ? SLl 0:00 /usr/bin/python /usr/bin/
----------
This is repeatable, every time.
Installed Gwibber version: 2.30.1-0ubuntu1
Running Ubuntu 10.04.1 LTS
List of installed packages is attached.
Linux kernel: 2.6.32-24-generic #39-Ubuntu SMP Wed Jul 28 05:14:15 UTC 2010 x86_64 GNU/Linux
Jonathan Elchison (jelchison) wrote : | #1 |
tags: | added: gwibber |
Elisiano Petrini (elisiano) wrote : | #2 |
Michael B. Trausch (mtrausch) wrote : | #3 |
I can also confirm this on Lucid:
mbt@zest:~$ gwibber
** (gwibber:3704): WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags'
** (gwibber:3704): WARNING **: Trying to register gtype 'WnckWindowActions' as enum when in fact it is of type 'GFlags'
** (gwibber:3704): WARNING **: Trying to register gtype 'WnckWindowMove
Updating...
Updating...
Traceback (most recent call last):
File "/usr/bin/gwibber", line 67, in <module>
client.Client()
File "/usr/lib/
self.w = GwibberClient()
File "/usr/lib/
self.setup_ui()
File "/usr/lib/
self.
File "/usr/lib/
self.update()
File "/usr/lib/
self.
File "/usr/lib/
accounts=
File "/usr/lib/
content = template.
File "/usr/lib/
return runtime.
File "/usr/lib/
_render_
File "/usr/lib/
_exec_
File "/usr/lib/
callable_
File "memory:0x32bff90", line 207, in render_body
File "/usr/lib/
return lambda *args, **kwargs:
File "base_mako", line 805, in render_messages
File "memory:0x32bff90", line 84, in message
File "/usr/lib/
return lambda *args, **kwargs:
File "base_mako", line 317, in render_sidebar
KeyError: 'sender'
mbt@zest:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid
mbt@zest:~$
Changed in gwibber: | |
status: | New → Confirmed |
description: | updated |
poppanator (pontus-poppa) wrote : | #4 |
I too experience this on a 64-bit install. Worth mentioning: Maybe a coincident but I changed my avatar at gravatar.com (which shows in Twitter messages) as well as my Facebook profile photo. Gwibber stopped working in relation to this.
I'm also experiencing this issue today after I updated my box using Update Manager. It was not up to date (+30 days)
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid
$uname -a
Linux xxxxxx 2.6.32-24-generic #41-Ubuntu SMP Thu Aug 19 01:38:40 UTC 2010 x86_64 GNU/Linux
Matt Hoskins (matt-nipltd) wrote : | #6 |
Having a look at the code, it seems that the facebook code for gwibber in lucid doesn't always initialise the sender part of a message to an empty dict, so if the code lower down doesn't set it then it will cause a problem (it looks like code for other systems like twitter etc always initialise the sender as blank).
To fix the problem on my system I edited:
/usr/lib/
I found the code reading:
if data.get(
m["sender"] = self._sender(
And after it added:
else:
m["sender"] = {}
Unfortunately couchdb for gwibber will have cached the problem entry. I went for the easy option of clearing it out by removing the data file (as gwibber will just regrab the content). So I killed off gwibber, gwibber-service and the couchdb service and then removed:
~/.local/
Starting up gwibber and everything now behaves.
Tom Inglis (tominglis) wrote : Re: [Bug 616582] Re: gwibber crashes on load with KeyError on sender | #7 |
Nice, that seemed to do the trick - thanks dude!
On Tue, 2010-08-24 at 12:05 +0000, Matt Hoskins wrote:
> Having a look at the code, it seems that the facebook code for gwibber
> in lucid doesn't always initialise the sender part of a message to an
> empty dict, so if the code lower down doesn't set it then it will cause
> a problem (it looks like code for other systems like twitter etc always
> initialise the sender as blank).
>
> To fix the problem on my system I edited:
> /usr/lib/
>
> I found the code reading:
> if data.get(
> m["sender"] = self._sender(
>
> And after it added:
> else:
> m["sender"] = {}
>
> Unfortunately couchdb for gwibber will have cached the problem entry. I went for the easy option of clearing it out by removing the data file (as gwibber will just regrab the content). So I killed off gwibber, gwibber-service and the couchdb service and then removed:
> ~/.local/
>
> Starting up gwibber and everything now behaves.
>
jac0b (jacbrooks) wrote : | #8 |
I did the above steps in post #6 but it still won't open for me. How do I kill the couchdb service I don't see it in my running processes?
Michael B. Trausch (mtrausch) wrote : | #9 |
@jac0b:
killall desktopcouch-
Do that until it says "desktopcouch-
I can confirm that the workaround in #6 works. I will prepare a debdiff tonight for this bug to fix the problem in Gwibber, if I can find a less invasive and automatic method of cleaning up the CouchDB as well.
Tomas 'tt' Krag (tt) wrote : | #10 |
Unfortunately workaround #6 does not work in my case. I've made the changes, killed off both gwibber-service and desktopcouch-
JAlcala (jalcalav) wrote : | #11 |
Last update to Gwibber 2.30.2-0ubuntu1 throws same error. Annoying problem.
rzoch (rzoch) wrote : | #12 |
Experiencing the same problem for the past month or more as well.
- Linux 2.6.32-24-generic #43-Ubuntu SMP Thu Sep 16 14:58:24 UTC 2010 x86_64 GNU/Linux
Misosofos (misosofos) wrote : | #13 |
A fix, please! If we update to the PPA of Gwibber (the only way I solved this issue) the enter text on the Me Menu disappears!
JAlcala (jalcalav) wrote : | #14 |
Maverick fixes this problem (Gwibber 2.32.0.1)
Jonathan Elchison (jelchison) wrote : | #15 |
Problem still exists with Gwibber 2.30.3-0ubuntu1 on Ubuntu 10.04.1 LTS:
----------
** (gwibber:26826): WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags'
** (gwibber:26826): WARNING **: Trying to register gtype 'WnckWindowActions' as enum when in fact it is of type 'GFlags'
** (gwibber:26826): WARNING **: Trying to register gtype 'WnckWindowMove
Updating...
Updating...
Traceback (most recent call last):
File "/usr/bin/gwibber", line 67, in <module>
client.Client()
File "/usr/lib/
self.w = GwibberClient()
File "/usr/lib/
self.setup_ui()
File "/usr/lib/
self.
File "/usr/lib/
self.update()
File "/usr/lib/
self.
File "/usr/lib/
accounts=
File "/usr/lib/
content = template.
File "/usr/lib/
return runtime.
File "/usr/lib/
_render_
File "/usr/lib/
_exec_
File "/usr/lib/
callable_
File "memory:0x1959150", line 207, in render_body
File "/usr/lib/
return lambda *args, **kwargs:
File "base_mako", line 805, in render_messages
File "memory:0x1959150", line 84, in message
File "/usr/lib/
return lambda *args, **kwargs:
File "base_mako", line 317, in render_sidebar
KeyError: 'sender'
----------
Kernel: Linux xxxxx 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 10:14:11 UTC 2010 x86_64 GNU/Linux
Omer Akram (om26er) wrote : | #16 |
John install gwibber 2.32.2 from gwibber team's ppa. is the stable version and should fix your problem https:/
Same here.
Maybe it's worth mentioning that it's a 64bit system.
Linux XXXXX 2.6.32-24-generic #39-Ubuntu SMP Wed Jul 28 05:14:15 UTC 2010 x86_64 GNU/Linux
Ubuntu 10.04.1 LTS