Subject: [sup-talk] reproducable crashing / encoding problem

From: John Wyzer <[email-masked]>
Date: Mon, 05 Dec 2011 18:45:24 +0100

I'm on sup/mainline:master (commit aaa852fbe513291144301bb31af50558177f891c) 
Opening one specific thread, sup always crashes with the attached trace.
Best regards! :-)

----------------------------------------------------------------
--- Encoding::CompatibilityError from thread: load messages for thread-view-mode
incompatible character encodings: UTF-8 and ASCII-8BIT
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:789:in `message_patina_lines'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:863:in `chunk_to_lines'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:721:in `block in regen_text'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:68:in `block in each'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:176:in `block (2 levels) in each_with_stuff'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:176:in `block (2 levels) in each_with_stuff'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:174:in `each_with_stuff'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:176:in `block in each_with_stuff'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:175:in `each'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:175:in `each_with_stuff'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:176:in `block in each_with_stuff'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:175:in `each'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:175:in `each_with_stuff'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/thread.rb:67:in `each'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:710:in `regen_text'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:172:in `buffer='
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/buffer.rb:388:in `spawn'
(eval):1:in `spawn'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:120:in `block in select'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup.rb:79:in `block in reporting_thread'
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: [email-masked]
Date: Mon, 05 Dec 2011 19:36:28 +0000

> I'm on sup/mainline:master (commit aaa852fbe513291144301bb31af50558177f891c) 

Same here: aaa852fbe513291144301bb31af50558177f891c

> Opening one specific thread, sup always crashes with the attached trace.

Could be related to a problem I recently encountered when forwarding a
specific message. Upon pressing 'y' to send it, sup does this:

[2011-12-05 19:21:16 +0000] ERROR: oh crap, an exception
----------------------------------------------------------------
I'm very sorry. It seems that an error occurred in Sup. Please
accept my sincere apologies. Please submit the contents of
/home/jomat/.sup/exception-log.txt and a brief report of the 
circumstances to http://masanjin.net/sup-bugs/ so that I might
address this problem. Thank you!
                           
Sincerely,                 
William                    
----------------------------------------------------------------
--- Encoding::CompatibilityError from thread: main
incompatible character encodings: UTF-8 and ASCII-8BIT
/var/lib/gems/1.9.1/gems/rmail-1.0.0/lib/rmail/serialize.rb:112:in
`serialize_low'
/var/lib/gems/1.9.1/gems/rmail-1.0.0/lib/rmail/serialize.rb:99:in `block
in serialize_low'
/var/lib/gems/1.9.1/gems/rmail-1.0.0/lib/rmail/message.rb:155:in `block in
each_part'
/var/lib/gems/1.9.1/gems/rmail-1.0.0/lib/rmail/message.rb:154:in `each'
/var/lib/gems/1.9.1/gems/rmail-1.0.0/lib/rmail/message.rb:154:in
`each_part'
/var/lib/gems/1.9.1/gems/rmail-1.0.0/lib/rmail/serialize.rb:96:in
`serialize_low'
/var/lib/gems/1.9.1/gems/rmail-1.0.0/lib/rmail/serialize.rb:63:in
`serialize'
/var/lib/gems/1.9.1/gems/rmail-1.0.0/lib/rmail/message.rb:146:in `to_s'
/home/jomat/sup/lib/sup/modes/edit-message-mode.rb:455:in `puts'
/home/jomat/sup/lib/sup/modes/edit-message-mode.rb:455:in `block in
send_message'
/home/jomat/sup/lib/sup/modes/edit-message-mode.rb:455:in `popen'
/home/jomat/sup/lib/sup/modes/edit-message-mode.rb:455:in `send_message'
/home/jomat/sup/lib/sup/mode.rb:59:in `handle_input'
/home/jomat/sup/lib/sup/buffer.rb:278:in `handle_input'
./bin/sup:271:in `<module:Redwood>'
./bin/sup:80:in `<main>

Didn't find time yet to remove the sensible stuff of the message to attach
it to the report, but it contains umlauts.

cu,
jomat