Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

"file not added for reaping" error #763

Closed
joliss opened this Issue · 3 comments

3 participants

@joliss
Collaborator

Hey @jarib, I remember seeing this file not added for reaping error occasionally on Travis, but now it occurs reliably on my system. Can you reproduce it, or is there anything I can do to debug this?

capybara $ rake
/home/ubuntu/.rbenv/versions/1.9.3-p194/bin/ruby -S rspec ./spec/capybara_spec.rb ./spec/server_spec.rb ./spec/basic_node_spec.rb ./spec/dsl_spec.rb ./spec/rack_test_spec.rb ./spec/rspec_spec.rb ./spec/selenium_spec.rb ./spec/save_and_open_page_spec.rb ./spec/rspec/matchers_spec.rb ./spec/rspec/features_spec.rb --color
  1533/1533:   100% |=====================================================================================================================================================================| Time: 00:02:55

Finished in 2 minutes 55.29 seconds
1533 examples, 0 failures
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/common/file_reaper.rb:32:in `reap': file not added for reaping: "/tmp/webdriver-profile20120719-15511-1n8y3qn" (Selenium::WebDriver::Error::WebDriverError)
    from /home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/firefox/launcher.rb:45:in `quit'
    from /home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/firefox/bridge.rb:50:in `ensure in quit'
    from /home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/firefox/bridge.rb:50:in `quit'
    from /home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/common/driver.rb:166:in `quit'
    from /home/ubuntu/src/capybara/lib/capybara/selenium/driver.rb:110:in `quit'
    from /home/ubuntu/src/capybara/lib/capybara/selenium/driver.rb:19:in `block in browser'
rake aborted!
/home/ubuntu/.rbenv/versions/1.9.3-p194/bin/ruby -S rspec ./spec/capybara_spec.rb ./spec/server_spec.rb ./spec/basic_node_spec.rb ./spec/dsl_spec.rb ./spec/rack_test_spec.rb ./spec/rspec_spec.rb ./spec/selenium_spec.rb ./spec/save_and_open_page_spec.rb ./spec/rspec/matchers_spec.rb ./spec/rspec/features_spec.rb --color failed

Tasks: TOP => default => spec
(See full trace by running task with --trace)
@jarib

I haven't seen this anywhere outside the Capybara test suite, and can't easily see how this error is possible, so if you're able to reduce it a bit more that would help.

@jnicklas
Owner

I am also getting this on my machine. Is there any way we can help you to track this down?

@jarib

OK, looks like this will happen if you call Driver#quit twice on the same instance of the Firefox driver. This spec calls #quit both directly from the spec and in an at_exit hook.

@joliss joliss closed this issue from a commit
@joliss joliss Remove forking test. Closes #763
This causes "file not added for reaping" errors with Selenium, as the
exit handler is called twice.

Thanks @jarib for tracking this one down!
1a02b29
@joliss joliss closed this in 1a02b29
@joliss joliss referenced this issue from a commit
@joliss joliss Remove forking test. Closes #763
This causes "file not added for reaping" errors with Selenium, as the
exit handler is called twice.

Thanks @jarib for tracking this one down!
cc9f01b
@joliss joliss referenced this issue from a commit
@joliss joliss Remove forking test. Closes #763
This causes "file not added for reaping" errors with Selenium, as the
exit handler is called twice.

Thanks @jarib for tracking this one down!
c51cc13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.