I create a new project in PyCharm, create a fresh venv with Python 3.12.0 and install tqdm.
When I now run the Script in Debug mode in PyCharm, then (most of the time) the underlying Python process will crash with EXC_BAD_ACCESS and a similar looking crash log (usually the address at KERN_INVALID_ACCESS varies).
If I reduce the number of items in the list requests_to_make (<30 entries), pydevd usually won't crash.
Crashes seem to start occurring between 30-40 entries, going higher makes the crash more reliable.
When I switch to a venv with Python 3.11.6, this issue does not occur and pydevd works correctly even with a large amount of items in requests_to_make.
Issue
My current setup is:
brew install python@3.12
Using the following reproducing script:
I create a new project in PyCharm, create a fresh venv with Python 3.12.0 and install
tqdm
.When I now run the Script in Debug mode in PyCharm, then (most of the time) the underlying Python process will crash with
EXC_BAD_ACCESS
and a similar looking crash log (usually the address atKERN_INVALID_ACCESS
varies).If I reduce the number of items in the list
requests_to_make
(<30 entries), pydevd usually won't crash. Crashes seem to start occurring between 30-40 entries, going higher makes the crash more reliable.When I switch to a venv with Python 3.11.6, this issue does not occur and pydevd works correctly even with a large amount of items in
requests_to_make
.Crash log (truncated, full log attached)
crash_log.txt