Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Chrome hang with Capybara and RSpec

Open
#336 13 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
ruby

Research direction

Start with the reproduction repository's README and the simplified gist, then run the Capybara/RSpec case under the default both fork mode and compare it with child and parent. Trace where the debugger interacts with the forked process and Chrome; done means the reproduction no longer hangs under both while the existing modes continue to work.

Written by the indexing model from the issue text.

Description

Your environment

  • ruby -v: ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [arm64-darwin20]
  • rdbg -v: rdbg 1.3.1 (f5ff7f7)
  • OS: macOS 11.6 20G165

Describe the bug

When running Capybara and RSpec with Chrome under a certain condition, Chrome hangs.
This never occurs with the child / parent fork mode. It occurs only with the both fork mode (default).

To Reproduce

I prepare a repository for reproduction. Please follow the instruction on the README:
https://github.com/ybiquitous/ruby-debug-with-capybara

https://user-images.githubusercontent.com/473530/138542439-59d77839-886b-4f6b-bf9b-37f05cd538f9.mov

Note: Here is a simplified version on Gist (thanks to @nishio-dens):
https://gist.github.com/nishio-dens/c64245eb143e9c3b22b9d7b9f93f25d2

Expected behavior

I think Chrome should not hang.

Additional context

None.

Dominant language
Ruby
Stars
1.3k
Forks
146
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ruby/debug

All issues in ruby/debug

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.