Ticket #1289 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

conversation window traceback

Reported by: anonymous Owned by: asterix
Priority: high Milestone: 0.9.1
Component: chat Version: 0.9
Severity: major Keywords:
Cc: OS:

Description

With 0.9 on a gentoo system I can't so much as open a normal conversation window before it spits out a traceback.

Traceback (most recent call last):

File "/home/rakaur/gajim-0.9/src/roster_window.py", line 2017, in on_roster_treeview_row_activated

self.new_chat(c, account)

File "/home/rakaur/gajim-0.9/src/roster_window.py", line 1652, in new_chat

account)

File "/home/rakaur/gajim-0.9/src/tabbed_chat_window.py", line 75, in init

self.new_tab(contact)

File "/home/rakaur/gajim-0.9/src/tabbed_chat_window.py", line 508, in new_tab

self.restore_conversation(contact.jid)

File "/home/rakaur/gajim-0.9/src/tabbed_chat_window.py", line 939, in restore_conversation

pending_how_many, timeout)

File "/home/rakaur/gajim-0.9/src/common/logger.py", line 273, in get_last_conversation_lines

jid_id = self.get_jid_id(jid)

File "/home/rakaur/gajim-0.9/src/common/logger.py", line 146, in get_jid_id

self.cur.execute('INSERT INTO jids (jid, type) VALUES (?, ?)', (jid, typ))

AttributeError?: Logger instance has no attribute 'cur'

Attachments

Change History

Changed 3 years ago by nk

init_vars wasn't called.

this can happen only if you don't have the logs.db *AND* if migration failed

very strange. any more info to provide?

Changed 3 years ago by anonymous

It was a clean install with no prior ~/.gajim/.

Changed 3 years ago by anonymous

After leaving my ~/.gajim/ from 0.8.2, the logs were migrated, but it segfaulted upon starting (after migration). I removed everything except logs.db and started it again and it has been ok since (for the last three minutes, anyway).

It seems if someone tries a fresh install they won't even be able to initiate a conversation.

Changed 3 years ago by anonymous

As soon as I try to edit preferences it segfaults.

Changed 3 years ago by anonymous

Seems to have something to do with GTK. Wrong version? Everything's up to date on my system (as far as portage is up to date, which may not say much).

Gentoo Linux x86_64 (amd64) GTK+ 1.2.10 & 2.8.9

rakaur@daedalus ~/gajim-0.9/src $ gdb python GNU gdb 6.4 Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu"...(no debugging symbols found) Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run gajim.py Starting program: /usr/bin/python gajim.py (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 24341)] [New Thread 32769 (LWP 24344)] [New Thread 16386 (LWP 24345)] [Thread 16386 (LWP 24345) exited] [New Thread 32771 (LWP 24346)] [Thread 32771 (LWP 24346) exited] D-Bus python bindings are missing in this computer D-Bus capabilities of Gajim cannot be used Session Management support not available (missing gnome.ui module) [New Thread 49154 (LWP 24347)] [Thread 49154 (LWP 24347) exited]

Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 24341)] 0x00002aaaac83431c in gtk_tree_model_rows_reordered ()

from /usr/lib/libgtk-x11-2.0.so.0

(gdb) bt #0 0x00002aaaac83431c in gtk_tree_model_rows_reordered ()

from /usr/lib/libgtk-x11-2.0.so.0

#1 0x00002aaaac834425 in gtk_tree_model_foreach ()

from /usr/lib/libgtk-x11-2.0.so.0

#2 0x00002aaaac49fe48 in init_gtk ()

from /usr/lib64/python2.4/site-packages/gtk-2.0/gtk/_gtk.so

#3 0x00002aaaaac4fc57 in PyEval?_EvalFrame () from /usr/lib/libpython2.4.so.1.0 #4 0x00002aaaaac50fd0 in PyEval?_EvalFrame () from /usr/lib/libpython2.4.so.1.0 #5 0x00002aaaaac5195b in PyEval?_EvalCodeEx ()

from /usr/lib/libpython2.4.so.1.0

#6 0x00002aaaaac0cb2d in PyFunction?_SetClosure ()

from /usr/lib/libpython2.4.so.1.0

#7 0x00002aaaaabf9430 in PyObject?_Call () from /usr/lib/libpython2.4.so.1.0 #8 0x00002aaaaac0085b in PyMethod?_New () from /usr/lib/libpython2.4.so.1.0 #9 0x00002aaaaabf9430 in PyObject?_Call () from /usr/lib/libpython2.4.so.1.0 #10 0x00002aaaaac4b409 in PyEval?_CallObjectWithKeywords ()

from /usr/lib/libpython2.4.so.1.0

#11 0x00002aaaabd9f0f0 in initgobject ()

from /usr/lib64/python2.4/site-packages/gtk-2.0/gobject.so

#12 0x00002aaaabec7a79 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #13 0x00002aaaabedafe4 in g_signal_has_handler_pending ()

from /usr/lib/libgobject-2.0.so.0

#14 0x00002aaaabedc2a7 in g_signal_emit_valist ()

from /usr/lib/libgobject-2.0.so.0

#15 0x00002aaaabedc613 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #16 0x00002aaaac6fd055 in gtk_combo_box_get_column_span_column ()

from /usr/lib/libgtk-x11-2.0.so.0

#17 0x00002aaaac6fd21d in gtk_combo_box_set_active ()

from /usr/lib/libgtk-x11-2.0.so.0

#18 0x00002aaaac43317b in init_gtk ()

from /usr/lib64/python2.4/site-packages/gtk-2.0/gtk/_gtk.so

#19 0x00002aaaaac4fc57 in PyEval?_EvalFrame () from /usr/lib/libpython2.4.so.1.0 #20 0x00002aaaaac50fd0 in PyEval?_EvalFrame () from /usr/lib/libpython2.4.so.1.0 #21 0x00002aaaaac5195b in PyEval?_EvalCodeEx ()

from /usr/lib/libpython2.4.so.1.0

#22 0x00002aaaaac0cb2d in PyFunction?_SetClosure ()

from /usr/lib/libpython2.4.so.1.0

#23 0x00002aaaaabf9430 in PyObject?_Call () from /usr/lib/libpython2.4.so.1.0 #24 0x00002aaaaac0085b in PyMethod?_New () from /usr/lib/libpython2.4.so.1.0 #25 0x00002aaaaabf9430 in PyObject?_Call () from /usr/lib/libpython2.4.so.1.0 #26 0x00002aaaaac4b409 in PyEval?_CallObjectWithKeywords ()

from /usr/lib/libpython2.4.so.1.0

#27 0x00002aaaabd9f0f0 in initgobject ()

from /usr/lib64/python2.4/site-packages/gtk-2.0/gobject.so

#28 0x00002aaaabec7a79 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #29 0x00002aaaabedafe4 in g_signal_has_handler_pending ()

from /usr/lib/libgobject-2.0.so.0

#30 0x00002aaaabedc2a7 in g_signal_emit_valist ()

from /usr/lib/libgobject-2.0.so.0

#31 0x00002aaaabedc613 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #32 0x00002aaaac870a0d in gtk_widget_show () from /usr/lib/libgtk-x11-2.0.so.0 #33 0x00002aaaac401eed in init_gtk ()

from /usr/lib64/python2.4/site-packages/gtk-2.0/gtk/_gtk.so

#34 0x00002aaaaac4d61a in PyEval?_EvalFrame () from /usr/lib/libpython2.4.so.1.0 #35 0x00002aaaaac5195b in PyEval?_EvalCodeEx ()

from /usr/lib/libpython2.4.so.1.0

#36 0x00002aaaaac0cb2d in PyFunction?_SetClosure ()

from /usr/lib/libpython2.4.so.1.0

#37 0x00002aaaaabf9430 in PyObject?_Call () from /usr/lib/libpython2.4.so.1.0 #38 0x00002aaaaac0085b in PyMethod?_New () from /usr/lib/libpython2.4.so.1.0 #39 0x00002aaaaabf9430 in PyObject?_Call () from /usr/lib/libpython2.4.so.1.0 #40 0x00002aaaaac4b409 in PyEval?_CallObjectWithKeywords ()

from /usr/lib/libpython2.4.so.1.0

#41 0x00002aaaabd9f0f0 in initgobject ()

from /usr/lib64/python2.4/site-packages/gtk-2.0/gobject.so

#42 0x00002aaaabec7a79 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #43 0x00002aaaabedafe4 in g_signal_has_handler_pending ()

from /usr/lib/libgobject-2.0.so.0

#44 0x00002aaaabedc2a7 in g_signal_emit_valist ()

from /usr/lib/libgobject-2.0.so.0

#45 0x00002aaaabedc613 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #46 0x00002aaaac86a7d2 in gtk_widget_activate ()

from /usr/lib/libgtk-x11-2.0.so.0

#47 0x00002aaaac796fa1 in gtk_menu_shell_activate_item ()

from /usr/lib/libgtk-x11-2.0.so.0

#48 0x00002aaaac7972bb in gtk_menu_shell_activate_item ()

from /usr/lib/libgtk-x11-2.0.so.0

#49 0x00002aaaac787a08 in gtk_marshal_VOIDUINT_STRING ()

from /usr/lib/libgtk-x11-2.0.so.0

#50 0x00002aaaabec7a79 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #51 0x00002aaaabedb6cc in g_signal_has_handler_pending ()

from /usr/lib/libgobject-2.0.so.0

#52 0x00002aaaabedc009 in g_signal_emit_valist ()

from /usr/lib/libgobject-2.0.so.0

#53 0x00002aaaabedc613 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #54 0x00002aaaac86a910 in gtk_widget_activate ()

from /usr/lib/libgtk-x11-2.0.so.0

#55 0x00002aaaac785dc1 in gtk_propagate_event ()

from /usr/lib/libgtk-x11-2.0.so.0

#56 0x00002aaaac78610c in gtk_main_do_event ()

from /usr/lib/libgtk-x11-2.0.so.0

#57 0x00002aaaacacb5a0 in gdk_event_get_graphics_expose ()

from /usr/lib/libgdk-x11-2.0.so.0

#58 0x00002aaaac1264f6 in g_main_context_dispatch ()

from /usr/lib/libglib-2.0.so.0

#59 0x00002aaaac127f18 in g_main_context_acquire ()

from /usr/lib/libglib-2.0.so.0

#60 0x00002aaaac12827a in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 #61 0x00002aaaac7855e1 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0 #62 0x00002aaaac4a759d in init_gtk ()

from /usr/lib64/python2.4/site-packages/gtk-2.0/gtk/_gtk.so

#63 0x00002aaaaac4d61a in PyEval?_EvalFrame () from /usr/lib/libpython2.4.so.1.0 #64 0x00002aaaaac5195b in PyEval?_EvalCodeEx ()

from /usr/lib/libpython2.4.so.1.0

#65 0x00002aaaaac51ba2 in PyEval?_EvalCode () from /usr/lib/libpython2.4.so.1.0 #66 0x00002aaaaac6b399 in PyErr?_Display () from /usr/lib/libpython2.4.so.1.0 #67 0x00002aaaaac6c3ed in PyRun?_SimpleFileExFlags ()

from /usr/lib/libpython2.4.so.1.0

#68 0x00002aaaaac72436 in Py_Main () from /usr/lib/libpython2.4.so.1.0 #69 0x00002aaaab61ed00 in libc_start_main () from /lib/libc.so.6 #70 0x00000000004007ca in _start () (gdb)

Changed 3 years ago by asterix

  • version set to 0.9
  • milestone changed from 0.9 to 0.9.1

TB is fixed, and about your segfault, which GCC do you have ? please read Q16 in FAQ: http://trac.gajim.org/wiki/GajimFaq

Changed 3 years ago by anonymous

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

That's a bit of a pain, but fixed it. Unfortunately 4.x doesn't do any good for me on other programs. At least gajim can go ten seconds without segfaulting now!

Thanks for the quick handling guys.

Add/Change #1289 (conversation window traceback)

Author



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