osm2pgsql immediately crashes #2326
-
Hello, I have spent the several hours trying to troubleshoot this crash, I'm not sure if this is a bug or something I am doing wrong:
osm2pgsql: 2.1.1 Database version: 17.4 PostGIS version: 3.5 This occurs will all lua files and different variations and syntax. I've also attempted on multiple DBs, including newly created, with POSTGIS installed, with and without HSTORE installed. I've also attempted this form both C and D drives just to rule out any storage issues. One workaround that does work, is using version 1.5 and below and a .style file, however, it a better idea to use Flex and Lua. The only logs that are showing any information:
Thanks again for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
It is probably unrelated to the crash, but I do notice one issue in your command line, you specify -O Flex with uppercase f, while it should be -O flex with lowercase according to the manual: https://osm2pgsql.org/doc/manual.html#the-flex-output |
Beta Was this translation helpful? Give feedback.
-
This looks like some library incompatibility or so to me. |
Beta Was this translation helpful? Give feedback.
-
For what it is worth, I successfully ran the latest osm2pgsql v2.1.1 as downloaded from the official https://osm2pgsql.org/doc/install/windows.html link in Windows 10 22H2, build 19045.5737 with the Geofabrik 'Denmark' extract as input file using the same custom osm2pgsql flex style I use on Ubuntu 24.04 to import Planet. Of course, the OP uses Windows 11, not 10. |
Beta Was this translation helpful? Give feedback.
-
Our builds are created on Windows 2022, which corresponds to Windows 10, it seems. Never heard of any compatibility issues between Windows versions before but, who knows, things might have changed. I've done a test build with artifacts for all three Windows versions, we test for. Can you test, if the Windows-2025 one works for you? The artifacts are here: https://github.com/lonvia/osm2pgsql/actions/runs/14833260369 |
Beta Was this translation helpful? Give feedback.
Our builds are created on Windows 2022, which corresponds to Windows 10, it seems. Never heard of any compatibility issues between Windows versions before but, who knows, things might have changed. I've done a test build with artifacts for all three Windows versions, we test for. Can you test, if the Windows-2025 one works for you? The artifacts are here: https://github.com/lonvia/osm2pgsql/actions/runs/14833260369