Gwibber crashes at startup

Bug #487489 reported by Hund
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Gwibber
Fix Released
Undecided
Unassigned
Arch Linux
New
Undecided
Unassigned

Bug Description

Ubuntu 9.10
Gwibber 2.0.0~bzr481-0ubuntu1~daily1~karmic

This is what happends when I start Gwibber:

johan@Tiji:~$ gwibber
WARNING:root:desktopcouch is not available. . falling back to gconf

** (gwibber:20056): WARNING **: Trying to register gtype 'WnckWindowState' as flags when in fact it is of type 'GEnum'

** (gwibber:20056): WARNING **: Trying to register gtype 'WnckWindowActions' as flags when in fact it is of type 'GEnum'

** (gwibber:20056): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask' as flags when in fact it is of type 'GEnum'
Traceback (most recent call last):
  File "/usr/bin/gwibber", line 57, in <module>
    client.Client()
  File "/usr/lib/python2.6/dist-packages/gwibber/client.py", line 105, in __init__
    self.w = GwibberClient()
  File "/usr/lib/python2.6/dist-packages/gwibber/client.py", line 188, in __init__
    self.setup_ui()
  File "/usr/lib/python2.6/dist-packages/gwibber/client.py", line 260, in setup_ui
    self.input = gwui.Input(self)
  File "/usr/lib/python2.6/dist-packages/gwibber/gwui.py", line 395, in __init__
    self.textview = InputTextView(client)
  File "/usr/lib/python2.6/dist-packages/gwibber/gwui.py", line 455, in __init__
    self.spell = gtkspell.Spell(self, None)
glib.GError: enchant error for language: en_US.UTF-8

Same thing with the stable version and the previous version from the trunk PPA.

Revision history for this message
Alex Esplin (alex-esplin) wrote :

This is probably not the "Right Way" to fix this, but it works for me:

=== modified file 'gwibber/gwui.py'
--- gwibber/gwui.py 2009-10-22 11:43:06 +0000
+++ gwibber/gwui.py 2009-11-25 17:24:19 +0000
@@ -452,7 +452,11 @@
     self.error_color = gtk.gdk.color_parse("indianred")

     if gtkspell:
- self.spell = gtkspell.Spell(self, None)
+ try:
+ self.spell = gtkspell.Spell(self, None)
+ except:
+ self.spell = None
+ pass

   def get_text(self):
     buf = self.get_buffer()

Revision history for this message
Anonymous (dreamfix) wrote :

This worked here too, thank you. But why is this not "the right way"?

Revision history for this message
Alex Esplin (alex-esplin) wrote :

Mostly because we're just masking away the real problem.

If I had the time, I'd go digging around and find out why gtkspell is raising an exception. Unfortunately, the end of the semester is creeping up on me and I don't have the time.

So I can live without spell-checking. So far, it doesn't seem like this little patch has broken anything else, but it may still be to early to tell.

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

now as gwibber is working for both reporter and the commenter, should we close this bug report?

Changed in gwibber:
status: New → Incomplete
Revision history for this message
Omer Akram (om26er) wrote :

well now marking this fixed

Changed in gwibber:
status: Incomplete → 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.