-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Debugger error "RuntimeError: release unlocked lock" #65
Comments
From @peringz on September 10, 2016 0:6 This is what I see in the console.
|
@peringz, thanks for the immediate feedback.
Thanks |
From @peringz on September 10, 2016 0:37 @DonJayamanne I'm using extension version 0.3.22 on OS X and using Python 3.5.2 (tried 2.7.10 and got the same results) A simple program like the one below will often throw this exception at a random interval. An error is thrown only when the first line of code or a breakpoint is hit.
My launch configuration looks like this
To replicate, put a breakpoint in line number 4, go to debug and click the Run button selecting Python configuration. Keep pressing F5 to iterate through the loop until Extension throws the error. You may want to repeat this debugging few times to see the error. |
@peringz, one last question. Do you have any watch variables? Thanks |
From @peringz on September 10, 2016 1:32 @DonJayamanne I had three, removed them and did some quick testing. Not able to reproduce the error any longer. |
@peringz |
From @peringz on September 10, 2016 2:31 @DonJayamanne I don't know the variable names. But I was able to replicate the problem by adding two invalid watch variables (foo and bar) |
Great thanks, will check this out tonight. |
From @staffann on January 30, 2017 13:4 I get the same problem with version 0.5.6: Using python 3. Have some different watch variables. The problem occurs when I step inside the code. |
From @ngawangtrinley on February 6, 2017 5:13 I'm on Linux and I get the same problem when I "step into" the code in a fast sequence. If I wait half a second or a second between each time I hit F11 I don't have the problem. I didn't have the problem in Windows. |
From @guiambros on February 12, 2017 6:8 Likewise; I can now reproduce in a very consistent manner. If I wait 0.2s before I press F10/F11, it works well. If I hold the F10 key pressed, it will execute for 3-4 iterations and then cause the error and lock up the session. I have to then stop debugger and start again. Not a huge issue, but a bit annoying when you want to advance a long for-loop without stepping out or setting a breakpoint. Version 0.5.8 (3 February 2017) |
From @mostafaeweda on June 15, 2017 22:21 I keep hitting this issue - I'm willing to help fix it, but need guidance where to start. |
I've the feeling that it happens when I hit "F10" too fast. Like if the thread that displays debug spied variables have no time to compute display outputs and don't like to get interrupted during that job. |
I agree with @brunetton . It's quite random, in debug mode, if i choose to run till some code, then it sometimes deadlock, but if i slowly step by step to the breakpoint, nothing happened. |
Consistently happens when I am watching a variable (in my case a dict) that is being updated. I am on
Doesn't seem to be related to speed. I tried hitting F5/F10 really fast when there were no watch variables and there was no repro. |
I'm getting the same problem. VS Code details: (Edit: I just upgraded to 1.91.2, and I get the exact same problem)
While debugging, I don't have any problem until I add some expressions to watch variables. With a few expressions added, if I step through quickly, the debugger crashes: |
I have the same issue, I'm using
EDIT: I'm getting another error by spamming F10 and F11 keys at the same time
Try running any python code, and mash both F10 and F11 at the same time |
Has this debug been resolved? |
Does this happen for people when using our experimental debugger? |
I use VSCode 1.21.1 and ms-python.python extension 2018.3.1 version. |
I encontered this problem too. |
The debugger team is focusing on the new experimental debugger, so verifying if this issue shows up there would be helpful. |
The problems occurs (including in the latest versions) as soon as you debug hitting "FX" (where FX can be F5, F10...) keyboard too fast (or keeping the F10 down...). Annoying for debug... |
I did suffered this as well, removing evaluation expression that I wasn't evaluating at that moment solved the issue. |
I am running into this problem when I 'Step Over' quickly and have watched variables set in the debugger. It's kind of annoying because variables in the 'Variables' window get collapsed after they're modified by the code, hence why I started using the 'Watch' window. Is there a work-around to keep variables expanded under 'Variables'? Environment:
|
@DonJayamanne the exception "RuntimeError: release unlocked lock" is gone, but now I see this stack trace thrown sporadically when hitting F10 repeatedly:
|
Seconding @osvalban I followed this thread to see if the issue was acknowledged or if it was just a problem on my side of things. So hitting F10 repeatedly did return the runtime error on the python debugger, but not the experimental. The experimental complained without kicking me out:
Info about my system:
I will attach the code that produced the issue and all the relevant files in the next comment |
The script:
and the file sample (the whole thing is a bit too large):
|
@osvalban @ZyptosKid
|
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
@brettcannon any reason why this was reopened? |
From @DonJayamanne on September 9, 2016 23:40
Reported on reddit:
https://www.reddit.com/r/programming/comments/51t7no/visual_studio_code_august_2016_15/d7f31jv
Copied from original issue: DonJayamanne/pythonVSCode#298
The text was updated successfully, but these errors were encountered: