thoughtbot / capybara-webkit

A Capybara driver for headless WebKit to test JavaScript web apps
https://thoughtbot.com/open-source
MIT License
1.97k stars 427 forks source link

Getting Capybara::Webkit::CrashError with material-ui module #964

Closed gsbucks closed 7 years ago

gsbucks commented 7 years ago

Log output attached. output.txt

Versions: Capybara: 2.4.4 capybara-webkit: 1.11.1 Qt: 5.3.2 WebKit: 538.1 QtWebKit: 5.3.2 Ruby: ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]

As far as I can tell, it's related to this material-ui component: Snackbar

Even without it being mounted into the dom, if JSX compiles the Snackbar component, webkit_server crashes. Crash doesn't happen if I delete the line referencing that component. EDIT: Other tests are still crashing even if Snackbar is completely removed, so that may be a red herring

Any further debugging steps I can take would be appreciated.

gsbucks commented 7 years ago

We narrowed it down to the webpack dllPlugin being the culprit, as removing it completely eliminates the crashes. Not entirely apparently yet why that's the case, but going to resolve this for now since we have a workaround and it's not clear anything is wrong with webkit.