Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] sup exception
@ 2010-04-20  1:08 Brian May
  2010-06-10  0:39 ` Brian May
  0 siblings, 1 reply; 9+ messages in thread
From: Brian May @ 2010-04-20  1:08 UTC (permalink / raw)
  To: sup-talk

If I try to search for the string "outage" in my mail, sup crashes, every time:


[Tue Apr 20 11:06:59 +1000 2010] 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/brian/.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
----------------------------------------------------------------
--- RuntimeError from thread: load threads for thread-index-mode
wrong id called on nil
/home/brian/tree/sup/lib/sup.rb:17:in `id'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:234:in `update'
/home/brian/tree/sup/lib/sup/hook.rb:123:in `sort_by'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:234:in `each'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:234:in `sort_by'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:234:in `update'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:232:in `synchronize'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:232:in `update'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:652:in
`__unprotected_load_n_threads'
(eval):12:in `load_n_threads'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:624:in
`load_n_threads_background'
/home/brian/tree/sup/lib/sup.rb:77:in `reporting_thread'
/home/brian/tree/sup/lib/sup.rb:75:in `initialize'
/home/brian/tree/sup/lib/sup.rb:75:in `new'
/home/brian/tree/sup/lib/sup.rb:75:in `reporting_thread'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:623:in
`load_n_threads_background'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:694:in
`__unprotected_load_threads'
(eval):12:in `load_threads'
/home/brian/tree/sup/lib/sup/modes/search-results-mode.rb:48:in
`spawn_from_query'
/home/brian/tree/sup/bin/sup:294


-- 
Brian May <brian@microcomaustralia.com.au>
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [sup-talk] sup exception
  2010-04-20  1:08 [sup-talk] sup exception Brian May
@ 2010-06-10  0:39 ` Brian May
  2010-06-10  1:44   ` Rich Lane
  0 siblings, 1 reply; 9+ messages in thread
From: Brian May @ 2010-06-10  0:39 UTC (permalink / raw)
  To: sup-talk

I am still getting similar results. Unfortunately, if this cannot be
resolved I will have to look for alternatives to sup; I use sup so I
can access my old emails easily, but it keeps crashing when I try to
do so :-(

Latest stack trace:

 [Thu Jun 10 10:39:59 +1000 2010] 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/brian/.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
----------------------------------------------------------------
--- RuntimeError from thread: load threads for thread-index-mode
wrong id called on nil
/home/brian/tree/sup/lib/sup.rb:17:in `id'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:234:in `update'
/home/brian/tree/sup/lib/sup/hook.rb:123:in `sort_by'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:234:in `each'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:234:in `sort_by'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:234:in `update'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:232:in `synchronize'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:232:in `update'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:652:in
`__unprotected_load_n_threads'
(eval):12:in `load_n_threads'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:624:in
`load_n_threads_background'
/home/brian/tree/sup/lib/sup.rb:77:in `reporting_thread'
/home/brian/tree/sup/lib/sup.rb:75:in `initialize'
/home/brian/tree/sup/lib/sup.rb:75:in `new'
/home/brian/tree/sup/lib/sup.rb:75:in `reporting_thread'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:623:in
`load_n_threads_background'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:694:in
`__unprotected_load_threads'
(eval):12:in `load_threads'
/home/brian/tree/sup/lib/sup/modes/search-results-mode.rb:48:in
`spawn_from_query'
/home/brian/tree/sup/bin/sup:295


On 20 April 2010 11:08, Brian May <brian@microcomaustralia.com.au> wrote:
> If I try to search for the string "outage" in my mail, sup crashes, every time:
>
>
> [Tue Apr 20 11:06:59 +1000 2010] 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/brian/.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
> ----------------------------------------------------------------
> --- RuntimeError from thread: load threads for thread-index-mode
> wrong id called on nil
> /home/brian/tree/sup/lib/sup.rb:17:in `id'
> /home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:234:in `update'
> /home/brian/tree/sup/lib/sup/hook.rb:123:in `sort_by'
> /home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:234:in `each'
> /home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:234:in `sort_by'
> /home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:234:in `update'
> /home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:232:in `synchronize'
> /home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:232:in `update'
> /home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:652:in
> `__unprotected_load_n_threads'
> (eval):12:in `load_n_threads'
> /home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:624:in
> `load_n_threads_background'
> /home/brian/tree/sup/lib/sup.rb:77:in `reporting_thread'
> /home/brian/tree/sup/lib/sup.rb:75:in `initialize'
> /home/brian/tree/sup/lib/sup.rb:75:in `new'
> /home/brian/tree/sup/lib/sup.rb:75:in `reporting_thread'
> /home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:623:in
> `load_n_threads_background'
> /home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:694:in
> `__unprotected_load_threads'
> (eval):12:in `load_threads'
> /home/brian/tree/sup/lib/sup/modes/search-results-mode.rb:48:in
> `spawn_from_query'
> /home/brian/tree/sup/bin/sup:294
>
>
> --
> Brian May <brian@microcomaustralia.com.au>
>



