After reboot I am no longer able to chat with a user
Just minutes ago we had a power outage, it seems that resulted in sqlite not being able to flush log files properly. Now when trying to continue the conversation I get a traceback and no chat window opens:
Traceback (most recent call last):
File "/usr/share/gajim/src/dialogs.py", line 1057, in on_okbutton_clicked
self.ok_handler(user_input)
File "/usr/share/gajim/src/dialogs.py", line 1332, in new_chat_response
gajim.interface.roster.new_chat_from_jid(self.account, jid)
File "/usr/share/gajim/src/roster_window.py", line 3117, in new_chat_from_jid
self.new_chat(contact, account, resource = resource)
File "/usr/share/gajim/src/roster_window.py", line 3095, in new_chat
chat_control = ChatControl(mw, contact, account, resource)
File "/usr/share/gajim/src/chat_control.py", line 944, in __init__
self.restore_conversation()
File "/usr/share/gajim/src/chat_control.py", line 1680, in restore_conversation
pending_how_many, timeout, self.account)
File "/usr/share/gajim/src/common/logger.py", line 444, in get_last_conversation_lines
timed_out, restore_how_many_rows, pending_how_many)
sqlite3.DatabaseError: database disk image is malformed
While I might be able to fix it manually, an average Jane in the street won't. Please make Gajim catch such exceptions and either fix the DB automatically or just tell the user what happened and suggest some way of fixing (even if that means "remove the whole history"). Unless you launch Gajim from a terminal there is no way to tell what takes the chat window so long to open (it actually never opens to confuse the user even further).