-
Notifications
You must be signed in to change notification settings - Fork 439
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
py-spy record --subprocess consistently failing #244
Comments
ช่วยสอนหน่อยจ้า |
Thanks for the bug report! I think there was an issue when subprocesses exited that caused this - I put a fix in #265 that I believe should fix. Can you try it out? It's included in the latest development release |
Thanks, yeah I gave it a try and I'm not able to reproduce any of the hard failure cases. I'm still seeing
|
Just to add: I likewise can't reproduce it failing any more running 0.4.0.dev1 |
I think this is resolved now ( and I suspect that the error @mtreinish reported was fixed by #391 ). Closing this, but feel free to reopen if this error is still occurring in the latest build |
Trying to profile an application with multiple processes being launched with a multiprocessing pool is consistently failing when I specify the --subprocess flag on
py-spy record
. With a couple of different errors. I've seen:and
this second stack trace also logs:
I have also encountered the error reported in #243 I suspect all three error modes are related but wasn't sure so I opened a separate issue about it. Feel free to close this as a duplicate if necessary.
To reproduce I've been running this script:
which requires that
qiskit-terra
andqiskit-aer
be installed from pypi. Then running:py-spy record --subprocesses --native -o flame.svg -- python test_circuits.py
(it fails without the native flag too, but there are compiled extensions written in cython, c++, and rust as executed as part of the script which I want to profile so I left it in)
This happens consistently from both release and master with python 3.8 and python 3.7 on linux.
The text was updated successfully, but these errors were encountered: