Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version check hangs on ruby 3 with certain gem combination #1132

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

rdunlop
Copy link
Contributor

@rdunlop rdunlop commented Nov 4, 2024

Close unneeded pipes when wkhtmltopdf checking version.

Unless we close the stdin and stderr pipes in Open3, this command will hang when running under Ruby 3.1 (and possibly ruby 3.0 too).

According to the documentation these pipes should be closed explicitly when in block form (like we are using).

Note: This only happens for me when I'm also using a bunch of older/outdated gems (specifically, eye, which uses celluloid, celluloid-io, kostya-sigar and state_machines gems). If I'm not including these gems (via ey) in my project, this problem doesn't occur

Close unneeded pipes when wkhtmltopdf checking version.

Unless we close the stdin and stderr pipes in Open3, this command will hang when running under Ruby 3.1 (and possibly ruby 3.0 too).

According to [the documentation](https://docs.ruby-lang.org/en/2.0.0/Open3.html#method-i-popen3) these pipes should be closed explicitly when in block form (like we are using).

Note: This only happens for me when I'm also using a bunch of older/outdated gems (specifically, `eye`, which uses `celluloid`, `celluloid-io`, `kostya-sigar` and `state_machines` gems). If I'm not including these gems (via `ey`) in my project, this problem doesn't occur
@unixmonkey unixmonkey merged commit 2bf120d into mileszs:master Nov 4, 2024
12 checks passed
@unixmonkey
Copy link
Collaborator

Thanks!

@rdunlop rdunlop deleted the patch-1 branch November 4, 2024 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants