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

Can not launch IE #6

Open
agdev opened this issue Aug 22, 2013 · 22 comments
Open

Can not launch IE #6

agdev opened this issue Aug 22, 2013 · 22 comments

Comments

@agdev
Copy link

agdev commented Aug 22, 2013

Hi,
I have
OS: Win 7 x 64
Karma: v0.9.3
Grunt:grunt-cli v0.1.9
grunt v0.4.1

I am getting error below:

WARN [config]: "/" is proxied, you should probably change urlRoot to avoid conflicts
INFO [karma]: Karma v0.9.3 server started at http://localhost:9876/

INFO [launcher]: Trying to start IE again.
ERROR [launcher]: Cannot start IE

INFO [launcher]: Trying to start IE again.
ERROR [launcher]: Cannot start IE

INFO [launcher]: Trying to start IE again.
ERROR [launcher]: Cannot start IE

I set the path to IE_BIN to C:\Program Files (x86)\Internet Explorer\iexplore.exe
http://localhost is added to Local Intranet zone and Protected mode is disabled.
The issue is still happening.
I looked at karma-runner/karma/issues:
#605
#369
#429

Please advise

@mkern1
Copy link

mkern1 commented Sep 6, 2013

Same issue here.

OS: Win 7 x 64
Karma: v0.10.2

I also set the path to IE_BIN to C:\Program Files (x86)\Internet Explorer\iexplore.exe
http://localhost is added to Local Intranet zone and Protected mode is disabled.

@sjmulder
Copy link

I'm having the same issue. Here's some console output for reference, maybe it helps:

PS> npm install karma-ie-launcher
npm http GET https://registry.npmjs.org/karma-ie-launcher
npm http 304 https://registry.npmjs.org/karma-ie-launcher
[email protected] node_modules\karma-ie-launcher

PS> get-item env:IE_BIN

Name                           Value
----                           -----
IE_BIN                         C:\Program Files\Internet Explorer\iexplore.exe


PS> grunt test:unit --browsers IE
Running "tests:jqlite" (tests) task
INFO [karma]: Karma v0.11.0 server started at http://localhost:9876/
INFO [launcher]: Starting browser IE
ERROR [launcher]: Cannot start IE

INFO [launcher]: Trying to start IE again.
ERROR [launcher]: Cannot start IE

INFO [launcher]: Trying to start IE again.
ERROR [launcher]: Cannot start IE

Warning: Karma test(s) failed. Exit code: 1 Use --force to continue.

Aborted due to warnings.

I can see the browser opening three times.

@noresjo
Copy link

noresjo commented Sep 30, 2013

I'm experiencing the exact same thing as @sjmulder.

@thomaspons
Copy link

Same thing here !

@yinxiaomei
Copy link

I also have the same!!!

@ognus
Copy link

ognus commented Oct 18, 2013

Same :)
IE 10 on Win 7 x 64
Karma: v0.10.2

@luozhihua
Copy link

I also have the same!!! IE opened three times, and console print message: "Can't start IE"

@sjmulder
Copy link

The issue does not occur for me on Windows 8.1 + IE 11:

PS> grunt test:unit --browsers IE
Running "tests:jqlite" (tests) task
INFO [karma]: Karma v0.11.0 server started at http://localhost:9876/
INFO [launcher]: Starting browser IE
INFO [IE 11.0.0 (Windows)]: Connected on socket TqwZ2-X5huH8MXJQYZHU
IE 11.0.0 (Windows): Executed 2232 of 2232 SUCCESS (8.436 secs / 5.976 secs)

…

This is the same system that previously had this issue on Windows 8 + IE 10.

@shustariov-andrey
Copy link

Having the same issue on Windows 8 + IE 10, karma v0.10.2.

@SathishN
Copy link

