* [sup-talk] Exception
@ 2009-04-26 0:47 Edward Z. Yang
0 siblings, 0 replies; 5+ messages in thread
From: Edward Z. Yang @ 2009-04-26 0:47 UTC (permalink / raw)
Hello,
sup gets an uncaught exception if you x out a buffer window while it is
loading messages:
----------------------------------------------------------------
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
----------------------------------------------------------------
--- ArgumentError from thread: load messages for thread-view-mode
buffer not on stack: #<Redwood::Buffer:0xb6586518>: "New message in forum"
/usr/lib/ruby/gems/1.8/gems/sup-0.7/lib/sup/buffer.rb:395:in `kill_buffer'
/usr/lib/ruby/gems/1.8/gems/sup-0.7/lib/sup/buffer.rb:386:in `kill_buffer_safely'
/usr/lib/ruby/gems/1.8/gems/sup-0.7/lib/sup/util.rb:499:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.7/lib/sup/util.rb:499:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/sup-0.7/lib/sup/modes/thread-view-mode.rb:452:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/sup-0.7/lib/sup/modes/thread-index-mode.rb:114:in `call'
/usr/lib/ruby/gems/1.8/gems/sup-0.7/lib/sup/modes/thread-index-mode.rb:114:in `select'
/usr/lib/ruby/gems/1.8/gems/sup-0.7/lib/sup.rb:85:in `reporting_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.7/lib/sup.rb:83:in `initialize'
/usr/lib/ruby/gems/1.8/gems/sup-0.7/lib/sup.rb:83:in `new'
/usr/lib/ruby/gems/1.8/gems/sup-0.7/lib/sup.rb:83:in `reporting_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.7/lib/sup/modes/thread-index-mode.rb:94:in `select'
/usr/lib/ruby/gems/1.8/gems/sup-0.7/lib/sup/modes/thread-index-mode.rb:144:in `launch_another_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.7/lib/sup/modes/thread-index-mode.rb:126:in `launch_next_thread_after'
/usr/lib/ruby/gems/1.8/gems/sup-0.7/lib/sup/modes/thread-view-mode.rb:457:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/sup-0.7/lib/sup/modes/thread-view-mode.rb:429:in `delete_and_then'
/usr/lib/ruby/gems/1.8/gems/sup-0.7/lib/sup/modes/thread-view-mode.rb:404:in `delete_and_next'
/usr/lib/ruby/gems/1.8/gems/sup-0.7/lib/sup/mode.rb:49:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.7/lib/sup/mode.rb:49:in `handle_input'
/usr/lib/ruby/gems/1.8/gems/sup-0.7/lib/sup/buffer.rb:240:in `handle_input'
/usr/lib/ruby/gems/1.8/gems/sup-0.7/bin/sup:207
/var/lib/gems/1.8/bin/sup:19:in `load'
/var/lib/gems/1.8/bin/sup:19
Cheers,
Edward
^ permalink raw reply [flat|nested] 5+ messages in thread
* [sup-talk] Exception
@ 2009-07-24 16:35 Marc Weber
2009-07-27 16:41 ` William Morgan
0 siblings, 1 reply; 5+ messages in thread
From: Marc Weber @ 2009-07-24 16:35 UTC (permalink / raw)
Hi, when either running sup-sync or sup (without -n) I get this
exception:
--- NoMethodError from thread: poll after loading inbox
undefined method `to_indexable_s' for nil:NilClass
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/index.rb:244:in `sync_message'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/util.rb:513:in `send'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/util.rb:513:in `method_missing'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/poll.rb:161:in `add_messages_from'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/source.rb:100:in `each'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/util.rb:552:in `send'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/util.rb:552:in `__pass'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/util.rb:539:in `method_missing'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/poll.rb:141:in `add_messages_from'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/poll.rb:98:in `do_poll'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/poll.rb:86:in `each'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/poll.rb:86:in `do_poll'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/poll.rb:85:in `synchronize'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/poll.rb:85:in `do_poll'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/util.rb:513:in `send'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/util.rb:513:in `method_missing'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/modes/poll-mode.rb:17:in `poll'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/poll.rb:53:in `poll'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/util.rb:513:in `send'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/util.rb:513:in `method_missing'
/home/marc/.nix-profile/gems/sup-0.8.1/bin/sup:206
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup.rb:71:in `reporting_thread'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup.rb:69:in `initialize'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup.rb:69:in `new'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup.rb:69:in `reporting_thread'
/home/marc/.nix-profile/gems/sup-0.8.1/bin/sup:206
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/modes/thread-index-mode.rb:663:in `call'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/modes/thread-index-mode.rb:663:in `__unprotected_load_threads'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/modes/thread-index-mode.rb:605:in `call'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/modes/thread-index-mode.rb:605:in `load_n_threads_background'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup.rb:71:in `reporting_thread'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup.rb:69:in `initialize'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup.rb:69:in `new'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup.rb:69:in `reporting_thread'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/modes/thread-index-mode.rb:603:in `load_n_threads_background'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/modes/thread-index-mode.rb:673:in `__unprotected_load_threads'
(eval):12:in `load_threads'
/home/marc/.nix-profile/gems/sup-0.8.1/bin/sup:206
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/bin/.sup-wrapped:19:in `load'
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/bin/.sup-wrapped:19
Do you see what's happening here or shall I start debugging?
The sup-sync exception trace looks like this:
/nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/index.rb:244:in `sync_message': undefined method `to_indexable_s' for nil:NilClass (NoMethodError)
from /nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/util.rb:513:in `send'
from /nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/util.rb:513:in `method_missing'
from /nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/poll.rb:161:in `add_messages_from'
from /nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/source.rb:100:in `each'
from /nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/util.rb:552:in `send'
from /nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/util.rb:552:in `__pass'
from /nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/util.rb:539:in `method_missing'
from /nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/poll.rb:141:in `add_messages_from'
from /nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/util.rb:513:in `send'
from /nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/gems/sup-0.8.1/lib/sup/util.rb:513:in `method_missing'
from /home/marc/.nix-profile/gems/sup-0.8.1/bin/sup-sync:140
from /home/marc/.nix-profile/gems/sup-0.8.1/bin/sup-sync:135:in `each'
from /home/marc/.nix-profile/gems/sup-0.8.1/bin/sup-sync:135
from /nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/bin/.sup-sync-wrapped:19:in `load'
from /nix/store/cg3g3wyz2bibk8zc5ykhdyr2a166x87l-sup-0.8.1/bin/.sup-sync-wrapped:19
Marc Weber
^ permalink raw reply [flat|nested] 5+ messages in thread
* [sup-talk] Exception
2009-07-24 16:35 Marc Weber
@ 2009-07-27 16:41 ` William Morgan
2009-07-27 16:55 ` Marc Weber
0 siblings, 1 reply; 5+ messages in thread
From: William Morgan @ 2009-07-27 16:41 UTC (permalink / raw)
Reformatted excerpts from Marc Weber's message of 2009-07-24:
> Hi, when either running sup-sync or sup (without -n) I get this
> exception:
>
> --- NoMethodError from thread: poll after loading inbox
> undefined method `to_indexable_s' for nil:NilClass
Weird. It looks like a date parsing issue, but I'm having a hard time
seeing where the logic fails such that no date field is set.
Can you try applying the following patch, and then running sup-sync with
-v? I'm hoping that the debugging output prefixed with XX will provide a
clue.
Thanks!
--- a/lib/sup/message.rb
+++ b/lib/sup/message.rb
@@ -92,11 +92,14 @@ class Message
begin
Time.parse date
rescue ArgumentError => e
- #Redwood::log "faking mangled date header for #{@id} (orig #{header['da
+ Redwood::log "faking mangled date header for #{@id} (orig #{header['dat
Time.now
end
- else
- #Redwood::log "faking non-existent date header for #{@id}"
+ end
+
+ @date ||= begin
+ Redwood::log "XX original header was #{header["date"].inspect}"
+ Redwood::log "XX faking non-existent date header for #{@id}"
Time.now
end
--
William <wmorgan-sup at masanjin.net>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [sup-talk] Exception
2009-07-27 16:41 ` William Morgan
@ 2009-07-27 16:55 ` Marc Weber
0 siblings, 0 replies; 5+ messages in thread
From: Marc Weber @ 2009-07-27 16:55 UTC (permalink / raw)
You're right. I fixed it today by running sup-sync. (I was still reading
my mails that's why I didn't respond earlier).
I used p m at that location to get a message output saying something
about offset is out of sync. Then I tried sup-sync -c.
The strange thing is that I didn't open the mbox file using another
program such as mutt. Maybe a locking issue or such ? I'm using
procmail.
I was surprised how easy it was to find the cause after starting looking
into it.
Thanks for taking the time sending this patch!
Marc Weber
Excerpts from William Morgan's message of Mon Jul 27 18:41:05 +0200 2009:
> Reformatted excerpts from Marc Weber's message of 2009-07-24:
> > Hi, when either running sup-sync or sup (without -n) I get this
> > exception:
> >
> > --- NoMethodError from thread: poll after loading inbox
> > undefined method `to_indexable_s' for nil:NilClass
>
> Weird. It looks like a date parsing issue, but I'm having a hard time
> seeing where the logic fails such that no date field is set.
>
> Can you try applying the following patch, and then running sup-sync with
> -v? I'm hoping that the debugging output prefixed with XX will provide a
> clue.
>
> Thanks!
>
> --- a/lib/sup/message.rb
> +++ b/lib/sup/message.rb
> @@ -92,11 +92,14 @@ class Message
> begin
> Time.parse date
> rescue ArgumentError => e
> - #Redwood::log "faking mangled date header for #{@id} (orig #{header['da
> + Redwood::log "faking mangled date header for #{@id} (orig #{header['dat
> Time.now
> end
> - else
> - #Redwood::log "faking non-existent date header for #{@id}"
> + end
> +
> + @date ||= begin
> + Redwood::log "XX original header was #{header["date"].inspect}"
> + Redwood::log "XX faking non-existent date header for #{@id}"
> Time.now
> end
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [sup-talk] exception
@ 2010-09-11 16:58 Daniel Goldin
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Goldin @ 2010-09-11 16:58 UTC (permalink / raw)
To: sup-talk
[-- Attachment #1.1: Type: text/plain, Size: 2496 bytes --]
I got an exception error when reading one of my labels. Any thoughts. I am
not a programmer, so keep it simple, if you will. Exception-log below:
d.
--- RuntimeError from thread: load threads for thread-index-mode
DocNotFoundError: Document 2275758200 not found.
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/index.rb:178:in `document'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/index.rb:178:in
`each_message_in_thread_for'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/index.rb:178:in `map'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/index.rb:178:in
`each_message_in_thread_for'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/thread.rb:341:in
`load_thread_for_message'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/thread.rb:333:in
`load_n_threads'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/index.rb:148:in
`each_id_by_date'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/index.rb:239:in `each_id'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/index.rb:239:in `each'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/index.rb:239:in `each_id'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/index.rb:148:in
`each_id_by_date'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/thread.rb:328:in
`load_n_threads'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/modes/thread-index-mode.rb:640:in
`__unprotected_load_n_threads'
(eval):12:in `load_n_threads'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/modes/thread-index-mode.rb:624:in
`load_n_threads_background'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup.rb:76:in `reporting_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup.rb:74:in `initialize'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup.rb:74:in `new'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup.rb:74:in `reporting_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/modes/thread-index-mode.rb:623:in
`load_n_threads_background'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/modes/thread-index-mode.rb:694:in
`__unprotected_load_threads'
(eval):12:in `load_threads'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/modes/label-search-results-mode.rb:33:in
`spawn_nicely'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/modes/label-list-mode.rb:134:in
`select_label'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/mode.rb:59:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/mode.rb:59:in `handle_input'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/lib/sup/buffer.rb:279:in `handle_input'
/usr/lib/ruby/gems/1.8/gems/sup-0.11/bin/sup:279
/usr/bin/sup:19:in `load'
/usr/bin/sup:19
--
Daniel Goldin
626.817.2462
[-- Attachment #1.2: Type: text/html, Size: 2770 bytes --]
[-- Attachment #2: Type: text/plain, Size: 140 bytes --]
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-09-11 16:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-26 0:47 [sup-talk] Exception Edward Z. Yang
2009-07-24 16:35 Marc Weber
2009-07-27 16:41 ` William Morgan
2009-07-27 16:55 ` Marc Weber
2010-09-11 16:58 [sup-talk] exception Daniel Goldin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox