grosser / parallel

Ruby: parallel processing made simple and fast
MIT License
4.15k stars 255 forks source link

rake aborted! Parallel::DeadWorker: Parallel::DeadWorker on failing Rspec tests #186

Open neuzebeoneclass opened 8 years ago

neuzebeoneclass commented 8 years ago

Cloning directly from https://github.com/browserstack/rspec-browserstack and updating only to use correct BrowserStack credentials, running these tests results in expected behaviour and all tests pass. However if I intentionally make the tests fails eg change expect(@driver.title).to eql("BrowserStack - Google Search") to something else like expect(@driver.title).to eql("NOTBrowserStack - Google Search") the test fails as expected but then returns the error

rake aborted! Parallel::DeadWorker: Parallel::DeadWorker preventing the processes from running any more tests.

grosser commented 8 years ago

idk why this happens ... also don't have the time to debug this atm, if you find any more insight or even a fix, please update!

lbrezilien commented 7 years ago

@neuzebeoneclass ever figured out the issue? I'm having the same problem.

jmaheshkumar commented 5 years ago

I am also getting the same error

Parallel::DeadWorker (Parallel::DeadWorker):

fatal: No live threads left. Deadlock? 2 threads, 2 sleeps current

Anyone can help me to resolve this? Thanks in advance.....

muyiwaoyeniyi commented 5 years ago

@jmaheshkumar Were you able to solve the issue? I'm having the same issue.

Thanks. Taiwo

zmcgugin commented 3 months ago

Using browserstack as well. I found this error goes away by changing "in_processes" to "in_threads" in the Parallel.map section of the Rakefile. Not really a solution but good enough for my use case. Nothing else seems to work.

Edit: Nvm im still stuck. Threads cause other issues im running into -_-.

muyiwaoyeniyi commented 3 months ago

@zmcgugin That's what I did too.