Subject: [sup-talk] sup crashes on loading my index

From: [email-masked] (Chris)
Date: Wed, 23 Apr 2008 08:26:49 -0400

Hello all!  First let me say how excited I am about sup -- I've been a
mutt user for years, but since learning a bit about gmail I have been
interested in the different paradigm of email management.  I wrote a
couple of scripts to emulate the 'star' feature in mutt (available if
anyone wants them), but it doesn't change how the basis of interaction
is still on folders.

I can't really test sup just yet, though, because it crashes on or very
shortly after loading.  With 0.4, it crashed immediately after loading
the indexes, with 0.5 it seems to have a few seconds of thread view
before it does.  I tried clearing the database by removing
~/.sup/ferret, but the problem came back.  

I've pasted the console output below, and attached the exception log (it
looks like they contain much the same information).  How can I determine
what message is causing the problem?

[Wed Apr 23 07:56:32 -0400 2008] using character set encoding "UTF-8"
[Wed Apr 23 07:56:33 -0400 2008] locking /home/garou/.sup/lock...
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/crypto.rb:18: warning:
Insecure world writable dir /usr
/local/sbin in PATH, mode 040777
[Wed Apr 23 07:56:34 -0400 2008] crypto: detected gpg binary in
/usr/bin/gpg
[Wed Apr 23 07:56:34 -0400 2008] loading index...
[Wed Apr 23 07:56:34 -0400 2008] loaded index of 10296 messages
[Wed Apr 23 07:56:34 -0400 2008] starting curses

/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/index.rb:237:in
`sync_message': just added message "" but couldn't find it in a search
(RuntimeError)
from
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `send'
from
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in
`method_missing'
from /usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:160:in
`add_messages_from'
from
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/maildir.rb:115:in `each'
from
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/maildir.rb:112:in `upto'
from
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/maildir.rb:112:in `each'
from
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:534:in `send'
from
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:534:in `__pass'
...
29 levels...
from
(eval):12:in `load_threads'
from
/usr/lib/ruby/gems/1.8/gems/sup-0.5/bin/sup:210
from
/usr/bin/sup:19:in `load'
from /usr/bin/sup:19
[Wed Apr 23 07:59:43 -0400 2008] stopped cursing
[Wed Apr 23 07:59:43 -0400 2008] oh crap, an exception
[Wed Apr 23 07:59:43 -0400 2008] unlocking /home/garou/.sup/lock...
----------------------------------------------------------------
I'm very sorry. It seems that an error occurred in Sup. Please
accept my sincere apologies. If you don't mind, please send the
contents of sup-exception-log.txt and a brief report of the
circumstances to sup-talk at rubyforge dot orgs so that I might
address this problem. Thank you!

Sincerely,
William
----------------------------------------------------------------
--- RuntimeError from thread: poll after loading inbox
just added message "" but couldn't find it in a search
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/index.rb:237:in
`sync_message'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in
`method_missing'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:160:in
`add_messages_from'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/maildir.rb:115:in `each'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/maildir.rb:112:in `upto'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/maildir.rb:112:in `each'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:534:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:534:in `__pass'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:523:in
`method_missing'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:141:in
`add_messages_from'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:98:in `do_poll'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:86:in `each'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:86:in `do_poll'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:85:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:85:in `do_poll'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in
`method_missing'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/poll-mode.rb:17:in
`poll'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:53:in `poll'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in
`method_missing'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/bin/sup:210
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:60:in `reporting_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `initialize'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `new'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `reporting_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/bin/sup:210
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:536:in
`call'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:536:in
`__unprotected_load_threads'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:478:in
`call'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:478:in
`load_n_threads_background'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:60:in `reporting_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `initialize'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `new'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `reporting_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:476:in
`load_n_threads_background'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:546:in
`__unprotected_load_threads'
(eval):12:in `load_threads'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/bin/sup:210
/usr/bin/sup:19:in `load'
/usr/bin/sup:19
--- SystemExit from thread: main
just added message "" but couldn't find it in a search
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:64:in `select'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/buffer.rb:31:in
`nonblocking_getch'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/bin/sup:227
/usr/bin/sup:19:in `load'
/usr/bin/sup:19

-- 
Chris Witham <christopher.witham at gmail.com>
Computer Engineer and Geek
Fan of video games, anime, and the outdoors

All those who believe in telekinesis, raise my hand.
                       - Kurt Vonnegut
-------------- next part --------------
--- RuntimeError from thread: poll after loading inbox
just added message "" but couldn't find it in a search
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/index.rb:237:in `sync_message'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:160:in `add_messages_from'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/maildir.rb:115:in `each'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/maildir.rb:112:in `upto'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/maildir.rb:112:in `each'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:534:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:534:in `__pass'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:523:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:141:in `add_messages_from'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:98:in `do_poll'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:86:in `each'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:86:in `do_poll'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:85:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:85:in `do_poll'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/poll-mode.rb:17:in `poll'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:53:in `poll'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/bin/sup:210
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:60:in `reporting_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `initialize'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `new'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `reporting_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/bin/sup:210
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:536:in `call'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:536:in `__unprotected_load_threads'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:478:in `call'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:478:in `load_n_threads_background'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:60:in `reporting_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `initialize'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `new'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `reporting_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:476:in `load_n_threads_background'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:546:in `__unprotected_load_threads'
(eval):12:in `load_threads'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/bin/sup:210
/usr/bin/sup:19:in `load'
/usr/bin/sup:19
--- SystemExit from thread: main
just added message "" but couldn't find it in a search
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup.rb:64:in `select'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/lib/sup/buffer.rb:31:in `nonblocking_getch'
/usr/lib/ruby/gems/1.8/gems/sup-0.5/bin/sup:227
/usr/bin/sup:19:in `load'
/usr/bin/sup:19