-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Thread safety of quickjs #206
Comments
Suffering from the same issue here - here is a screenshot of such a quickjs crash: Reproducing is easy: Just use Eclipse IDE, configure px 0.9.0 (localhost:3128) as manual proxy and try to install any more complex plugin from the marketplace -> Eclipse tries to access px.exe from multiple threads, leading to the assertion failure... I fully agree: Thank you for all your hard work on px, it has really been very useful for everybody here at my customer behind the NTLM/Kerberos proxy... |
Thank you for the report - I'll get this resolved in v0.9.1. |
Fixed in v091. Thank you for making it so easy @llewellyn-marriott!
|
v0.9.1 has been released. |
Sorry to resurrect a closed issue @genotrance, but reading this makes me wonder if the fix actually goes far enough. The quoted text seems to imply that a Context can only ever be accessed by the thread that created it, whereas the fix (as I understand it) only prevents concurrent accesses by different threads. |
I have been having issues with PX crashing inconsistently, the logs wouldn't show much, until today when I noticed the following error:
Note on the version number: I did try updating to 0.9 but still had intermittent crashes, with varying errors. I just don't have any of them saved.
I had a look through the code (I am not a Python dev) and from what I can see there is no state lock used when calling quickjs, which is shared between multiple threads.
In my px.ini file I set
threads = 1
and the intermittent crashes went away.Looking at the quickjs Python package (https://pypi.org/project/quickjs/), it indicates that:
Also, thank you for all your hard work on px, it has really been very useful for me.
The text was updated successfully, but these errors were encountered: