Intermittent Cucumber exception


#1

Hi

Anyone recognise this exception, and know what causes it to happen
occasionally?

Thanks
Ashley

Scenario: new story appears on
feed # features/descriptions/
story_notification.feature:12
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/…/lib/cucumber/
broadcaster.rb:15:in write': Bad file descriptor (Errno::EBADF) from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/broadcaster.rb:15:inputs’
from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/…/lib/
cucumber/broadcaster.rb:15:in __send__' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/broadcaster.rb:15:inmethod_missing’
from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/…/lib/
cucumber/broadcaster.rb:13:in each' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/broadcaster.rb:13:inmethod_missing’
from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/…/lib/
cucumber/formatters/pretty_formatter.rb:107:in step_failed' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/broadcaster.rb:15:insend
from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/…/lib/
cucumber/broadcaster.rb:15:in method_missing' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/broadcaster.rb:13:ineach’
from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/…/lib/
cucumber/broadcaster.rb:13:in method_missing' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/executor.rb:122:invisit_step’
from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/…/lib/
cucumber/executor.rb:106:in visit_regular_step' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/tree/scenario.rb:15:inaccept’
from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/…/lib/
cucumber/tree/scenario.rb:11:in each' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/tree/scenario.rb:11:inaccept’
from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/…/lib/
cucumber/executor.rb:87:in execute_scenario' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/executor.rb:73:invisit_scenario’
from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/…/lib/
cucumber/executor.rb:67:in visit_regular_scenario' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/tree/feature.rb:57:inaccept’
from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/…/lib/
cucumber/tree/feature.rb:53:in each' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/tree/feature.rb:53:inaccept’
from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/…/lib/
cucumber/executor.rb:50:in visit_feature' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/tree/features.rb:17:inaccept’
from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/…/lib/
cucumber/tree/features.rb:17:in each' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/tree/features.rb:17:inaccept’
from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/…/lib/
cucumber/executor.rb:41:in visit_features' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/cli.rb:167:inexecute!’
from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/…/lib/
cucumber/cli.rb:11:in `execute’
from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/cucumber:6
rake aborted!


http://www.patchspace.co.uk/


#2

On 3 Dec 2008, at 15:55, Ashley M. wrote:

Scenario: new story appears on
feed # features/descriptions/
story_notification.feature:12
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/…/lib/
cucumber/broadcaster.rb:15:in `write’: Bad file descriptor
(Errno::EBADF)
from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/cucumber:6
rake aborted!

I captured it with --trace too, it’s started happening more often…

from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/cucumber:6
rake aborted!
Command failed with status (1): [/opt/local/bin/ruby -I "/opt/local/
lib/rub…]
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:971:in sh' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:984:incall’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:984:in sh' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1072:insh’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1007:in ruby' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1072:inruby’
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/lib/cucumber/rake/
task.rb:34:in define_task' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:incall’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in
execute' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:ineach’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in
execute' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:ininvoke_with_call_chain’
/opt/local/lib/ruby/1.8/monitor.rb:242:in synchronize' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:ininvoke_with_call_chain’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in invoke' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:ininvoke_task’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in
top_level' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:ineach’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in
top_level' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:instandard_exception_handling’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in
top_level' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:inrun’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in
standard_exception_handling' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:inrun’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31
/opt/local/bin/rake:19:in `load’
/opt/local/bin/rake:19


http://www.patchspace.co.uk/


#3

Ashley M. wrote:

/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1007:in ruby' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:instandard_exception_handling’

Can you share the arguments in the relevant Cucumber rake task?

Thanks,

Joseph W.
http://blog.josephwilk.net


#4

On 3 Dec 2008, at 16:19, Joseph W. wrote:

Can you share the arguments in the relevant Cucumber rake task?

That would be this:

Cucumber::Rake::Task.new do |t|
t.cucumber_opts = “–format pretty”
t.step_pattern = “features/steps/**/*.rb”
end


http://www.patchspace.co.uk/