-- 
Brian May <brian@microcomaustralia.com.au>
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [sup-talk] sup exception
  2010-06-10  0:39 ` Brian May
@ 2010-06-10  1:44   ` Rich Lane
  2010-06-10  2:00     ` Brian May
  0 siblings, 1 reply; 9+ messages in thread
From: Rich Lane @ 2010-06-10  1:44 UTC (permalink / raw)
  To: Brian May; +Cc: sup-talk

I've pushed a workaround for this issue to master.
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [sup-talk] sup exception
  2010-06-10  1:44   ` Rich Lane
@ 2010-06-10  2:00     ` Brian May
  2010-06-10  2:15       ` Rich Lane
  0 siblings, 1 reply; 9+ messages in thread
From: Brian May @ 2010-06-10  2:00 UTC (permalink / raw)
  To: Rich Lane; +Cc: sup-talk

On 10 June 2010 11:44, Rich Lane <rlane@club.cc.cmu.edu> wrote:
> I've pushed a workaround for this issue to master.

No joy :-(

[Thu Jun 10 12:02:13 +1000 2010] 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/brian/.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
----------------------------------------------------------------
--- NoMethodError from thread: load threads for thread-index-mode
undefined method `to_nice_s' for nil:NilClass
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:919:in
`default_date_widget_for'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:733:in
`date_widget_for_thread'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:237:in `update'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:237:in `map'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:237:in `update'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:232:in `synchronize'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:232:in `update'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:652:in
`__unprotected_load_n_threads'
(eval):12:in `load_n_threads'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:624:in
`load_n_threads_background'
/home/brian/tree/sup/lib/sup.rb:77:in `reporting_thread'
/home/brian/tree/sup/lib/sup.rb:75:in `initialize'
/home/brian/tree/sup/lib/sup.rb:75:in `new'
/home/brian/tree/sup/lib/sup.rb:75:in `reporting_thread'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:623:in
`load_n_threads_background'
/home/brian/tree/sup/lib/sup/modes/thread-index-mode.rb:694:in
`__unprotected_load_threads'
(eval):12:in `load_threads'
/home/brian/tree/sup/lib/sup/modes/search-results-mode.rb:48:in
`spawn_from_query'
/home/brian/tree/sup/bin/sup:295




Do I need to do anything, e.g. update my indexes, for this to work?

Thanks
-- 
Brian May <brian@microcomaustralia.com.au>
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [sup-talk] sup exception
  2010-06-10  2:00     ` Brian May
@ 2010-06-10  2:15       ` Rich Lane
  2010-06-10  2:42         ` Ben Walton
  2010-06-10  2:47         ` Brian May
  0 siblings, 2 replies; 9+ messages in thread
From: Rich Lane @ 2010-06-10  2:15 UTC (permalink / raw)
  To: Brian May; +Cc: sup-talk

Try it now.
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [sup-talk] sup exception
  2010-06-10  2:15       ` Rich Lane
@ 2010-06-10  2:42         ` Ben Walton
  2010-07-03 13:35           ` Ben Walton
  2010-07-13  2:05           ` Rich Lane
  2010-06-10  2:47         ` Brian May
  1 sibling, 2 replies; 9+ messages in thread
From: Ben Walton @ 2010-06-10  2:42 UTC (permalink / raw)
  To: sup-talk

[-- Attachment #1: Type: text/plain, Size: 323 bytes --]

Excerpts from Rich Lane's message of Wed Jun 09 22:15:07 -0400 2010:
> Try it now.

I needed the following patch to run (old 1.8 here; no
Symbol#to_proc).

/me goes back to building xapian for ruby 1.9.1 on rhel5.

Thanks
-Ben
--
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302


[-- Attachment #2: 0001-symbol-to-proc.patch --]
[-- Type: application/octet-stream, Size: 853 bytes --]

From 8f9cd7e38b532366e6caed6e1f790d3265bbbb90 Mon Sep 17 00:00:00 2001
From: Ben Walton <bwalton@artsci.utoronto.ca>
Date: Wed, 9 Jun 2010 22:27:44 -0400
Subject: [PATCH] Conditionally add Symbol#to_proc

Add a utility monkey-patch for versions of ruby that don't have the
to_proc method for Symbols.

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
---
 lib/sup/util.rb |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/lib/sup/util.rb b/lib/sup/util.rb
index 38c4eb2..27574c5 100644
--- a/lib/sup/util.rb
+++ b/lib/sup/util.rb
@@ -6,6 +6,14 @@ require 'set'
 require 'enumerator'
 
 ## time for some monkeypatching!
+class Symbol
+  unless method_defined? :to_proc
+    def to_proc
+      proc {  |obj, *args| obj.send(self, *args) }
+    end
+  end
+end
+
 class Lockfile
   def gen_lock_id
     Hash[
-- 
1.7.0


[-- Attachment #3: 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] 9+ messages in thread

* Re: [sup-talk] sup exception
  2010-06-10  2:15       ` Rich Lane
  2010-06-10  2:42         ` Ben Walton
@ 2010-06-10  2:47         ` Brian May
  1 sibling, 0 replies; 9+ messages in thread
From: Brian May @ 2010-06-10  2:47 UTC (permalink / raw)
  To: Rich Lane; +Cc: sup-talk

On 10 June 2010 12:15, Rich Lane <rlane@club.cc.cmu.edu> wrote:
> Try it now.

It still... Oh wait forgot to run git merge... My bad.

It doesn't crash anymore!

Thanks for this.

Glad to have assisted making sup more robust.
-- 
Brian May <brian@microcomaustralia.com.au>
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [sup-talk] sup exception
  2010-06-10  2:42         ` Ben Walton
@ 2010-07-03 13:35           ` Ben Walton
  2010-07-13  2:05           ` Rich Lane
  1 sibling, 0 replies; 9+ messages in thread
From: Ben Walton @ 2010-07-03 13:35 UTC (permalink / raw)
  To: sup-talk

Excerpts from Ben Walton's message of Wed Jun 09 22:42:12 -0400 2010:

> I needed the following patch to run (old 1.8 here; no
> Symbol#to_proc).

Bump...

Thanks
-Ben
--
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302

_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [sup-talk] sup exception
  2010-06-10  2:42         ` Ben Walton
  2010-07-03 13:35           ` Ben Walton
@ 2010-07-13  2:05           ` Rich Lane
  1 sibling, 0 replies; 9+ messages in thread
From: Rich Lane @ 2010-07-13  2:05 UTC (permalink / raw)
  To: Ben Walton; +Cc: sup-talk

Applied to master.
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-07-13  2:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-20  1:08 [sup-talk] sup exception Brian May
2010-06-10  0:39 ` Brian May
2010-06-10  1:44   ` Rich Lane
2010-06-10  2:00     ` Brian May
2010-06-10  2:15       ` Rich Lane
2010-06-10  2:42         ` Ben Walton
2010-07-03 13:35           ` Ben Walton
2010-07-13  2:05           ` Rich Lane
2010-06-10  2:47         ` Brian May

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox