Skip to content
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

PyOsmium script hangs indefinitely on Windows #280

Open
gabortim opened this issue Feb 1, 2025 · 2 comments
Open

PyOsmium script hangs indefinitely on Windows #280

gabortim opened this issue Feb 1, 2025 · 2 comments

Comments

@gabortim
Copy link

gabortim commented Feb 1, 2025

After installing Osmium and running a script using PyOsmium on Windows, the execution never terminates. The script runs but does not exit as expected.

Steps to reproduce:

  1. Install PyOsmium in a standard library virtual environment (venv)
  2. Run the following example from the documentation:
import osmium

for obj in osmium.FileProcessor('test.osm'):
    print(obj)

Expected behavior
The script should process the input file, print the result and exit.

Actual behavior
The script prints the result and does not terminate.


OS: Windows 10 22H2 (build 19045.5371)
Python version: 3.12.8
PyOsmium version: 4.0.2
Installation method: Installed via pip in a standard venv

@lonvia
Copy link
Member

lonvia commented Feb 6, 2025

Already discussed at length in #233.

This needs somebody with access to a Windows machine to find the root cause.

@gabortim
Copy link
Author

What I see is that CPU cycles burning in the kernel ntdll.NtWaitForAlertByThreadId+14 process. Probably a deadlock?

Btw I usually develop in a virtual machine, OS type is not a concern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants