Skip to content

Tilemaker v3 kept crashing on rapidjson::GenericValue<Encoding, Allocator>::operator[] #875

@chris-opendata

Description

@chris-opendata

Hi there,

I built the v3 from github and installed on my Windows WSL Ubuntu. tilemaker –help shows tilemaker v3.0.0

Running tilemaker:
/usr/local/bin/tilemaker --input my.osm.pbf --output test_tiles --config config.json --process process.lua --store tilemaker_temp --verbose
got the crash
tilemaker: /usr/include/rapidjson/document.h:1053: rapidjson::GenericValue<Encoding, Allocator>& rapidjson::GenericValue<Encoding, Allocator>::operator[](const rapidjson::GenericValue<Encoding, SourceAllocator>&) [with SourceAllocator = rapidjson::MemoryPoolAllocator<>; Encoding = rapidjson::UTF8<>; Allocator = rapidjson::MemoryPoolAllocator<>]: Assertion false' failed.

To ensure my.osm.pbf is valid, I ran osmium fileinfo -e my.osm.pbf and see the output:

File:
Name: my.osm.pbf
Format: PBF
Compression: none
Size: 1146467
Header:
Bounding boxes:
With history: no
Options:
generator=osmium/1.19.0
pbf_dense_nodes=true
pbf_optional_feature_0=Sort.Type_then_ID
sorting=Type_then_ID
[======================================================================] 100%
Data:
Bounding box: (150.00000,-33.85000,151.00000,-33.74000)
Timestamps:
First: 2006-12-24T05:32:50Z
Last: 2026-01-26T11:15:12Z
Objects ordered (by type and id): yes
Multiple versions of same object: no
CRC32: not calculated (use --crc/-c to enable)
Number of changesets: 0
Number of nodes: 94777
Number of ways: 13312
Number of relations: 759
Smallest changeset ID: 0
Smallest node ID: 13148971
Smallest way ID: 3816222
Smallest relation ID: 269245
Largest changeset ID: 0
Largest node ID: 13495483680
Largest way ID: 1470852298
Largest relation ID: 20132703
Number of buffers: 172 (avg 632 objects per buffer)
Sum of buffer sizes: 10773888 (0.01 GB)
Sum of buffer capacities: 11272192 (0.01 GB, 96% full)
Metadata:
All objects have following metadata attributes: version+timestamp
Some objects have following metadata attributes: version+timestamp

I have spent a day poking around here and there. Nothing can fix the crash. Could anyone help?

BTW, I tried v2 binary distribution before building v3 locally because v2 had the same problem.

I attach config.json and process.lua for reference.
My config.json:
config.json

My process.lua (renamed to process.lua.txt for upload)
process.lua.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions