Subject: [sup-talk] trying out sup ...

From: [email-masked] (lee)
Date: Sat, 18 Jul 2009 01:41:51 -0600

Hi,

I've started trying out sup on Debian Testing amd64. Searching didn't
work, so I installed a replacement library[1] after finding a bug
report[2].

Now the search would work, but when I'm trying to enter something to
search for or only press enter to see a list of labels I used, no
matches are found, and the status line shows some garbage characters
as string that has been searched for. This happens when sup is running
in an xterm or in rxvt; it doesn't happen when I switch to the console
and run sup there.

So I had sup running on the console and tried out to search for
something while sup was looking for new messages in a maildir. But
then it crashed and told me I should send a bug report[3].

Maybe I have created some incompatibilities by installing the
replacement library. But is it currently possible to run sup on Debian
Testing without too much difficulty? If so, what do I need to do?

[1]:
http://apt.rupamsunyata.org/sup/libncurses-ruby1.8_1.2.3-0.2_amd64.deb
[2]:
http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/d79896cacc28e0e8/7a76dece1e5ef6a3?lnk=raot
[3]: ~/.sup/exception-log.txt:

--- NoMethodError from thread: poll after loading inbox
undefined method `content_width' for nil:NilClass
/usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:747:in `from_width'
/usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:672:in `text_for_thread_at'
/usr/lib/ruby/1.8/sup/hook.rb:134:in `each_with_index'
/usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:671:in `each'
/usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:671:in `each_with_index'
/usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:671:in `text_for_thread_at'
/usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:632:in `regen_text'
/usr/lib/ruby/1.8/sup/util.rb:344:in `map_with_index'
/usr/lib/ruby/1.8/sup/hook.rb:134:in `each_with_index'
/usr/lib/ruby/1.8/sup/util.rb:344:in `each'
/usr/lib/ruby/1.8/sup/util.rb:344:in `each_with_index'
/usr/lib/ruby/1.8/sup/util.rb:344:in `map_with_index'
/usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:632:in `regen_text'
/usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:219:in `update'
/usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:576:in `add_or_unhide'
/usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:181:in `handle_added_update'
/usr/lib/ruby/1.8/sup/update.rb:27:in `send'
/usr/lib/ruby/1.8/sup/update.rb:27:in `relay'
/usr/lib/ruby/1.8/sup/update.rb:27:in `each'
/usr/lib/ruby/1.8/sup/update.rb:27:in `relay'
/usr/lib/ruby/1.8/sup/util.rb:499:in `send'
/usr/lib/ruby/1.8/sup/util.rb:499:in `method_missing'
/usr/lib/ruby/1.8/sup/poll.rb:161:in `add_messages_from'
/usr/lib/ruby/1.8/sup/maildir.rb:130:in `each'
/usr/lib/ruby/1.8/sup/maildir.rb:127:in `upto'
/usr/lib/ruby/1.8/sup/maildir.rb:127:in `each'
/usr/lib/ruby/1.8/sup/util.rb:538:in `send'
/usr/lib/ruby/1.8/sup/util.rb:538:in `__pass'
/usr/lib/ruby/1.8/sup/util.rb:525:in `method_missing'
/usr/lib/ruby/1.8/sup/poll.rb:141:in `add_messages_from'
/usr/lib/ruby/1.8/sup/poll.rb:98:in `do_poll'
/usr/lib/ruby/1.8/sup/poll.rb:86:in `each'
/usr/lib/ruby/1.8/sup/poll.rb:86:in `do_poll'
/usr/lib/ruby/1.8/sup/poll.rb:85:in `synchronize'
/usr/lib/ruby/1.8/sup/poll.rb:85:in `do_poll'
/usr/lib/ruby/1.8/sup/util.rb:499:in `send'
/usr/lib/ruby/1.8/sup/util.rb:499:in `method_missing'
/usr/lib/ruby/1.8/sup/modes/poll-mode.rb:17:in `poll'
/usr/lib/ruby/1.8/sup/poll.rb:53:in `poll'
/usr/lib/ruby/1.8/sup/util.rb:499:in `send'
/usr/lib/ruby/1.8/sup/util.rb:499:in `method_missing'
/usr/bin/sup-mail:173
/usr/lib/ruby/1.8/sup.rb:84:in `reporting_thread'
/usr/lib/ruby/1.8/sup.rb:82:in `initialize'
/usr/lib/ruby/1.8/sup.rb:82:in `new'
/usr/lib/ruby/1.8/sup.rb:82:in `reporting_thread'
/usr/bin/sup-mail:173
/usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:543:in `call'
/usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:543:in `__unprotected_load_threads'
/usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:485:in `call'
/usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:485:in `load_n_threads_background'
/usr/lib/ruby/1.8/sup.rb:84:in `reporting_thread'
/usr/lib/ruby/1.8/sup.rb:82:in `initialize'
/usr/lib/ruby/1.8/sup.rb:82:in `new'
/usr/lib/ruby/1.8/sup.rb:82:in `reporting_thread'
/usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:483:in `load_n_threads_background'
/usr/lib/ruby/1.8/sup/modes/thread-index-mode.rb:553:in `__unprotected_load_threads'
(eval):12:in `load_threads'
/usr/bin/sup-mail:173

---

From: [email-masked] (William Morgan)
Date: Tue, 28 Jul 2009 08:06:34 -0700

Hi Lee,

> Testing without too much difficulty? If so, what do I need to do?

That particular crash is a transient thing, I think---there is some
race condition with the display logic that occasionally manifests itself
as such. I would just retry. I have tentative plans to rewrite a lot of
the display stuff without threads once we're Ruby 1.9 ready.

I don't know why display is corrupt in rxvt. Do other ncurses apps
display ok?
-- 
William <wmorgan-sup at masanjin.net>