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

PhantomJS / Chrome crash on rebuild #167

Closed
ghost opened this issue Aug 12, 2016 · 1 comment
Closed

PhantomJS / Chrome crash on rebuild #167

ghost opened this issue Aug 12, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 12, 2016

I'm submitting a bug report

Webpack version:
1.13.1

Webpack Karma version:
1.8.0

Karma version:
1.2.0

Please tell us about your environment:
OSX 10.11.6
Node v4.4.6
NPM v3.10.2

Browser: [Phantom 1.9 | Chrome 53]

Current behavior:
Tests run correctly the first time. When changing a file (actually just re-saving it in order to trigger a rebuild), the browser will crash

Expected/desired behavior:
Tests should run correctly and not crash the browser.

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem along with a gist/jsbin of your webpack configuration.
    This is a rather large project, but I will take a look at reproducing.

Here is some output:

> karma start karma-unit.js


webpack: bundle is now VALID.
webpack: bundle is now INVALID.
12 08 2016 15:17:02.379:WARN [karma]: No captured browser, open http://localhost:9876/

WARNING in ./~/ws/lib/BufferUtil.js
Module not found: Error: Cannot resolve module 'bufferutil' in /path/to/node_modules/ws/lib
 @ ./~/ws/lib/BufferUtil.js 10:19-40

WARNING in ./~/ws/lib/Validation.js
Module not found: Error: Cannot resolve module 'utf-8-validate' in /path/to/node_modules/ws/lib
 @ ./~/ws/lib/Validation.js 10:19-44
webpack: bundle is now VALID.
12 08 2016 15:17:02.391:INFO [karma]: Karma v1.2.0 server started at http://localhost:9876/
12 08 2016 15:17:02.391:INFO [launcher]: Launching browser Chrome with unlimited concurrency
12 08 2016 15:17:02.495:INFO [launcher]: Starting browser Chrome
12 08 2016 15:17:03.243:INFO [Chrome 53.0.2785 (Mac OS X 10.11.6)]: Connected on socket /#zPam68nUzsTwLfizAAAA with id 29119689
/* TRUNCATED */
Chrome 53.0.2785 (Mac OS X 10.11.6): Executed 1899 of 1899 (0 FAILED) (42.5 secs / -258619 mins 53.673 secs) <-- this is kinda weird, not sure why this happens.

=============================== Coverage summary ===============================
Statements   : 92.22% ( 9500/10302 ), 230 ignored
Branches     : 86.71% ( 3574/4122 ), 473 ignored
Functions    : 85.67% ( 2074/2421 ), 19 ignored
Lines        : 90.07% ( 7030/7805 )
================================================================================
webpack: bundle is now INVALID.

WARNING in ./~/ws/lib/BufferUtil.js
Module not found: Error: Cannot resolve module 'bufferutil' in /path/to/node_modules/ws/lib
 @ ./~/ws/lib/BufferUtil.js 10:19-40

WARNING in ./~/ws/lib/Validation.js
Module not found: Error: Cannot resolve module 'utf-8-validate' in path/to/ws/lib
 @ ./~/ws/lib/Validation.js 10:19-44
webpack: bundle is now VALID.
Chrome 53.0.2785 (Mac OS X 10.11.6): Executed 0 of 0 ERROR (0.021 secs / 0 secs)

=============================== Coverage summary ===============================
Statements   : 100% ( 0/0 )
Branches     : 100% ( 0/0 )
Functions    : 100% ( 0/0 )
Lines        : 100% ( 0/0 )
================================================================================

Potentially related issues #49, #66

FWIW, I have tried some of the suggestions in these issues with no luck. I have also tried use the beforeMiddleware, although it doesn't seem to be doing anything (as far as I can tell).

Thanks in advance.

@ghost
Copy link
Author

ghost commented Oct 19, 2016

I don't think this is a karma-webpack issue, looks like it might be karma. Closing

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant