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
scalene breaks when importing pyproj #130
Comments
I'm unable to reproduce this with the version in the repo, though that version has not been released yet. Can you give that a try? |
Indeed, I built the current version in local and scalene does not fail, however it seems the behaviour is still not correct. I tried profiling the following file from pyproj import Proj
import time
time.sleep(1)
time.sleep(0.1) and scalene ends with |
Works for me:
|
hmm this is weird , I'm on te latest version of pyproj as well so I don't see why it does not work |
Can you give me more info about your system? Are you using the latest version of Scalene? ( |
Scalene versionI cloned the scalene repo in local , i am on commit Pyproj version
Python version
I am on macOSX version 10.15.7 (19H524) To note that on this commit of scalene I now have |
Runs cleanly on Mac OS X with the same commit version, same Pyproj version, and same Python version. The only difference is that I am running on an M1 with a much more recent version of Mac OS X (11.2.3, Big Sur). You might try updating Heap-Layers to see if it helps (long shot) -- |
I tried but it didn't work. For reference I reproduced the problem on a minimal environment with just scalene and pyproj installed
|
Successfully replicated on x86 mac, I'll get to the bottom of it! |
This seems to be a more fundamental issue with how Scalene interacts with |
FWIW @sternj I just tried this on Mac OS X x86 with the current repo version and Python 3.7, and it works fine (Ubuntu 16). @aymondebroglie can you try installing it from the repo?
|
@emeryberger I tried and I still have the same issue |
Could you post the backtrace you obtain with the Console application (within Utilities), looking for crash reports? |
We have it tracked down to an issue with malloc interposition on Mac interacting with |
(I can send you some more details-- it is acting like an issue with HeapLayers rather than with Scalene itself) |
I believe this may actually be solved (!). @aymondebroglie if you can reach out to us on Discord, that would be great! https://discord.com/invite/6Dtaf6HW3m |
Confirmed fixed by @aymondebroglie - thanks! |
Describe the bug
I am trying to profile code where we import the pyproj library, and scalene fails with
Scalene error: received signal SIGSEGV
To Reproduce
from pyproj import Proj
scalene my_file.py
Scalene will fail with the error above
Expected behaviour
Scalene does not fail and I can profile like for any library !
The text was updated successfully, but these errors were encountered: