sup-heliotrope / sup

A curses threads-with-tags style email client (mailing list: supmua@googlegroups.com)
http://sup-heliotrope.github.io
GNU General Public License v2.0
889 stars 96 forks source link

just hitting 'j' to move through 40k messages and the whole program crashed #612

Open captain opened 1 year ago

captain commented 1 year ago

--- IOError from thread: load threads for thread-index-mode DatabaseCorruptError: Unexpected end of posting list for 'Kmail' /usr/lib/ruby/vendor_ruby/sup/index.rb:658:in mset' /usr/lib/ruby/vendor_ruby/sup/index.rb:658:inblock in run_query' /usr/lib/ruby/vendor_ruby/sup/index.rb:652:in synchronize' /usr/lib/ruby/vendor_ruby/sup/index.rb:652:insynchronize' /usr/lib/ruby/vendor_ruby/sup/index.rb:656:in run_query' /usr/lib/ruby/vendor_ruby/sup/index.rb:663:inrun_query_ids' /usr/lib/ruby/vendor_ruby/sup/index.rb:287:in each_id' /usr/lib/ruby/vendor_ruby/sup/index.rb:165:ineach_id_by_date' /usr/lib/ruby/vendor_ruby/sup/thread.rb:340:in load_n_threads' /usr/lib/ruby/vendor_ruby/sup/modes/thread_index_mode.rb:686:inload_n_threads' (eval):12:in load_n_threads' /usr/lib/ruby/vendor_ruby/sup/modes/thread_index_mode.rb:670:inblock in load_n_threads_background' /usr/lib/ruby/vendor_ruby/sup.rb:87:in `block in reporting_thread'

captain commented 1 year ago

Dunno if this is the same bug, but I like the program so far (<1hr using it) except for these crashes. I hope this will get fixed soon, else I'll need to find another email program. :-p

[2022-09-10 12:22:30 -0500] WARNING: URI.escape is obsolete [2022-09-10 12:22:30 -0500] WARNING: URI.unescape is obsolete [2022-09-10 12:22:30 -0500] WARNING: URI.escape is obsolete [2022-09-10 12:22:30 -0500] WARNING: URI.escape is obsolete [2022-09-10 12:22:30 -0500] WARNING: URI.escape is obsolete [2022-09-10 12:23:20 -0500] ERROR: oh crap, an exception

We are very sorry. It seems that an error occurred in Sup. Please accept our sincere apologies. Please submit the contents of /home/captain/.sup/exception-log.txt and a brief report of the circumstances to https://github.com/sup-heliotrope/sup/issues so that we might address this problem. Thank you!

Sincerely, The Sup Developers

--- IOError from thread: load threads for thread-index-mode DatabaseCorruptError: Unexpected end of posting list for 'Kmail' /usr/lib/ruby/vendor_ruby/sup/index.rb:658:in mset' /usr/lib/ruby/vendor_ruby/sup/index.rb:658:inblock in run_query' /usr/lib/ruby/vendor_ruby/sup/index.rb:652:in synchronize' /usr/lib/ruby/vendor_ruby/sup/index.rb:652:insynchronize' /usr/lib/ruby/vendor_ruby/sup/index.rb:656:in run_query' /usr/lib/ruby/vendor_ruby/sup/index.rb:663:inrun_query_ids' /usr/lib/ruby/vendor_ruby/sup/index.rb:287:in each_id' /usr/lib/ruby/vendor_ruby/sup/index.rb:165:ineach_id_by_date' /usr/lib/ruby/vendor_ruby/sup/thread.rb:340:in load_n_threads' /usr/lib/ruby/vendor_ruby/sup/modes/thread_index_mode.rb:686:inload_n_threads' (eval):12:in load_n_threads' /usr/lib/ruby/vendor_ruby/sup/modes/thread_index_mode.rb:670:inblock in load_n_threads_background' /usr/lib/ruby/vendor_ruby/sup.rb:87:in `block in reporting_thread'

danc86 commented 1 year ago

I think it means your database was corrupted at some point earlier, sorry. The stack trace doesn't really help to figure out why that would have happened.

Did you get any errors when you first indexed all your mail in sup? Was the sup-add process killed abnormally because of a power cut or it crashed or anything unusual like that?

The nuclear option would be to delete your .sup directory and reindex your mail from scratch. Obviously you lose any tag changes you have made in sup, including archiving threads. If you do decide to try this, it would be great to capture the full output of sup-add and check it carefully to see if sup hit any problems during the indexing.

captain commented 1 year ago

Thanks. Alas, this was a clean fresh installation, starting from scratch, so I guess it was delivered to me corrupt. ¯_(ツ)_/¯ If I do try sup again I'll try to document the process to help with the troubleshooting.
I miss elm. elm Just worked®! ;-)