[Backgroundrb-devel] Schedule write errors?

Joel Chippindale joel.chippindale at gmail.com
Wed May 21 11:49:22 EDT 2008


My BackgrounDRb server intermittently bails out with the following exception
in the middle of a long running task running on a Worker sub classed
from BackgrounDRb::MetaWorker (the point at which it raises this exception
is different each time it runs)
/opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:145:in
`schedule_write': You have a nil object when you didn't expect it!
(NoMethodError)
The error occurred while evaluating nil.instance from
/opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_nbio.rb:57:in
`write_and_schedule'
from
/Users/joel/git/deathstar/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/whiny_nil.rb:35:in
`each_with_index'
from
/opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_nbio.rb:51:in
`each'
from
/opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_nbio.rb:51:in
`each_with_index'
from
/opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_nbio.rb:51:in
`write_and_schedule'
from
/opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_nbio.rb:72:in
`dump_object'
from
/opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_worker.rb:31:in
`send_data'
from
/opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_worker.rb:40:in
`send_request'
 ... 23 levels...
from
/opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_master.rb:20:in
`run'
from
/Users/joel/git/deathstar/vendor/plugins/backgroundrb/server/lib/master_worker.rb:166:in
`initialize'
from script/backgroundrb:60:in `new'
from script/backgroundrb:60

I am running BackgrounDRb (r 324 from the subversion repository), with
packet v 0.1.5 on OS X.

Any suggestions for resolving this problem are welcomed.

J.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080521/23f0b11c/attachment.html>


More information about the Backgroundrb-devel mailing list