gwibber crashed with KeyError in render()

Bug #579668 reported by Jochem
160
This bug affects 34 people
Affects Status Importance Assigned to Milestone
Gwibber
Won't Fix
Undecided
Unassigned
desktopcouch (Ubuntu)
Invalid
Undecided
Unassigned
gwibber (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Gwibber will not start after restoring the Gwibber settings after an Ubuntu reinstall (this happened automatically with backintime).

When I run Gwibber in the gnome-terminal, the following happens:

jochem@Artemis:~$ gwibber

** (gwibber:3091): WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags'

** (gwibber:3091): WARNING **: Trying to register gtype 'WnckWindowActions' as enum when in fact it is of type 'GFlags'

** (gwibber:3091): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags'
No dbus monitor yet
Updating...
Updating...
Traceback (most recent call last):
  File "/usr/bin/gwibber", line 67, in <module>
    client.Client()
  File "/usr/lib/python2.6/dist-packages/gwibber/client.py", line 447, in __init__
    self.w = GwibberClient()
  File "/usr/lib/python2.6/dist-packages/gwibber/client.py", line 58, in __init__
    self.setup_ui()
  File "/usr/lib/python2.6/dist-packages/gwibber/client.py", line 144, in setup_ui
    self.stream_view.set_state(self.model.settings["streams"] or DEFAULT_SETTINGS["streams"])
  File "/usr/lib/python2.6/dist-packages/gwibber/gwui.py", line 438, in set_state
    self.update()
  File "/usr/lib/python2.6/dist-packages/gwibber/gwui.py", line 426, in update
    self.message_view.render([self.navigation.selected_stream["view"]])
  File "/usr/lib/python2.6/dist-packages/gwibber/gwui.py", line 706, in render
    message = item['doc']
KeyError: 'doc'

A restart didn't help, nor did a reinstall of Gwibber.
gwibber-service is running. Killing it and then starting Gwibber also did not work.

Installed Gwibber version: 2.30.0.1-0ubuntu1
Version gwibber-service: 2.30.0.1-0ubuntu1

Revision history for this message
Jochem (jochem56-deactivatedaccount) wrote :

And just like that it starts again.
Didn't do anything though.

Revision history for this message
Omer Akram (om26er) wrote :

closing this bug now if you face the problem again feel free to open this bug again

Changed in gwibber:
status: New → Invalid
Revision history for this message
Jochem (jochem56-deactivatedaccount) wrote :

It's back.

Revision history for this message
Jochem (jochem56-deactivatedaccount) wrote :

I am sorry for this extra comment, but there are a few things you should know:
- The Broadcast Account option in the Indicator Applet is displayed twice.
- It is possible to Twitter via the Me Menu.

Revision history for this message
Omer Akram (om26er) wrote :

try to start it from terminal and paste the results here please. and also a reboot would remove the second entry of gwibber.

Revision history for this message
Jochem (jochem56-deactivatedaccount) wrote :

** (gwibber:7027): WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags'

** (gwibber:7027): WARNING **: Trying to register gtype 'WnckWindowActions' as enum when in fact it is of type 'GFlags'

** (gwibber:7027): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags'
Updating...
Updating...
Traceback (most recent call last):
  File "/usr/bin/gwibber", line 67, in <module>
    client.Client()
  File "/usr/lib/python2.6/dist-packages/gwibber/client.py", line 447, in __init__
    self.w = GwibberClient()
  File "/usr/lib/python2.6/dist-packages/gwibber/client.py", line 58, in __init__
    self.setup_ui()
  File "/usr/lib/python2.6/dist-packages/gwibber/client.py", line 144, in setup_ui
    self.stream_view.set_state(self.model.settings["streams"] or DEFAULT_SETTINGS["streams"])
  File "/usr/lib/python2.6/dist-packages/gwibber/gwui.py", line 438, in set_state
    self.update()
  File "/usr/lib/python2.6/dist-packages/gwibber/gwui.py", line 426, in update
    self.message_view.render([self.navigation.selected_stream["view"]])
  File "/usr/lib/python2.6/dist-packages/gwibber/gwui.py", line 706, in render
    message = item['doc']
KeyError: 'doc'

Revision history for this message
Omer Akram (om26er) wrote :

sud

Changed in gwibber:
status: Invalid → Confirmed
status: Confirmed → New
Changed in gwibber (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Omer Akram (om26er) wrote :

please do the following and attach the logs

$ sudo pkill gwibber
$ gwibber-service -d -o

and paste the logs here. to get gwibber started deleting the couchdb data for gwibber might be helpful.

Changed in gwibber (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Jochem (jochem56-deactivatedaccount) wrote :

jochem@Artemis:~$ sudo pkill gwibber
[sudo] password for jochem:
jochem@Artemis:~$ gwibber-service -d -o
Updating...
Gwibber Dispatcher: DEBUG Setting up monitors
Gwibber Dispatcher: DEBUG Monitors are up
Gwibber Dispatcher: INFO Gwibber Service is reloading account credentials
Gwibber Dispatcher: DEBUG Refresh interval is set to 1
Gwibber Dispatcher: DEBUG ** Starting Refresh - Sat May 15 10:46:41 2010 **
Gwibber Dispatcher: DEBUG <twitter:private> Performing operation
Gwibber Dispatcher: DEBUG <twitter:receive> Performing operation
Gwibber Dispatcher: DEBUG <twitter:responses> Performing operation
Gwibber Dispatcher: DEBUG <twitter:responses> Finished operation
Gwibber Dispatcher: DEBUG <twitter:receive> Finished operation
Gwibber Dispatcher: DEBUG <twitter:private> Finished operation
Gwibber Dispatcher: INFO Loading complete: 1 - ['Success', 'Success', 'Success']
Gwibber Dispatcher: DEBUG Refresh interval is set to 1
Gwibber Dispatcher: DEBUG ** Starting Refresh - Sat May 15 10:47:41 2010 **
Gwibber Dispatcher: DEBUG <twitter:private> Performing operation
Gwibber Dispatcher: DEBUG <twitter:receive> Performing operation
Gwibber Dispatcher: DEBUG <twitter:responses> Performing operation
Gwibber Dispatcher: DEBUG <twitter:receive> Finished operation
Gwibber Dispatcher: DEBUG <twitter:responses> Finished operation
Gwibber Dispatcher: DEBUG <twitter:private> Finished operation
Gwibber Dispatcher: INFO Loading complete: 2 - ['Success', 'Success', 'Success']

How can I delete the couchdb data for Gwibber?

Revision history for this message
Botond Szász (boteeka) wrote :

I don't know if this is related or not, but here it goes anyway.
I have checked "Start service on login", but it won't start no matter how many reboots or logout-login cycles I do. Also, "gwibber-service -d -o" outputs something similar to what Jochem posted (#9). No errors or warnings.

My laptop was running Karmic and had installed Gwibber since then, now it is running Lucid (installed through upgrade).

Changed in gwibber (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Victor Vargas (kamus) wrote :

@Jochem, have you tried to kill gnome-keyring-daemon and then start again running a terminal, after that please start gwibber and gwibber-service and look if this issue persist.

Revision history for this message
Jochem (jochem56-deactivatedaccount) wrote :

The issue persists.
(here are the entered commands:

jochem@Artemis:~$ pkill gnome-keyring-daemon
jochem@Artemis:~$ gnome-keyring-daemon
jochem@Artemis:~$ gwibber

and

jochem@Artemis:~$ pkill gnome-keyring-daemon
jochem@Artemis:~$ gnome-keyring-daemon
jochem@Artemis:~$ gwibber-service
jochem@Artemis:~$ gwibber

both didn't work, same error)

Revision history for this message
boratsuckdev (boratsuckdev1) wrote :

I am facing the exact same bug on 10.04, updated gwibber on 26th, but the bug persists with the following error:
But system monitor shows gwibber running. :(

** (gwibber:5198): WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags'

** (gwibber:5198): WARNING **: Trying to register gtype 'WnckWindowActions' as enum when in fact it is of type 'GFlags'

** (gwibber:5198): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags'
Updating...
Updating...
Traceback (most recent call last):
  File "/usr/bin/gwibber", line 67, in <module>
    client.Client()
  File "/usr/lib/python2.6/dist-packages/gwibber/client.py", line 447, in __init__
    self.w = GwibberClient()
  File "/usr/lib/python2.6/dist-packages/gwibber/client.py", line 58, in __init__
    self.setup_ui()
  File "/usr/lib/python2.6/dist-packages/gwibber/client.py", line 144, in setup_ui
    self.stream_view.set_state(self.model.settings["streams"] or DEFAULT_SETTINGS["streams"])
  File "/usr/lib/python2.6/dist-packages/gwibber/gwui.py", line 438, in set_state
    self.update()
  File "/usr/lib/python2.6/dist-packages/gwibber/gwui.py", line 426, in update
    self.message_view.render([self.navigation.selected_stream["view"]])
  File "/usr/lib/python2.6/dist-packages/gwibber/gwui.py", line 706, in render
    message = item['doc']
KeyError: 'doc'

Issue persists after reinstallation.
Any help would be appreciated.
Thank You

Revision history for this message
Omer Akram (om26er) wrote : Re: Gwibber crash on startup, KeyError: 'doc

deleting gwibber's couchdb database might be helpful.

summary: - Gwibber won't start
+ Gwibber crash on startup, KeyError: 'doc
Revision history for this message
Andre Engelbrecht (andrewebdev) wrote : Re: [Bug 579668] Re: Gwibber crash on startup, KeyError: 'doc

How would I do that?

Andre Engelbrecht
Web Developer/Designer and Python Coding
http://andre.engelbrechtonline.net/

On Thu, May 27, 2010 at 10:45 AM, Omer Akram <email address hidden> wrote:

> deleting gwibber's couchdb database might be helpful.
>
> ** Summary changed:
>
> - Gwibber won't start
> + Gwibber crash on startup, KeyError: 'doc
>
> --
> Gwibber crash on startup, KeyError: 'doc
> https://bugs.launchpad.net/bugs/579668
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>

Revision history for this message
Omer Akram (om26er) wrote : Re: Gwibber crash on startup, KeyError: 'doc

xdg-open .local/share/desktop-couch/couchdb.html it will open the web browser there delete all entries like gwibber_ and then logout and login again and try to start gwibber

Revision history for this message
Jochem (jochem56-deactivatedaccount) wrote :

Thanks for the work-around. But I have to ask: Will it affect anything (e.g. Ubuntu One)?

Revision history for this message
Michiel Eghuizen (michieleghuizen) wrote :

I did have the same problem.

The "solution" was for me:
xdg-open .local/share/desktop-couch/couchdb.html
removing all gwibber databases
aptitude purge gwibber gwibber-service
killall -9 gwibber
killall -9 gwibber-service
aptitude install gwibber gwibber-service

And setting up the account settings again.

However this is not a solution, just removing and reinstalling it. It seems the couchdb database can get corrupted or something. I actually don't know what happend, but it happens more often then 1 time.

Revision history for this message
Radics Ottó (saboteur777) wrote :

I get an error, maybe relating to this bugreport. Here's the terminal output starting gwibber in it:

saboteur777@laptop:~$ gwibber

** (gwibber:6111): WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags'

** (gwibber:6111): WARNING **: Trying to register gtype 'WnckWindowActions' as enum when in fact it is of type 'GFlags'

** (gwibber:6111): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags'
No dbus monitor yet
Updating...
Traceback (most recent call last):
  File "/usr/bin/gwibber", line 67, in <module>
    client.Client()
  File "/usr/lib/python2.6/dist-packages/gwibber/client.py", line 447, in __init__
    self.w = GwibberClient()
  File "/usr/lib/python2.6/dist-packages/gwibber/client.py", line 58, in __init__
    self.setup_ui()
  File "/usr/lib/python2.6/dist-packages/gwibber/client.py", line 98, in setup_ui
    self.stream_view = view_class(self.model)
  File "/usr/lib/python2.6/dist-packages/gwibber/gwui.py", line 340, in __init__
    self.navigation.render()
  File "/usr/lib/python2.6/dist-packages/gwibber/gwui.py", line 309, in render
    small_icons=self.small_icons)
  File "/usr/lib/python2.6/dist-packages/gwibber/gwui.py", line 267, in render
    self.web_settings.set_property("default-font-size", int(font_size))
ValueError: invalid literal for int() with base 10: '8.5'
saboteur777@laptop:~$

If I start gwibber using sudo gwibber, than it starts. I tried to remove all gwibber-related files which can cause trouble, but I couldn't solve the problem.

Revision history for this message
Omer Akram (om26er) wrote :

@Radics Ottó, please change your system font size to an integer. then gwibber should work.

Revision history for this message
Radics Ottó (saboteur777) wrote :

@Omer Akram - how can I do that? I used the standard Fonts tab in the Change desktop background window to set them to 8,5.

Revision history for this message
Radics Ottó (saboteur777) wrote :

It's okay now, thanks!

Revision history for this message
Andre Engelbrecht (andrewebdev) wrote :

Ok, so the last time this happened, I fixed the error by deleting gwibber entries in couchdb. Beginning of this week. This error suddenly came up again. I have to delete couchdb entries again.

Surely this is not ideal? I installed the standard gwibber from the ubuntu 10.04 repos. It's really annoying to have to jump through hoops every couple of weeks, only to get the app working again.

Revision history for this message
Michael Malott (michael-malott) wrote :

After much hair pulling and searching the web, I came across what seems to be a fix on fixmypcfree.com:

http://www.fixmypcfree.com/news/ubuntu-lucid-i-fix-another-problem-maybe-but-questions-about/

This seems to just backup what others are saying about the couchdb but I thought I would spell it out in simple terms and make note that this also helped me fix Ubuntu One and Empathy also. To paraphrase, it basically says to:

------------------fixmypcfree.com (begin)-----------------------

1. Delete all password related to Gwibber (applications > accessories > "Passwords and Encryption Keys"). But to get Empathy to work again. I deleted all my chat account passwords also.

2. Quit Gwibber then delete 3 files: /home/username/.cache/desktop-couch, /home/username/.config/desktop-couch, and /home/username/.local/desktop-couch.

3. Restart computer and then Gwibber, Ubuntu One, and Empathy should all request setup for user and passwords once you start them.

------------------fixmypcfree.com (end)-----------------------

Note: That I am using Ubuntu Lucid 10.04 with Gwibber, Ubuntu One, and Empathy integrated and launch-able from the notification area. I have no idea what the effects will be in other builds if any.

This fix or workaround seems to fix 4 issues that I did not know where related. It fixed Gwibber (wouldn't start), Ubuntu One (wouldn't connect), Empathy (wouldn't start), and high CPU usage by a service called beam. Once I applied the fix all of these
problems seems to have resolved itself. I have not vetted the fix so I cannot confirm it is permanent but its working thus far.

Revision history for this message
Le Monolecte (monolecte) wrote :

The same issue for me :

$ gwibber

** (gwibber:4074): WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags'

** (gwibber:4074): WARNING **: Trying to register gtype 'WnckWindowActions' as enum when in fact it is of type 'GFlags'

** (gwibber:4074): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags'
Removing stale, deceptive pid file.
Apache CouchDB has started, time to relax.
WARNING:root:Pid file does not contain int: '\n\n'
WARNING:root:Pid file does not contain int: '\n\n'
WARNING:root:Pid file does not contain int: '\n\n'
WARNING:root:Pid file does not contain int: '\n\n'
WARNING:root:Pid file does not contain int: '\n\n'
Browse your desktop CouchDB at file:///home/agnes/.local/share/desktop-couch/couchdb.html
No dbus monitor yet
Updating...
ERROR:dbus.proxies:Introspect error on com.Gwibber.Service:/com/gwibber/Service: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Traceback (most recent call last):
  File "/usr/bin/gwibber", line 67, in <module>
    client.Client()
  File "/usr/lib/python2.6/dist-packages/gwibber/client.py", line 447, in __init__
    self.w = GwibberClient()
  File "/usr/lib/python2.6/dist-packages/gwibber/client.py", line 29, in __init__
    self.model = gwui.Model()
  File "/usr/lib/python2.6/dist-packages/gwibber/gwui.py", line 43, in __init__
    self.services = json.loads(self.daemon.GetServices())
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 68, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

I was re-installed gwibber, unistaller Ubuntu One and I have another issue : when lauching Gwibber, it's starting the Bean process It's take 100% CPU!
What a shame!

Revision history for this message
Szabó Zoltán (be-cool) wrote :

When I run Gwibber in the gnome-terminal, the following happens:
http://paste.ubuntu.com/471433/

Omer Akram (om26er)
summary: - Gwibber crash on startup, KeyError: 'doc
+ gwibber crashed with KeyError in render()
Revision history for this message
Omer Akram (om26er) wrote :

there have been no duplicates to this bug in ubuntu 10.10 or for gwibber 2.32 so i am closing the gwibber bug

Changed in gwibber:
status: New → Won't Fix
Changed in desktopcouch (Ubuntu):
status: New → Invalid
Revision history for this message
Omer Akram (om26er) wrote :

anyone facing this issue in ubuntu 10.04 can use gwibber 2.32.2 from gwibber-team ppa https://launchpad.net/~gwibber-team/+archive/ppa

Revision history for this message
Victor Vargas (kamus) wrote :

Please upgrade to latest release of gwibber from PPA or Ubuntu Maverick as OmerAkram said, for now I will mark this issue as fixed

Changed in gwibber (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.