Ticket #4034 (closed defect: fixed)

Opened 5 months ago

Last modified 3 months ago

Traceback on decode('utf-8')

Reported by: r000n Owned by: asterix
Priority: normal Milestone: 0.12
Component: None Version: svn
Severity: normal Keywords:
Cc: OS: All

Description

Traceback for r9822:

/home/r000n/svn/gajim/trunk/gajim/src/roster_window.py:2418: GtkWarning: gtk_tree_model_filter_get_value: assertion `GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed
  jid = model[titer][C_JID].decode('utf-8')
Traceback (most recent call last):
  File "/home/r000n/svn/gajim/trunk/gajim/src/roster_window.py", line 2418, in on_unblock
    jid = model[titer][C_JID].decode('utf-8')
  File "/usr/lib/python2.5/warnings.py", line 62, in warn
    globals)
  File "/usr/lib/python2.5/warnings.py", line 83, in warn_explicit
    for item in filters:
TypeError: unknown type (null)
/home/r000n/svn/gajim/trunk/gajim/src/roster_window.py:2365: GtkWarning: gtk_tree_model_filter_get_value: assertion `GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed
  jid = model[titer][C_JID].decode('utf-8')
Traceback (most recent call last):
  File "/home/r000n/svn/gajim/trunk/gajim/src/roster_window.py", line 2365, in on_block
    jid = model[titer][C_JID].decode('utf-8')
  File "/usr/lib/python2.5/warnings.py", line 62, in warn
    globals)
  File "/usr/lib/python2.5/warnings.py", line 83, in warn_explicit
    for item in filters:
TypeError: unknown type (null)
Traceback (most recent call last):
  File "/home/r000n/svn/gajim/trunk/gajim/src/roster_window.py", line 2418, in on_unblock
    jid = model[titer][C_JID].decode('utf-8')
  File "/usr/lib/python2.5/warnings.py", line 62, in warn
    globals)
  File "/usr/lib/python2.5/warnings.py", line 83, in warn_explicit
    for item in filters:
TypeError: unknown type (null)

Attachments

Change History

Changed 5 months ago by asterix

the traceback is in python itself ... That looks like a bug in python ...

Changed 5 months ago by Jim++

I saw this one too..

Changed 5 months ago by asterix

any way to reproduce?

Changed 5 months ago by r000n

As usually, I don't know it)

Changed 5 months ago by steve-e

  • status changed from new to closed
  • resolution set to worksforme

This is modelfilter related and I just assume it is fixed...

Changed 4 months ago by r000n

  • status changed from closed to reopened
  • resolution worksforme deleted

Got now:

/home/r000n/svn/gajim/trunk/gajim/src/roster_window.py:2324: GtkWarning: gtk_tree_model_filter_get_value: assertion `GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed
  jid = model[titer][C_JID].decode('utf-8')
Traceback (most recent call last):
  File "/home/r000n/svn/gajim/trunk/gajim/src/roster_window.py", line 2324, in on_block
    jid = model[titer][C_JID].decode('utf-8')
  File "/usr/lib/python2.5/warnings.py", line 62, in warn
    globals)
  File "/usr/lib/python2.5/warnings.py", line 83, in warn_explicit
    for item in filters:
TypeError: unknown type (null)

Changed 4 months ago by asterix

you know which contact you blocked when you got this TB? Does it happen again when you block it again? Does this contact has strange chars in his nick?

Changed 3 months ago by r000n

/home/r000n/svn/gajim/gajim/src/roster_window.py:2577: GtkWarning: gtk_tree_model_filter_get_value: assertion `GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed
  jid = model[titer][C_JID].decode('utf-8')
Traceback (most recent call last):
  File "/home/r000n/svn/gajim/gajim/src/roster_window.py", line 2577, in on_unblock
    jid = model[titer][C_JID].decode('utf-8')
  File "/usr/lib/python2.5/warnings.py", line 62, in warn
    globals)
  File "/usr/lib/python2.5/warnings.py", line 83, in warn_explicit
    for item in filters:
TypeError: unknown type (null)

It happened now when I often blocked and unblocked icq transport

Changed 3 months ago by asterix

could you add a print model[titer][C_JID] in roster_window.py just before this line and show us what is printed in console?

Changed 3 months ago by r000n

Added

Changed 3 months ago by r000n

/home/r000n/svn/gajim/gajim/src/roster_window.py:2577: GtkWarning: gtk_tree_model_filter_get_value: assertion `GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed
  print model[titer][C_JID]
Traceback (most recent call last):
  File "/home/r000n/svn/gajim/gajim/src/roster_window.py", line 2577, in on_unblock
    print model[titer][C_JID]
  File "/usr/lib/python2.5/warnings.py", line 62, in warn
    globals)
  File "/usr/lib/python2.5/warnings.py", line 83, in warn_explicit
    for item in filters:
TypeError: unknown type (null)

Changed 3 months ago by r000n

I'm added line print model[titer] before print model[titer][C_JID] and got this:

<gtk.TreeModelRow object at 0x9ba5fa0>
/home/r000n/svn/gajim/gajim/src/roster_window.py:2578: GtkWarning: gtk_tree_model_filter_get_value: assertion `GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed
  print model[titer][C_JID]
Traceback (most recent call last):
  File "/home/r000n/svn/gajim/gajim/src/roster_window.py", line 2578, in on_unblock
    print model[titer][C_JID]
  File "/usr/lib/python2.5/warnings.py", line 62, in warn
    globals)
  File "/usr/lib/python2.5/warnings.py", line 83, in warn_explicit
    for item in filters:
TypeError: unknown type (null)

I pressed button too quickly when Gajim not redraw contact list yet? :)

Changed 3 months ago by steve-e

Bug spotted:

[23:08:19] steve-e: Its a general problem how we built our menus
[23:08:35] Asterix: really ?
[23:08:39] steve-e: In build_menu we do stuff like that:
[23:08:53] steve-e: rename_menuitem.connect('activate', self.on_rename, titer, tree_path)
[23:09:06] steve-e: Now Imagine that you open the menu
[23:09:12] Asterix: haaaa ok ok
[23:09:16] steve-e: It gets filled and the iter is put in
[23:09:23] Asterix: when titer is modified before you select it
[23:09:26] steve-e: It can be invalidated at any time
[23:09:52] steve-e: Yes, it is an iter of modelfilter and can be invalidated by ANY gtk event.

Changed 3 months ago by asterix

  • status changed from reopened to closed
  • resolution set to fixed

(In [10329]) don't pass iters to menuitems callback, that are quickly invalid. Fixes #4034

Add/Change #4034 (Traceback on decode('utf-8'))

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.