I had the same issue on Win 7 + IE 10, Workaround by CoffeeAndMe [https://github.com//issues/3#issuecomment-23428943] on a other issue helped me.

Co-workers suggestion at disabling Automatic Crash Recovery seems to have helped. It will now restart IE when it encounters an issue and the subsequent launch will attach to the test runner correctly.
http://windows.microsoft.com/en-us/internet-explorer/reopen-previous-session#ie=ie-10

@shustariov-andrey
Copy link

Worked for me. Thank you very much!

@jamilellis
Copy link

The methods above as well as disabling automatic crash recovery didn't resolve issue for me. I'm still getting three windows opening and then no tests being run. Win 7 + IE10 . Any other ideas?

@sylvain-hamel
Copy link
Contributor

I'd like to know if anyone is still experiencing this issue? Thanks!

@kenglxn
Copy link

kenglxn commented Oct 2, 2014

I also experienced this issue after upgrading from IE9 to IE11 on our build server (Windows Server 2008 R2 64bit).

It seems like karma-ie-launcher was unable to kill the initial ie process (see wmic comment section in index.js), resulting in the tests actually running but without being connected to karma. During the testrun three IE instances were launched, one of which actually ran the tests, one with "karma disconnected" on screen, and the last with "unable to connect" on screen.

For me the solution was:

change IE_BIN env variable from:

IE_BIN=C:\Program Files\Internet Explorer (x86)\iexplore.exe

to:

IE_BIN=C:\Program Files\Internet Explorer\iexplore.exe

And disabling Automatic Crash Recovery as mentioned in #6 (comment) made the tests run when logged into the server as a normal user.

I also had to use PSTools to get IE configured on the system account. Without this the system account will not be able to connect because of the initial configuration dialog that pops up the first time you launch IE, leaving karma sad with the following log statement:

WARN [IE 11.0.0 (Windows 7)]: Disconnected (1 times), because no message in 10000 ms. 

To launch IE as the system account which is the same account jenkins uses:

psexec -sid "C:\Program Files\Internet Explorer\iexplore.exe"

Then just complete the initial config steps in the dialog.

Env:
Windows Server 2008 R2 64bit
Node v0.10.32
Karma version: 0.12.24
[email protected]

Excerpt from log:

DEBUG [launcher]: Killed extra IE process 4260
DEBUG [launcher]: Process IE exited with code 1
ERROR [launcher]: Cannot start IE
DEBUG [web-server]: serving: C:\Users\eamsdev\AppData\Roaming\npm\node_modules\karma\static/karma.js
INFO [launcher]: Trying to start IE again (2/2).
DEBUG [launcher]: Restarting IE
DEBUG [launcher]: C:\Program Files (x86)\Internet Explorer\iexplore.exe -extoff http://localhost:9876/?id=39834864
DEBUG [karma]: A browser has connected on socket GKDff323ENM3WE_V96hm
DEBUG [karma]: A browser has connected on socket AVdZLhepVlKYNZ4A96hn
INFO [IE 11.0.0 (Windows 7)]: Connected on socket GKDff323ENM3WE_V96hm with id 39834864
DEBUG [launcher]: IE (id 39834864) captured in 4.297 secs
DEBUG [IE 11.0.0 (Windows 7)]: New connection AVdZLhepVlKYNZ4A96hn (already have GKDff323ENM3WE_V96hm)
DEBUG [launcher]: Killed extra IE process 4512
DEBUG [launcher]: Process IE exited with code 1
ERROR [launcher]: IE crashed.
ERROR [launcher]: IE failed 2 times (crashed). Giving up.
DEBUG [karma]: Run complete, exiting.
DEBUG [launcher]: Disconnecting all browsers

@Ashwin2488
Copy link

@kenglxn Follwing your method worked but it spawns ie without localStorage support.Says "This function is not supported on this system."

@pllee
Copy link

pllee commented Dec 31, 2015

@kenglxn +100000 I had a feeling that the initial prompt was causing it not to run but I didn't have access to the system account. Running your steps fixed my issue.

@ElliotHume
Copy link

ElliotHume commented Jul 15, 2016

I'm still having this error, I have followed all steps and I doesn't seem to be doing anything different but it also now throws in the error of
IE 11.0.0 (Windows 7 0.0.0) ERROR You need to include some adapter that implements __karma__.start method!
along with opening IE 3 times and the
15 07 2016 11:24:29.128:WARN [IE 11.0.0 (Windows 7 0.0.0)]: Disconnected (2 times), because no message in 10000 ms. IE 11.0.0 (Windows 7 0.0.0) ERROR Disconnected, because no message in 10000 ms.
error.

Here is the full log when I run karma start

15 07 2016 11:24:16.821:DEBUG [plugin]: Loading plugin karma-ie-launcher.
15 07 2016 11:24:16.871:DEBUG [plugin]: Loading plugin karma-mocha.
15 07 2016 11:24:16.881:DEBUG [plugin]: Loading plugin karma-requirejs.
15 07 2016 11:24:16.891:DEBUG [plugin]: Loading plugin karma-chai.
15 07 2016 11:24:16.891:DEBUG [plugin]: Loading plugin karma-browserify.
15 07 2016 11:24:17.431:DEBUG [framework.browserify]: created browserify bundle: C:\Users\ehume\AppData\Local\Temp\b85da555be3b9e64a45a754
e7f6b734d.browserify
15 07 2016 11:24:17.441:INFO [framework.browserify]: registering rebuild (autoWatch=true)
15 07 2016 11:24:17.441:DEBUG [framework.browserify]: no matching preprocessed file was found, defaulting to prepend
15 07 2016 11:24:17.441:DEBUG [framework.browserify]: add bundle to config.files at position 0
15 07 2016 11:24:17.441:DEBUG [web-server]: Instantiating middleware
15 07 2016 11:24:17.501:DEBUG [framework.browserify]: building bundle
15 07 2016 11:24:18.201:DEBUG [framework.browserify]: bundling
15 07 2016 11:24:18.201:INFO [framework.browserify]: 454 bytes written (0.00 seconds)
15 07 2016 11:24:18.201:INFO [framework.browserify]: bundle built
15 07 2016 11:24:18.211:DEBUG [watcher]: Watching "C:\Users\ehume\AppData\Local\Temp\b85da555be3b9e64a45a754e7f6b734d.browserify"
15 07 2016 11:24:18.211:DEBUG [watcher]: Watching "C:/AutomationTool/angular-node/test-main.js"
15 07 2016 11:24:18.211:DEBUG [watcher]: Watching "C:/AutomationTool/angular-node/node_modules/requirejs/require.js"
15 07 2016 11:24:18.211:DEBUG [watcher]: Watching "C:/AutomationTool/angular-node/node_modules/karma-requirejs/lib/adapter.js"
15 07 2016 11:24:18.211:DEBUG [watcher]: Watching "C:/AutomationTool/angular-node/public/bower_components/angular/angular.js"
15 07 2016 11:24:18.211:DEBUG [watcher]: Watching "C:/AutomationTool/angular-node/public/bower_components/angular-route/angular-route.js"
15 07 2016 11:24:18.211:DEBUG [watcher]: Watching "C:/AutomationTool/angular-node/public/bower_components/angular-mocks/angular-mocks.js"
15 07 2016 11:24:18.211:DEBUG [watcher]: Watching "C:/AutomationTool/angular-node/node_modules/chai/chai.js"
15 07 2016 11:24:18.211:DEBUG [watcher]: Watching "C:/AutomationTool/angular-node/test/angular/servicesTestService-testing.js"
15 07 2016 11:24:18.221:INFO [karma]: Karma v1.1.1 server started at http://127.0.0.1:9876/
15 07 2016 11:24:18.221:INFO [launcher]: Launching browser IE with unlimited concurrency
15 07 2016 11:24:18.261:INFO [launcher]: Starting browser IE
15 07 2016 11:24:18.261:DEBUG [temp-dir]: Creating temp dir at C:\Users\ehume\AppData\Local\Temp\karma-39924402
15 07 2016 11:24:18.261:DEBUG [launcher]: C:\Program Files\Internet Explorer\iexplore.exe http://127.0.0.1:9876/?id=39924402
15 07 2016 11:24:18.471:DEBUG [web-server]: serving: C:\AutomationTool\angular-node\node_modules\karma\static/client.html
15 07 2016 11:24:18.551:DEBUG [karma]: A browser has connected on socket /#JSg81mFqoXYSlbfCAAAA
15 07 2016 11:24:18.551:DEBUG [web-server]: upgrade /socket.io/?EIO=3&transport=websocket&sid=JSg81mFqoXYSlbfCAAAA
15 07 2016 11:24:18.571:INFO [IE 11.0.0 (Windows 7 0.0.0)]: Connected on socket /#JSg81mFqoXYSlbfCAAAA with id 39924402
15 07 2016 11:24:18.581:DEBUG [launcher]: IE (id 39924402) captured in 0.36 secs
15 07 2016 11:24:18.581:DEBUG [karma]: All browsers are ready, executing
15 07 2016 11:24:18.581:DEBUG [karma]: Captured 1 browsers
15 07 2016 11:24:18.593:DEBUG [middleware:karma]: custom files null null
15 07 2016 11:24:18.593:DEBUG [middleware:karma]: Serving static request /context.html
15 07 2016 11:24:18.593:DEBUG [web-server]: serving: C:\AutomationTool\angular-node\node_modules\karma\static/context.html
IE 11.0.0 (Windows 7 0.0.0) ERROR
  You need to include some adapter that implements __karma__.start method!


15 07 2016 11:24:18.801:DEBUG [launcher]: Killed extra IE process 2688
15 07 2016 11:24:18.801:DEBUG [launcher]: Process IE exited with code 0
15 07 2016 11:24:18.801:ERROR [launcher]: IE crashed.

15 07 2016 11:24:18.801:DEBUG [temp-dir]: Cleaning temp dir C:\Users\ehume\AppData\Local\Temp\karma-39924402
15 07 2016 11:24:18.801:INFO [launcher]: Trying to start IE again (1/2).
15 07 2016 11:24:18.811:DEBUG [launcher]: Restarting IE
15 07 2016 11:24:18.811:DEBUG [temp-dir]: Creating temp dir at C:\Users\ehume\AppData\Local\Temp\karma-39924402
15 07 2016 11:24:18.811:DEBUG [launcher]: C:\Program Files\Internet Explorer\iexplore.exe http://127.0.0.1:9876/?id=39924402
15 07 2016 11:24:18.871:DEBUG [web-server]: serving (cached): C:\AutomationTool\angular-node\node_modules\karma\static/client.html
15 07 2016 11:24:18.921:DEBUG [karma]: A browser has connected on socket /#cO7O7YAHFW_pztpnAAAB
15 07 2016 11:24:18.931:DEBUG [web-server]: upgrade /socket.io/?EIO=3&transport=websocket&sid=cO7O7YAHFW_pztpnAAAB
15 07 2016 11:24:18.958:DEBUG [launcher]: Killed extra IE process 10372
15 07 2016 11:24:18.958:DEBUG [launcher]: Process IE exited with code 0
15 07 2016 11:24:18.958:ERROR [launcher]: Cannot start IE

15 07 2016 11:24:18.958:DEBUG [temp-dir]: Cleaning temp dir C:\Users\ehume\AppData\Local\Temp\karma-39924402
15 07 2016 11:24:18.961:DEBUG [IE 11.0.0 (Windows 7 0.0.0)]: New connection /#cO7O7YAHFW_pztpnAAAB (already have /#JSg81mFqoXYSlbfCAAAA)
15 07 2016 11:24:18.963:INFO [launcher]: Trying to start IE again (2/2).
15 07 2016 11:24:18.963:DEBUG [launcher]: Restarting IE
15 07 2016 11:24:18.963:DEBUG [temp-dir]: Creating temp dir at C:\Users\ehume\AppData\Local\Temp\karma-39924402
15 07 2016 11:24:18.966:DEBUG [launcher]: C:\Program Files\Internet Explorer\iexplore.exe http://127.0.0.1:9876/?id=39924402
15 07 2016 11:24:19.056:DEBUG [web-server]: serving (cached): C:\AutomationTool\angular-node\node_modules\karma\static/client.html
15 07 2016 11:24:19.106:DEBUG [karma]: A browser has connected on socket /#4sU12c9jOEnQZ3z4AAAC
15 07 2016 11:24:19.116:DEBUG [web-server]: upgrade /socket.io/?EIO=3&transport=websocket&sid=4sU12c9jOEnQZ3z4AAAC
15 07 2016 11:24:19.126:DEBUG [IE 11.0.0 (Windows 7 0.0.0)]: New connection /#4sU12c9jOEnQZ3z4AAAC (already have /#JSg81mFqoXYSlbfCAAAA, /
#cO7O7YAHFW_pztpnAAAB)
15 07 2016 11:24:19.126:DEBUG [launcher]: Killed extra IE process 7968
15 07 2016 11:24:19.126:DEBUG [launcher]: Process IE exited with code 0
15 07 2016 11:24:19.126:ERROR [launcher]: Cannot start IE

15 07 2016 11:24:19.126:DEBUG [temp-dir]: Cleaning temp dir C:\Users\ehume\AppData\Local\Temp\karma-39924402
15 07 2016 11:24:19.136:ERROR [launcher]: IE failed 2 times (cannot start). Giving up.
15 07 2016 11:24:24.618:DEBUG [IE 11.0.0 (Windows 7 0.0.0)]: Disconnected /#4sU12c9jOEnQZ3z4AAAC, still have /#JSg81mFqoXYSlbfCAAAA, /#cO7
O7YAHFW_pztpnAAAB
15 07 2016 11:24:25.498:DEBUG [IE 11.0.0 (Windows 7 0.0.0)]: Disconnected /#cO7O7YAHFW_pztpnAAAB, still have /#JSg81mFqoXYSlbfCAAAA
15 07 2016 11:24:25.908:WARN [IE 11.0.0 (Windows 7 0.0.0)]: Disconnected (1 times)
IE 11.0.0 (Windows 7 0.0.0) ERROR
  Disconnectedundefined

15 07 2016 11:24:29.128:WARN [IE 11.0.0 (Windows 7 0.0.0)]: Disconnected (2 times), because no message in 10000 ms.
IE 11.0.0 (Windows 7 0.0.0) ERROR
  Disconnected, because no message in 10000 ms.

Below is my karma.conf.js file

// Karma configuration

// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',

plugins: ['karma-ie-launcher', 'karma-mocha', 'karma-requirejs', 'karma-chai', 'karma-browserify'],

// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['mocha', 'requirejs', 'chai', 'browserify'],


// list of files / patterns to load in the browser
files: [
  'test-main.js',
  'node_modules/requirejs/require.js',
  'node_modules/karma-requirejs/lib/adapter.js',
  'public/bower_components/angular/angular.js',
  'public/bower_components/angular-route/angular-route.js',
  'public/bower_components/angular-mocks/angular-mocks.js',
  "node_modules/chai/chai.js",
  //"public/src/**/*.js",
  "test/angular/servicesTestService-testing.js"
],


// list of files to exclude
exclude: [
],


// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
    //'test/angular/*.js': [ 'browserify' ]
},


// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['progress'],


// web server port
port: 9876,


// enable / disable colors in the output (reporters and logs)
colors: true,


// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_DEBUG,


// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,


// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['IE'],


// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: false,

// Concurrency level
// how many browser should be started simultaneous
concurrency: Infinity

Also apologies if I am doing something wrong, I am extremely new so please bear with me.

@PStoner3
Copy link

PStoner3 commented Aug 2, 2016

I, too, am having the same issue. Win 7 x64, IE 11. If I have IE opened, then Karma will attempt to start three browsers and fails. Although my tests run. Here is the output

D:\Code\movie-app>karma start --log-level debug
2016 09:18:07.834:DEBUG [config]: Loading config D:\Code\movie-app\karma.conf.js
2016 09:18:07.842:DEBUG [plugin]: Loading plugin karma-jasmine.
2016 09:18:07.843:DEBUG [plugin]: Loading plugin karma-mocha-reporter.
2016 09:18:07.852:DEBUG [plugin]: Loading plugin karma-ie-launcher.
2016 09:18:07.887:DEBUG [web-server]: Instantiating middleware
2016 09:18:07.888:DEBUG [reporter]: Trying to load reporter: mocha
2016 09:18:07.890:DEBUG [reporter]: Trying to load color-version of reporter: mocha (mocha_color)
2016 09:18:07.891:DEBUG [reporter]: Couldn't load color-version.
2016 09:18:07.904:DEBUG [karma]: List of files has changed, trying to execute
2016 09:18:07.905:WARN [karma]: No captured browser, open http://localhost:9876/
2016 09:18:07.909:DEBUG [watcher]: Watching "D:/Code/movie-app/src"
2016 09:18:07.909:DEBUG [watcher]: Watching "D:/Code/movie-app/spec"
2016 09:18:07.912:INFO [karma]: Karma v1.1.2 server started at http://localhost:9876/
2016 09:18:07.913:INFO [launcher]: Launching browser IE with unlimited concurrency
2016 09:18:07.918:INFO [launcher]: Starting browser IE
2016 09:18:07.919:DEBUG [temp-dir]: Creating temp dir at C:\Users\plstoner\AppData\Local\Temp\karma-39149011
2016 09:18:07.922:WARN [launcher]: The path should not be quoted. Normalized the path to C:\Program Files\Internet Explorer\iexplore.exe
2016 09:18:07.922:DEBUG [launcher]: C:\Program Files\Internet Explorer\iexplore.exe http://localhost:9876/?id=39149011
2016 09:18:07.984:DEBUG [web-server]: serving: D:\nodejs\node_modules\karma\static/client.html
2016 09:18:08.042:DEBUG [launcher]: Killed extra IE process 12216
2016 09:18:08.043:DEBUG [launcher]: Process IE exited with code 0
2016 09:18:08.043:ERROR [launcher]: Cannot start IE
2016 09:18:08.043:DEBUG [temp-dir]: Cleaning temp dir C:\Users\plstoner\AppData\Local\Temp\karma-39149011
2016 09:18:08.045:INFO [launcher]: Trying to start IE again (1/2).
2016 09:18:08.046:DEBUG [launcher]: Restarting IE
2016 09:18:08.046:DEBUG [temp-dir]: Creating temp dir at C:\Users\plstoner\AppData\Local\Temp\karma-39149011
2016 09:18:08.047:WARN [launcher]: The path should not be quoted. Normalized the path to C:\Program Files\Internet Explorer\iexplore.exe
2016 09:18:08.048:DEBUG [launcher]: C:\Program Files\Internet Explorer\iexplore.exe http://localhost:9876/?id=39149011
2016 09:18:08.064:DEBUG [karma]: A browser has connected on socket /#XanowPaXqeDvRzqPAAAA
2016 09:18:08.073:DEBUG [web-server]: upgrade /socket.io/?EIO=3&transport=websocket&sid=XanowPaXqeDvRzqPAAAA
2016 09:18:08.113:INFO [IE 11.0.0 (Windows 7 0.0.0)]: Connected on socket/#XanowPaXqeDvRzqPAAAA with id 39149011
2016 09:18:08.114:DEBUG [launcher]: IE (id 39149011) captured in 0.2 secs
2016 09:18:08.116:DEBUG [karma]: All browsers are ready, executing
2016 09:18:08.117:DEBUG [karma]: Captured 1 browsersSTART:
2016 09:18:08.129:DEBUG [web-server]: serving (cached): D:\nodejs\node_modules\karma\static/client.html
2016 09:18:08.136:DEBUG [middleware:karma]: custom files null null
2016 09:18:08.137:DEBUG [middleware:karma]: Serving static request /context.html
2016 09:18:08.139:DEBUG [web-server]: serving: D:\nodejs\node_modules\karma\static/context.html calculator √ should add two numbersFinished in 0.006 secs / 0 secsSUMMARY:√ 1 test completed
2016 09:18:08.184:DEBUG [karma]: A browser has connected on socket /#2Ju8wdorJ9aFdsBFAAAB
2016 09:18:08.188:DEBUG [web-server]: upgrade /socket.io/?EIO=3&transport=websocket&sid=2Ju8wdorJ9aFdsBFAAAB
2016 09:18:08.193:DEBUG [launcher]: Killed extra IE process 11200
2016 09:18:08.193:DEBUG [launcher]: Process IE exited with code 0
2016 09:18:08.194:ERROR [launcher]: IE crashed.
2016 09:18:08.194:DEBUG [temp-dir]: Cleaning temp dir C:\Users\plstoner\AppData\Local\Temp\karma-39149011
2016 09:18:08.202:DEBUG [IE 11.0.0 (Windows 7 0.0.0)]: New connection /#2Ju8wdorJ9aFdsBFAAAB (already have /#XanowPaXqeDvRzqPAAAA)
2016 09:18:08.203:INFO [launcher]: Trying to start IE again (2/2).
2016 09:18:08.204:DEBUG [launcher]: Restarting IE
2016 09:18:08.204:DEBUG [temp-dir]: Creating temp dir at C:\Users\plstoner\AppData\Local\Temp\karma-39149011
2016 09:18:08.205:WARN [launcher]: The path should not be quoted. Normalized the path to C:\Program Files\Internet Explorer\iexplore.exe
2016 09:18:08.205:DEBUG [launcher]: C:\Program Files\Internet Explorer\iexplore.exe http://localhost:9876/?id=39149011
2016 09:18:08.265:DEBUG [web-server]: serving (cached): D:\nodejs\node_modules\karma\static/client.html
2016 09:18:08.313:DEBUG [karma]: A browser has connected on socket /#-FmU_ne2_Ew9wYuAAAAC
2016 09:18:08.318:DEBUG [web-server]: upgrade /socket.io/?EIO=3&transport=websocket&sid=-FmU_ne2_Ew9wYuAAAAC
2016 09:18:08.321:DEBUG [launcher]: Killed extra IE process 8716
2016 09:18:08.322:DEBUG [launcher]: Process IE exited with code 0
2016 09:18:08.323:ERROR [launcher]: Cannot start IE
2016 09:18:08.323:DEBUG [temp-dir]: Cleaning temp dir C:\Users\plstoner\AppData\Local\Temp\karma-39149011
2016 09:18:08.324:ERROR [launcher]: IE failed 2 times (cannot start). Giving up.
2016 09:18:08.328:DEBUG [IE 11.0.0 (Windows 7 0.0.0)]: New connection /#-FmU_ne2_Ew9wYuAAAAC (already have /#XanowPaXqeDvRzqPAAAA, /#2Ju8wdorJ9aFdsBFAAAB)
2016 09:18:18.329:WARN [IE 11.0.0 (Windows 7 0.0.0)]: Disconnected (1 times), because no message in 10000 ms.IE 11.0.0 (Windows 7 0.0.0) ERROR Disconnected, because no message in 10000 ms.
2016 09:20:07.924:DEBUG [IE 11.0.0 (Windows 7 0.0.0)]: Disconnected /#XanowPaXqeDvRzqPAAAA, still have /#2Ju8wdorJ9aFdsBFAAAB, /#-FmU_ne2_Ew9wYuAAAAC
2016 09:20:07.929:DEBUG [IE 11.0.0 (Windows 7 0.0.0)]: Disconnected /#2Ju8wdorJ9aFdsBFAAAB, still have /#-FmU_ne2_Ew9wYuAAAAC
2016 09:20:07.951:DEBUG [karma]: A browser has connected on socket /#gbWAHtXDAGqDYBgbAAAD
2016 09:20:07.953:DEBUG [karma]: A browser has connected on socket /#_ofvIG1_Ho4ewvz1AAAE
2016 09:20:07.955:DEBUG [karma]: A browser has connected on socket /#TV____8W3Xh_ubEYAAAF
2016 09:20:07.958:DEBUG [karma]: A browser has connected on socket /#Y8FpnS8mDdbHNGEsAAAG
2016 09:20:07.961:DEBUG [karma]: A browser has connected on socket /#FlMhCpMEMbQu_sR2AAAH
2016 09:20:07.964:DEBUG [karma]: A browser has connected on socket /#AZQBgmUxoRgebkQsAAAI
2016 09:20:07.968:DEBUG [karma]: A browser has connected on socket /#hlLlzyTYadG5AQjRAAAJ
2016 09:20:07.971:DEBUG [karma]: A browser has connected on socket /#ZGt2H_APzXoG3YOYAAAK
2016 09:20:07.975:DEBUG [karma]: A browser has connected on socket /#1qJdhtxecSju3ixLAAAL
2016 09:20:07.978:DEBUG [karma]: A browser has connected on socket /#Vir4p3fxIls0VAHtAAAM
2016 09:20:07.979:DEBUG [karma]: A browser has connected on socket /#UP5IUE5tGatXXdB_AAAN
2016 09:20:07.982:DEBUG [karma]: A browser has connected on socket /#FwTQ8MqEgqroP5JJAAAO
2016 09:20:07.983:DEBUG [karma]: A browser has connected on socket /#uqBCBYU6vmAWq0_WAAAP
2016 09:20:07.986:DEBUG [karma]: A browser has connected on socket /#Y-LpXJpUd1oOhvRhAAAQ
2016 09:20:07.988:DEBUG [karma]: A browser has connected on socket /#ol_MMNXfgKILHStaAAAR
2016 09:20:13.484:DEBUG [karma]: A browser has connected on socket /#gdMFq8_ZOJG1EY27AAAS
2016 09:20:13.496:DEBUG [web-server]: upgrade /socket.io/?EIO=3&transport=websocket&sid=gdMFq8_ZOJG1EY27AAAS
2016 09:20:13.521:INFO [IE 11.0.0 (Windows 7 0.0.0)]: Connected on socket/#gdMFq8_ZOJG1EY27AAAS with id 39149011
2016 09:20:13.524:DEBUG [launcher]: IE (id 39149011) captured in 125.61 secs
2016 09:20:16.723:DEBUG [karma]: A browser has connected on socket /#0WUgVcdQhm4jH7tUAAAT
2016 09:20:16.731:DEBUG [web-server]: upgrade /socket.io/?EIO=3&transport=websocket&sid=0WUgVcdQhm4jH7tUAAAT
2016 09:20:16.759:DEBUG [IE 11.0.0 (Windows 7 0.0.0)]: New connection /#0WUgVcdQhm4jH7tUAAAT (already have /#gdMFq8_ZOJG1EY27AAAS)
2016 09:20:16.959:DEBUG [karma]: A browser has connected on socket /#ZlZYuXtWlfGq-uY3AAAU
2016 09:20:16.970:DEBUG [web-server]: upgrade /socket.io/?EIO=3&transport=websocket&sid=ZlZYuXtWlfGq-uY3AAAU
2016 09:20:16.996:DEBUG [IE 11.0.0 (Windows 7 0.0.0)]: New connection /#ZlZYuXtWlfGq-uY3AAAU (already have /#gdMFq8_ZOJG1EY27AAAS, /#0WUgVcdQhm4jH7tUAAAT)
2016 09:20:27.002:WARN [IE 11.0.0 (Windows 7 0.0.0)]: Disconnected (1 times), because no message in 10000 ms.IE 11.0.0 (Windows 7 0.0.0) ERROR Disconnected, because no message in 10000 ms.

I have turned off automatic crash recovery, as suggested by SathishN did not resolve the issue.

The work around I have is to run karma first and then open a new browser. But then if I stop karma all my browsers close out. This is inconvenient when watching videos on Angular JS testing.

It is interesting that this issue has been open for 3 years with no solution.

@bluehenry
Copy link

I have the exactly same issue. Win 7 x64, IE 11, Karma v1.1.2. If no IE was open before, Karma works fine. But if an IE was opened already, Karma will attempt to start three browsers and fails. although tests were ran. Here is the output:

C:\Workspace\Node.js\UnitTestingJasmine>karma start
05 08 2016 10:29:31.754:WARN [karma]: No captured browser, open http://localhost:9876/
05 08 2016 10:29:32.189:INFO [karma]: Karma v1.1.2 server started at http://localhost:9876/
05 08 2016 10:29:32.190:INFO [launcher]: Launching browser IE with unlimited concurrency
05 08 2016 10:29:32.458:INFO [launcher]: Starting browser IE
05 08 2016 10:29:33.904:ERROR [launcher]: Cannot start IE

05 08 2016 10:29:33.913:INFO [launcher]: Trying to start IE again (1/2).
05 08 2016 10:29:34.183:INFO [IE 11.0.0 (Windows 7 0.0.0)]: Connected on socket /#OExsuwNla4Uw-1GRAA
IE 11.0.0 (Windows 7 0.0.0) jasmine testing - add should be 12 when adding 7 to 5 FAILED
Expected 12 to be 11.
at Anonymous function (spec/addTesting.js:22:6)
IE 11.0.0 (Windows 7 0.0.0): Executed 2 of 2 (1 FAILED) (0.019 secs / 0.002 secs)
05 08 2016 10:29:34.805:ERROR [launcher]: IE crashed.

05 08 2016 10:29:34.809:INFO [launcher]: Trying to start IE again (2/2).
05 08 2016 10:29:35.572:ERROR [launcher]: Cannot start IE

05 08 2016 10:29:35.576:ERROR [launcher]: IE failed 2 times (cannot start). Giving up.
IE 11.0.0 (Windows 7 0.0.0) ERROR
Disconnected, because no message in 10000 ms.
IE 11.0.0 (Windows 7 0.0.0): Executed 2 of 2 (1 FAILED) DISCONNECTED (11.093 secs / 0.002 secs)

@jsouthwo
Copy link

jsouthwo commented Mar 6, 2017

This issue points to karma-ie-launcher's README, which solved the problem for me.

@ghost
Copy link

ghost commented Feb 25, 2018

@jsouthwo Same here. This solved it:

            IE11: {
                base: "IE",
                flags: ['-extoff']
            },

@KevinBrogan
Copy link

I had the same issue, but rather than change the IE browser config to have the -extoff flag, I went into the IE options and manually disabled every extension. Seems to have worked.

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

No branches or pull requests