[Tile-serving] [osm2pgsql] osm2pgsql crashes on .osc not containing any ways (#84)

Sarah Hoffmann notifications at github.com
Mon Sep 23 06:17:49 UTC 2013


When trying to apply [this .osc](http://www.lonvia.de/attic/osm2pgsql-noway-bug.osc), which only contains changes to nodes and relations but not to ways, osm2pgsql crashes with:

    Reading in file: osm2pgsql-noway-change.osc
    rel_delete_mark failed: ERROR:  current transaction is aborted, commands ignored until end of transaction block
    (7)
    Arguments were: 60576, 
    Error occurred, cleaning up

Postgresql log shows:

    2013-09-23 08:07:37 CEST ERROR:  COPY from stdin failed: COPY terminated by new PQexec
    2013-09-23 08:07:37 CEST CONTEXT:  COPY planet_osm_ways, line 1
    2013-09-23 08:07:37 CEST STATEMENT:  COPY planet_osm_ways FROM STDIN;
    2013-09-23 08:07:37 CEST ERROR:  current transaction is aborted, commands ignored until end of transaction block
    2013-09-23 08:07:37 CEST STATEMENT:  PREPARE node_changed_mark(int8) AS UPDATE planet_osm_ways SET pending = true WHERE nodes && ARRAY[$1] AND NOT pending;
        PREPARE rel_delete_mark(int8) AS UPDATE planet_osm_ways SET pending = true WHERE id IN (SELECT unnest(parts[way_off+1:rel_off]) FROM planet_osm_rels WHERE id = $1) AND NOT pending;

Adding a random way to the .osc file made it pass.

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/84
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20130922/7047a01d/attachment.html>


More information about the Tile-serving mailing list