{"action":"created","issue":{"url":"https://api.github.com/repos/karma-runner/karma/issues/2211","repository_url":"https://api.github.com/repos/karma-runner/karma","labels_url":"https://api.github.com/repos/karma-runner/karma/issues/2211/labels{/name}","comments_url":"https://api.github.com/repos/karma-runner/karma/issues/2211/comments","events_url":"https://api.github.com/repos/karma-runner/karma/issues/2211/events","html_url":"https://github.com/karma-runner/karma/issues/2211","id":162459166,"number":2211,"title":"when karma hangs, how do I debug it?","user":{"login":"cellog","id":98250,"avatar_url":"https://avatars.githubusercontent.com/u/98250?v=3","gravatar_id":"","url":"https://api.github.com/users/cellog","html_url":"https://github.com/cellog","followers_url":"https://api.github.com/users/cellog/followers","following_url":"https://api.github.com/users/cellog/following{/other_user}","gists_url":"https://api.github.com/users/cellog/gists{/gist_id}","starred_url":"https://api.github.com/users/cellog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cellog/subscriptions","organizations_url":"https://api.github.com/users/cellog/orgs","repos_url":"https://api.github.com/users/cellog/repos","events_url":"https://api.github.com/users/cellog/events{/privacy}","received_events_url":"https://api.github.com/users/cellog/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/karma-runner/karma/labels/support","name":"support","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-06-27T14:01:39Z","updated_at":"2016-07-17T15:22:26Z","closed_at":null,"body":"In my project, https://github.com/cellog/react-selection , I have encountered a bug when running karma remotely on saucelabs.  It is caused by code coverage.  In short, karma connects to the browser, loads, and then hangs indefinitely.  When I remove code coverage, the test runs in about 16 seconds.  This happens only remotely, when I run coverage on my local machine, it works great.\r\n\r\nHow can I debug the hang on saucelabs?  I'm new to karma.  When using karma remotely with saucelabs, is it loading karma from my machine?  If yes, which file can I put debug code into to see if I can figure out where it is failing?  Or is there another way?\r\n\r\nThanks much."},"comment":{"url":"https://api.github.com/repos/karma-runner/karma/issues/comments/233187250","html_url":"https://github.com/karma-runner/karma/issues/2211#issuecomment-233187250","issue_url":"https://api.github.com/repos/karma-runner/karma/issues/2211","id":233187250,"user":{"login":"cellog","id":98250,"avatar_url":"https://avatars.githubusercontent.com/u/98250?v=3","gravatar_id":"","url":"https://api.github.com/users/cellog","html_url":"https://github.com/cellog","followers_url":"https://api.github.com/users/cellog/followers","following_url":"https://api.github.com/users/cellog/following{/other_user}","gists_url":"https://api.github.com/users/cellog/gists{/gist_id}","starred_url":"https://api.github.com/users/cellog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cellog/subscriptions","organizations_url":"https://api.github.com/users/cellog/orgs","repos_url":"https://api.github.com/users/cellog/repos","events_url":"https://api.github.com/users/cellog/events{/privacy}","received_events_url":"https://api.github.com/users/cellog/received_events","type":"User","site_admin":false},"created_at":"2016-07-17T15:22:26Z","updated_at":"2016-07-17T15:22:26Z","body":"fyi, the problem is in the karma-saucelabs-launcher, which is unmaintained and doesn't work any more.  After 50 tests, it just dies.  I switched to browserstack and it works perfectly.  However, there are some side effects of running more than 1 browser test in the same karma process.  I have no idea how to isolate them, but the ONLY way I can get karma to work *and* generate code coverage is to run each browser in its own karma process.  You can see what I mean in https://github.com/cellog/react-selection\r\n\r\nMajor pain.\r\n\r\nFortunately, I can do local development with karma very quickly, and then push on commit to find those chance browser differences eventually.  Test runs now take about 15 minutes each, so it's really a pain, but at least it works.\r\n\r\nSo to summarize: there are several bugs that I can't fix or even track down.  The first is that karma and sauce labs are no longer friends, and so I can't use them together at all.  The second is that karma has some kind of strange shared stuff interfering with each other whenever I run more than 1 browser in the same karma process, even if concurrency is set to 1.  That's a huge one, and might be worth investigating further, since it means the sandboxing is leaking.  Let me know if you want me to try things to debug it."}}
{"actor":{"display_login":"cellog"}}