{"action":"created","issue":{"url":"https://api.github.com/repos/thoughtbot/capybara-webkit/issues/719","labels_url":"https://api.github.com/repos/thoughtbot/capybara-webkit/issues/719/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/capybara-webkit/issues/719/comments","events_url":"https://api.github.com/repos/thoughtbot/capybara-webkit/issues/719/events","html_url":"https://github.com/thoughtbot/capybara-webkit/issues/719","id":55923694,"number":719,"title":"Broken pipe when running on a CI ","user":{"login":"Enders","id":1375031,"avatar_url":"https://avatars.githubusercontent.com/u/1375031?v=3","gravatar_id":"","url":"https://api.github.com/users/Enders","html_url":"https://github.com/Enders","followers_url":"https://api.github.com/users/Enders/followers","following_url":"https://api.github.com/users/Enders/following{/other_user}","gists_url":"https://api.github.com/users/Enders/gists{/gist_id}","starred_url":"https://api.github.com/users/Enders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Enders/subscriptions","organizations_url":"https://api.github.com/users/Enders/orgs","repos_url":"https://api.github.com/users/Enders/repos","events_url":"https://api.github.com/users/Enders/events{/privacy}","received_events_url":"https://api.github.com/users/Enders/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-29T16:42:07Z","updated_at":"2015-01-30T00:08:07Z","closed_at":null,"body":"Hello,\r\n\r\nI have been banging my head against this for a few days and would love some guidance on how I can debug this. I am running:\r\n\r\n- Capybara-webkit 1.4.1\r\n- Capybara 2.4.4\r\n- Ruby 2.2.0\r\n- Rspec 3.1.0\r\n\r\nWhen I run the test (single one) locally, it works, when I run the same thing on the CI through a SSH (not even through the TeamCity CI we are using) I get a Broken Pipe. I'm using the Headless gem to get it to work. The whole setup was working on a different CI, I just moved to new hardware and reinstalled from scratch.\r\n\r\nHere is the output with `:webkit_debug`:\r\n\r\n```\r\nFinished \"EnableLogging()\" with response \"Success()\" \r\nWrote response true \"\" \r\nReceived \"Visit(http://127.0.0.1:9887/)\" \r\nStarted \"Visit(http://127.0.0.1:9887/)\" \r\nLoad started \r\n\"Visit(http://127.0.0.1:9887/)\" started page load \r\nStarted request to \"http://127.0.0.1:9887/\" \r\nFinished \"Visit(http://127.0.0.1:9887/)\" with response \"Success()\" \r\nStarted request to \"http://127.0.0.1:9887/assets/signed-out.css\" \r\nStarted request to \"http://127.0.0.1:9887/assets/signed_out.js\" \r\nReceived 200 from \"http://127.0.0.1:9887/\" \r\nReceived 200 from \"http://127.0.0.1:9887/assets/signed-out.css\" \r\nReceived 200 from \"http://127.0.0.1:9887/assets/signed_out.js\" \r\nRequest to unknown URL: http://assets.zendesk.com/embeddable_framework/main.js\r\nTo block requests to unknown URLs:\r\n  page.driver.block_unknown_urls\r\nTo allow just this URL:\r\n  page.driver.allow_url(\"http://assets.zendesk.com/embeddable_framework/main.js\")\r\nTo allow requests to URLs from this host:\r\n  page.driver.allow_url(\"assets.zendesk.com\")\r\nStarted request to \"http://assets.zendesk.com/embeddable_framework/main.js\" \r\nStarted request to \"http://127.0.0.1:9887/assets/logo-main-dark.png\" \r\nStarted request to \"http://127.0.0.1:9887/assets/logos/logo_viadeo.png\" \r\nStarted request to \"http://127.0.0.1:9887/assets/homepage/bg_feature1.jpg\" \r\nStarted request to \"http://127.0.0.1:9887/assets/homepage/bg_feature2.jpg\" \r\nStarted request to \"http://127.0.0.1:9887/assets/homepage/bg_feature3.jpg\" \r\nStarted request to \"http://127.0.0.1:9887/assets/homepage/feature1_computer1.png\" \r\nStarted request to \"http://127.0.0.1:9887/assets/homepage/feature1_computer2.png\" \r\nStarted request to \"http://127.0.0.1:9887/assets/homepage/winddle-path2.png\" \r\nStarted request to \"http://127.0.0.1:9887/assets/homepage/video-small.png\" \r\n\r\n  An error occurred in an after hook\r\n    Errno::EPIPE: Broken pipe\r\n    occurred at /home/teamcity/.rvm/gems/ruby-2.2.0@winddle-rails4.2/gems/capybara-webkit-1.4.1/lib/capybara/webkit/connection.rb:30:in `write'\r\n```\r\n\r\nI have tried running it with Qt4 and Qt5, both 64bits and 32bits (that's a lot of apt-get remove / gem uninstall) and the error is always the same.\r\n\r\n`dmesg` shows the following error, confirming it's an internal error:\r\n\r\n```\r\n[655552.072558] webkit_server[11965]: segfault at 0 ip           (null) sp 00007fffb6049178 error 14 in webkit_server[400000+54000]\r\n```\r\n\r\nThat's with Qt5 64bits. With Qt4 the error was different:\r\n\r\n```\r\n[622593.029889] traps: webkit_server[20399] general protection ip:7f2cecf6d787 sp:7fff2564caf0 error:0 in libQtWebKit.so.4.10.2[7f2ceba8e000+1fc9000]\r\n```\r\n\r\nI understand that you cannot do much about QT internal bugs, but because it occurs on both QT4 and QT5 on a fresh install and with what I assume is a pretty standard test (it crashes right after starting to fetch the homepage's resources), there may be more to this than just 'random configuration issue that would never happen to anyone else', or so I keep hoping :)\r\n\r\nThank you!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/thoughtbot/capybara-webkit/issues/comments/72130463","html_url":"https://github.com/thoughtbot/capybara-webkit/issues/719#issuecomment-72130463","issue_url":"https://api.github.com/repos/thoughtbot/capybara-webkit/issues/719","id":72130463,"user":{"login":"Enders","id":1375031,"avatar_url":"https://avatars.githubusercontent.com/u/1375031?v=3","gravatar_id":"","url":"https://api.github.com/users/Enders","html_url":"https://github.com/Enders","followers_url":"https://api.github.com/users/Enders/followers","following_url":"https://api.github.com/users/Enders/following{/other_user}","gists_url":"https://api.github.com/users/Enders/gists{/gist_id}","starred_url":"https://api.github.com/users/Enders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Enders/subscriptions","organizations_url":"https://api.github.com/users/Enders/orgs","repos_url":"https://api.github.com/users/Enders/repos","events_url":"https://api.github.com/users/Enders/events{/privacy}","received_events_url":"https://api.github.com/users/Enders/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T00:08:07Z","updated_at":"2015-01-30T00:08:07Z","body":"Hey there Matthew, thanks for taking the time to look at this :) \r\n\r\nI ran the script, hopefully you got the info you need? FYI, the script also gave this output:\r\n\r\n```\r\n/home/teamcity/.rvm/gems/ruby-2.2.0@winddle-rails4.2/bundler/gems/capybara-webkit-4a4370f9a850/bin/webkit_server, section '.eh_frame': the call frame entry at offset 0x18 sets the rule for register '.ra' to 'undefined', but the Breakpad symbol file format cannot express this\r\n/home/teamcity/.rvm/gems/ruby-2.2.0@winddle-rails4.2/bundler/gems/capybara-webkit-4a4370f9a850/bin/webkit_server, section '.eh_frame': the call frame entry at offset 0x48 uses a DWARF expression to describe how to recover register '.cfa',  but this translator cannot yet translate DWARF expressions to Breakpad postfix expressions\r\n```\r\n\r\nSeemed to be a breakpad warning and that the file still got uploaded (no error messages related to the post to /crash_report). \r\n\r\n "}}