Crash on start with broken OMEMO archived message
Please first check if another issue has been opened for your problem
Versions
- OS: ArchLinux
- Gajim version: 1.3.2-1
Steps to reproduce the problem
Not shure how to reproduce problem. Clearing cache and message archive not helps.
Expected behavior
Start app
Actual behavior
> gajim
No translations found
Dirs searched: [PosixPath('/home/user/.local/share'), PosixPath('/usr/local/share'), PosixPath('/usr/share')]
05/12/2021 09:01:03 (E) gajim.c.ged Error while running an event handler: <bound method GroupchatControl._on_mam_decrypted_message_received of <gajim.groupchat_control.GroupchatControl object at 0x7fd760013f70>>
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/gajim/common/ged.py", line 101, in raise_event
if handler(*args, **kwargs):
File "/usr/lib/python3.9/site-packages/gajim/common/helpers.py", line 1014, in func_wrapper
return func(self, event, *args, **kwargs)
File "/usr/lib/python3.9/site-packages/gajim/groupchat_control.py", line 791, in _on_mam_decrypted_message_received
self.add_message(event.msgtxt,
File "/usr/lib/python3.9/site-packages/gajim/groupchat_control.py", line 895, in add_message
ChatControlBase.add_message(self,
File "/usr/lib/python3.9/site-packages/gajim/chat_control_base.py", line 1158, in add_message
textview.print_conversation_line(text,
File "/usr/lib/python3.9/site-packages/gajim/conversation_textview.py", line 974, in print_conversation_line
self.corrected_text_list[message_id])
KeyError: 'c2a0k1tprcds7p31sj2g'
(org.gajim.Gajim:11953): Gtk-CRITICAL **: 09:01:03.275: gtk_text_buffer_get_iter_at_mark: assertion '!gtk_text_mark_get_deleted (mark)' failed
[1] 11953 segmentation fault (core dumped) gajim
Hotfix
On line 974, file "/usr/lib/python3.9/site-packages/gajim/conversation_textview.py" add exception:
if corrected:
try:
message_line.set_correction(
self.corrected_text_list[message_id])
except:
print('hotfix')