Replies: 6 comments 14 replies
-
Bumping it up, I have the same problem and memory is also not released. I have had to specifically get the pid of the process and kill it.
|
Beta Was this translation helpful? Give feedback.
-
Tested with This is the expected results ?
my theory:
Please re-test with the similar example code : https://github.com/osmcode/pyosmium/blob/master/examples/osm_file_stats.py |
Beta Was this translation helpful? Give feedback.
-
I'm experiencing the same issue when running https://github.com/osmcode/pyosmium/blob/master/examples/osm_file_stats.py on Windows Server 2022 Standard, while it works on Windows 10 Enterprise and Windows Server 2016 Datacenter. I tried to debug the hanging process with gdb and this is the result:
|
Beta Was this translation helpful? Give feedback.
-
Unfortunately this kind of debugging is out of my league. What I did try however is running my ,very, little program with the python debugger and lo and behold, when doing that it works. I doubt it tells you much, but maybe every piece of info helps. |
Beta Was this translation helpful? Give feedback.
-
@lonvia I am experiencing the same issue. python does not terminate after all lines of code are executed. I'm using python 3.12.4 on windows 11 Education 23H3. osmium version 4.0.0. |
Beta Was this translation helpful? Give feedback.
-
Hey everyone. I have also been experiencing this problem, so I spent a while looking into it. There appears to be an issue with the way the Reader class is implemented in libosmium (and not here). The code hangs during the initialization or reading process on Windows, but it works fine on Linux and macOS. For example, if you run the following code on Windows, it hangs and does not clear memory. If you run it on Linux or MacOS, the program terminates. Note that you can place anything in test.pbf, whether it be blank, one character, or an actual valid pbf file: from osmium.io import Reader
Reader('test.pbf') Environment
Steps to Reproduce (On Windows)
If there are any logs or debugging steps you recommend I take to further diagnose this issue, please let me know. I am happy to provide additional information or test potential fixes. Thank you for your help! |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have been running a very simple python script using the SimpleHandler. The program runs correctly till the end but then it fails to terminate properly. The program cannot be killed by keyboard interupt. It happens in Windows command line and PowerShell and GitBash consoles. It happens only after using apply_file, just having an instance of Handler does not cause any issues.
Here's the script:
Would someone know what could be the cause of the problem?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions