Closed hostobaz closed 1 month ago
I can reproduce this, though I'm not sure what's going on yet. Note that it only happens if you use --reload
, which means that whatever's happening, it's being triggered by Flask's reloader.
No, scratch that, I'm pretty sure that this can be reproduced even without Flask. What's happening here is actually a race condition in memray's tracker setup, I think, possibly coupled with a CPython bug, or at least edge case...
I'll figure out how we can fix that, but meanwhile, I think it would solve your problem if you instead ran:
flask run --without-threads --reload
to ensure that only one thread at a time is trying to call with memray.Tracker(...):
Is there an existing issue for this?
Current Behavior
i using memray 1.13.4 flask 3.0.3 and also os ubunto 22.04.4 here's my code
app.py
usecase.py
i got error following below
i am new memray and i don't know what happened what should i do
Expected Behavior
No response
Steps To Reproduce
requirement.txt
pipenv install -r requirements.txt
to create app.py and usecase.py
then run flask run --reload
go to route localhost:5000/
got type error
Memray Version
1.13.4
Python Version
3.11
Operating System
Linux
Anything else?
No response