-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Attempt to unlock a mutex which is locked by another thread #76
Comments
Yea that's weird, do you |
Yep that's what I mean, I get this issue with As it's just 1 page it could be something specific to our app, but I thought I'd open the issue in case anyone else gets the same error and googles it. |
i think i had such a cryptic mutex error myself. I had tracked it down. The issue for me occurred when the page took longer to load than the cuprite It's a little far for me to remember well, but I had reproduced it by create a fresh rails app, then putting an infinite |
@ximus mind creating a repo so I could take a look? |
@ximus @sfcgeorge I removed all possible deadlocks in the last release. Code is no longer uses plain Ruby mutex and condition var, we now use concurrent-ruby primitives, more over there's always timeout (5 seconds by default) for slow responses. Could you guys please check again that massive refactoring? |
@ximus I ran your application locally and it worked fine on both my machines:
Mutex was fully eliminated from cuprite, if you guys could check that this error doesn't exist anymore I would appreciate it. Thanks! |
confirmed that toggling from
interesting note. I initially wasn't able to reproduce this. Then I tried downgrading to the ruby version I used during my initial POC. Turns out I can't reproduce the original error at ruby |
Thanks I'm glad it worked! |
Switched a test suite with a few hundred specs to Cuprite, mostly working fine (well done and thank you!)
There's 1 weird error we get. The spec passes normally, but if we turn on
js_errors: true
we get this:Mutex seems like a Ruby thing not a JS thing, yet a JS error is being raised. And the JS error is just the letter "r"?
The scenario is just logging in, being redirected to the dashboard, then clicking a link. On clicking the link this error happens.
For now I've worked around like so:
The text was updated successfully, but these errors were encountered: