-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
2.5.5 causes Assertion failed in libev. #266
Comments
We updated It would be helpful to know some more context about the issue - i.e. why did it happen? |
Thanks for the quick response, @ioquatix. This is happening with just a Rails web request hit. When bumping the version of nio4r from 2.5.4 to 2.5.5 (and nothing else), I see the above error message in the Rails server logs and the page fails to load. Let me know what else I can do to help you diagnose. Thanks. |
@joshuapinter can you please tell me the output of running NIO::Selector.backends
NIO::Selector.new.backend with both nio4r 2.5.4 and 2.5.5? Thanks! |
This update consistently broke a build for me as well. I don't know enough about this gem and how it is used to further debug, other than it is a dependency of rails
|
Can you please tell me more about your system @smridge? OS, kernel version, architecture, C compiler... Thank you! |
@smridge I believe I know the problem, but it has nothing to do with what was originally reported in this thread. Please install the headers for your kernel and try to compile the native extensions again. |
Ahh, you're right! Thank you @jcmfernandes ! |
I am seeing this as well with my rails app. Looking forward to the next release! |
@alan-pie by "this" do you mean the original report? If so, can you please tell me more about your system and provide me with the output of running NIO::Selector.backends
NIO::Selector.new.backend Thanks! |
Yeah, the original report and the problem mentioned in the linked PR. macOS 10.14.6 running a Ruby on Rails test On 2.5.4:
On 2.5.5
|
Thanks @alan-pie! And you're running into the
running a rails test? Can you give me some insight into that test? |
Yeah, it's a Capybara test using Selenium Webdriver to drive a headless Chrome instance. The test runs our rails app and opens and clicks around some webpages. It seems to fail on the first call to I'll try pulling from HEAD and see if it's fixed |
Confirmed, it's fixed for me at HEAD |
That's great, thanks @alan-pie! @ioquatix knowing this might justify a new release 😉 . EDIT: and after that we can close this issue. |
+1 I'm waiting for the 2.5.6 release as well 😄 |
Sorry about the pain everyone, my bad. But well, I broke it, I fixed it! 😅 |
While 2.5.6 doesn't come out, an easy workaround is setting environment variable Another alternative for those using puma: starting with version 5.2.0 you can specific the IO selector (puma/puma#2522), so adding io_selector_backend :kqueue to your puma configuration will also do the trick 😉 . |
I'll make a release today. |
Okay, v2.5.6 is released. Please open a new issue if there are ongoing related issues. |
Amazing turn-around! Thanks! |
Upgrading
nio4r
from2.5.4
to2.5.5
causes the following error when doing requests:This came out of the blue as we were updating a different gem and doing a
bundle update
automatically updatednio4r
from2.5.4
to2.5.5
and then all of a sudden our development web server stopped working. We went down a rabbit hole assuming the gem we were actually updating was the issue, but it ended up being this patch update innio4r
that was the culprit.We're going to pin our version to 2.5.4 for now but let me know what else you need from me to diagnose this.
Thanks.
Versions
MacBook Pro 15" Intel
ruby 2.7.2p137
rails 5.2.4.4
puma 5.0.2
macOS 11.2 Big Sur
The text was updated successfully, but these errors were encountered: