-
-
Notifications
You must be signed in to change notification settings - Fork 426
I still get WebkitNoResponseError #181
Comments
I've had the same problem. The solution for me was put the
|
Temporary workaround: we found that removing rails_footnotes fixed this error for us. We haven't found what it was about the footnotes that caused an issue. |
Any updates? |
I am getting similar errors when running on my CI server (ubuntu/jenkins) with both xvfb-run and headless. The test work fine running on my OSX development machine. The tests run for a little while and then I get the error. Once the error appears the rest of the tests fail. Any work arounds or debugging recommendations? |
Here also having the same problems: "No response received from the server" followed by "Broken pipe" error. Using capybara-webkit 0.7.2 |
+1 same issue but on capybara-webkit 0.12.1 and capybara 1.1.2 |
+1 I also get a "No response received from the server" followed by "Broken pipe" errors for all remaining specs. Using capybara-webkit 0.12.1 and capybara 1.1.2 (tried WEBrick and Unicorn as test server) |
I have tried QT versions 4.8.0, 4.8.1 and 4.8.2 to no avail. A coworker is on QT 4.7.4 and does not get these errors. I tried switching versions to 4.7.4 with brew, but that bottle is no longer hosted. I then tried to install that version through brew with the --build_from_source option but I get a build error. |
@flynfish, @vidriloco do you use twitter-bootstrap-rails? Or any other less css gem? It might have something to do with this bug or it might be a coincidence.. |
@andruby I am indeed using less-rails-bootstrap. Were you able to fix the issue? On a sidenote related to my previous comment, I got QT 4.7.4 installed and my tests are still failing with the same no response from server and broken pipe errors. Not sure why it worked on my coworkers environment. |
@flynfish I've not tried many solutions yet. Maybe precompiling assets in test environment might work around the bug? |
Having the same issue - none of the other engineers are seeing this. Feels like it might be a version issue. I'm on capybara 1.1.2 and capybara-webkit 0.12.1, but all of the rest of the engineers use the same versions. I'm on qt 4.8.2. |
So I think we found the root cause, it has to do with font rendering. Not sure if everyone having the issue is running bootstrap, but if we comment out our @import of the font.less file, then the errors go away. |
Hmm - we aren't using bootstrap but we are using zurb foundation. Let me see if there are any fonts being included in our project that might be the cause.... |
what @flynfish and I found was some console output from capybara-webkit complaining about web font rendering. Bootstrap or not, any web font rendering can randomly cause a font render exception to be thrown in webkit in various version of Qt in our experience. |
The only reference to @font in our project is in modernizr - but we do have a javascript library that loads assets from a remote server. I bet the core issue is actually any call to a remote server... Hmmm.. off to do some testing. |
Below is the error I'm seeing: webkit_server[86928] : ATSFontGetFileReference failed: error -50. |
@mkrisher how are you getting to that log? It's not in the rails stack trace... is webkit generating a separate log? |
@apangeajwrubel yes, I'm seeing it in the console. Likewise console output gets rendered when say running RSpec in the terminal. |
ok, this is really weird. Apparently when I commented out that import, webkit decided not to throw any errors. After running it again I got the errors again. |
Ah - that's it. We're not using RSpec. Output must be different. Still looking in to the cause but we're fairly confident it's related to remote asset loading, which would explain the problem happening with web fonts and external js includes. |
I started getting this error today. I happened after running a Reverting to I'm using gem 'twitter-bootstrap-rails', '= 2.0.7' to specify the gem since version Update: I specified |
Still debugging this on our end since we don't use twitter bootstrap. I happened to have activity monitor up and noticed a very brief flash of fontd soaking CPU when I started up my test suite. I figure it might be a useful data point since others have seen commenting out web font imports solve the problem. |
My guess is that there's some sort of timeout threshold that's being hit. Perhaps if the assets take too long to compile this happens. |
Gotta be longer than 60 seconds then - that's as high as I set the default wait time and it didn't seem to change the outcomes. |
@apangeajwrubel I tried that too. I was so sure that was going to fix it. The hunt continues. |
Do any of you know how to install this gem against a specific version of qt? Thought maybe this was a 4.8.x issue so I grabbed 4.7.4 - this article (https://engineering.purdue.edu/elab/wiki/index.php/Torch_7_Installation_on_Mac_OS_X) indicated 4.8.X might have issues. But there's no bottle for the 4.7.x line of qt anymore so I had to install from the .dmg, and now I can't figure out how capybara-webkit is linking to qt when it installs. |
twitter-bootstrap-rails 2.0.9 introduces font-awesome support. |
I can confirm that I am having this bug on a non twitter-bootstrap-rails project which independently uses font-awesome edit: Switch application.css to application.scss.erb and then manually import font-awesome only if ie: |
Sure. Here is the output: https://gist.github.com/3959987 |
@carloslopes from the backtraces there, it looks like it's running the released version of capybara-webkit (0.12.1) and not the ref you mentioned. Did you remember to run |
@jferris sorry for the last gist, i forgot that i reverted my gemfile to use the version 0.12.1 so i could make the tests pass on my another machine with linux. here is the new output: https://gist.github.com/3959987 |
@carloslopes great - thanks. I think that will help us narrow down where the segfault may be occurring. |
@jferris great! if i can help with something else, just ask me 😄 |
+1 Seems to be a QtWebKit issue with certain web fonts with on OS X. Possibly this one? https://bugs.webkit.org/show_bug.cgi?id=61031 |
Using OS X 10.6.8, Qt 4.7 I get this exception when running my integration tests:
Not importing font-awesome fixes the issue (btw - I am using font-awesome via the compass_twitter_bootstrap gem ). |
I second @jesseclark 's comment. Using OS X 10.7.5, Qt 4.8.2, Capybara 1.1.4, capybara-webkit 0.13.0, removing font-awesome fixes the issue. |
For another potential workaround, check out the gists at teampoltergeist/poltergeist#44. I was able to use one like:
(after installing the rack-contrib gem) |
Could folks give #442 a shot? I've implemented a workaround that resolves these crashes with Font Awesome. |
I am also having this issue with fonts from http://fontello.com/. So this seems not a problem of font-awesome. |
@Govinda-Fichtner, could you try out PR #442? I also have a Qt 5 compatibility branch, but I'm not sure that it will fix the issue. |
Going to test PR #442 first thing in the morning... |
@Govinda-Fichtner, thanks for the link to http://trac.webkit.org/changeset/113968. Although the wkhtmltopdf link looks unrelated, the changeset does lead me to believe this issue may be resolved in Qt 5. However, the workaround in #442 should work as well. Maintaining compatibility between Qt 4.8 and 5.0 will be difficult, as internal naming of some APIs has changed, among other things. I'd hat to have a bunch of Looking forward to hearing about your tests. |
@mhoran i tested your patch on Mac OS X 10.8 with Qt 4.8.3 and Capybara 2.0.2 It worked perfectly |
Fantastic, thanks! I've also confirmed that the issue is resolved in Qt 5. However, we'll probably still leave the workaround in pace for Qt 4.8. |
Np, you are welcome! 😄 |
I've merged 11c596f to master. Once we hear from @Govinda-Fichtner, I think it's safe to say this issue is resolved. |
@mhoran Just confirming -- this is a work-around for Qt 4.8 and the Qt 5.0 compatibility branch is still in the works? |
The latest commit is just a workaround for Qt 4.8. I've not committed Qt 5 support as it is not backwards compatible with Qt 4.8. Though Qt 5 properly fixes the issue, the workaround should be sufficient for headless testing. It simply disables web fonts when applied. Qt 5 resolves the issue by loading web fonts via a different mechanism on OS X, which bypasses the segfault inducing code. |
capybara-webkit 0.14.0 has been released, which includes the fix for this issue. |
@mhoran OK. Took me some time to test this as I had to fix several issues in my tests with capybara 2.x. But in the end I can say that the workaround fixes the issues for me. Great work! |
I think it is. When you update the capybara-webkit in your Gemfile, it will update your capybara gem too (maybe it cause some incompatibilities if you are setting the capybara's version explicity to an older version, like 1.1.4) And if you are using rspec-rails, take a look at this blog post, it explain the new spec's pattern |
After some time with capybara 2 I must say that I still have issues with capybara 2 where tests sometimes work and sometimes are not working... lost already 2 days trying to fix this. These were all tests that were stable with capybara 1.x. With the dependency on capybara 2 if I want to have the fixes of the lastest capybara-webkit I have no choice but to use capybara 2... |
This is a followup of #68.
Also after upgrade of capybara-webkit (0.7.1) and capybara (1.1.1) the specs still fail when running more than one spec with
js: true
.This is the code of the specs:
The text was updated successfully, but these errors were encountered: