uv: `uv pip insall` on Windows causes "thread '' has overflowed its stack"
Summary
I was benchmarking the following scenario with pip vs. uv: https://discuss.python.org/t/pep-777-how-to-re-invent-the-wheel/67484/238 and I end up getting: “thread ‘<unknown>’ has overflowed its stack” and uv pip fails to install the packages.
Steps to set up
There may be a simpler set up but this is what I found:
- Download https://github.com/winpython/winpython/releases/download/13.1.202502222/build_3.13._.0slim__of_23-02-2025_at_10_22.txt.packages_versions.txt as
requirements.txt uv venv -p 3.13.venv\Scripts\activateuv pip install pippip download -r .\requirements.txt -d packagesuv cache clean
Command that fails
uv pip install -r .\requirements.txt --no-index --find-links .\packages\
Output
thread '<unknown>' has overflowed its stack
“-vvv” logs: https://gist.github.com/notatallshaw/404c6444703e5e2a14e3bd5b9994990a
Platform
Windows 10
Version
uv 0.6.13 (a0f5c7250 2025-04-07)
Python version
Python 3.13.2
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (9 by maintainers)
Commits related to this issue
- Set 4MB stack size for all threads See #12769. We set the 4MB not only for the main thread, but also for all tokio and rayon threads to fix a stack overflow while unpacking wheels in production on Wi... — committed to astral-sh/uv by konstin 2 years ago
- Set 4MB stack size for all threads See #12769. We set the 4MB not only for the main thread, but also for all tokio and rayon threads to fix a stack overflow while unpacking wheels in production on Wi... — committed to astral-sh/uv by konstin 2 years ago
- Set 4MB stack size for all threads, introduce `UV_STACK_SIZE` (#12839) See #12769 for the motivation. We set the 4MB not only for the main thread, but also for all tokio and rayon threads to fix a st... — committed to astral-sh/uv by konstin 2 years ago
I tested your current branch and was unable to reproduce the error, whereas I can reproduce the scenario building against main.