Skip to content

Graph build crashes for init_threads > 1 #2180

@takb

Description

@takb

Is there an existing issue for this?

  • I have searched the existing issues

Problem description

Starting a graph build with

ors:
  engine:
    init_threads: 4
    profile_default:
      build:
        source_file: ors-api/src/test/files/heidelberg.test.pbf
    profiles:
      driving-car:
        enabled: true
      foot-walking:
        enabled: true
      cycling-regular:
        enabled: true

produces error a)

2025-11-17 15:16:59 ERROR                                             ORS-Init [ o.h.o.r.RoutingProfileManager            ]   Exception at RoutingProfileManager initialization: class java.util.concurrent.ExecutionException: java.lang.RuntimeException: Couldn't process file ors-api/src/test/files/heidelberg.test.pbf, error: Index 7 out of bounds for length 0

or error b)

2025-11-17 15:14:30 ERROR                                             ORS-Init [ o.h.o.r.RoutingProfileManager            ]   Exception at RoutingProfileManager initialization: class java.util.concurrent.ExecutionException: java.lang.RuntimeException: Couldn't process file ors-api/src/test/files/heidelberg.test.pbf, error: Cannot invoke "com.graphhopper.storage.DataAccess.getHeader(int)" because "this.heights" is null

or error c)

2025-11-17 14:11:46 DEBUG                                             ORS-Init [ o.h.o.r.RoutingProfileManager            ]   java.util.concurrent.ExecutionException: java.lang.RuntimeException: Couldn't process file /home/ors/files/urcls.pbf, error: Can't decode srtm_38_01.tif

or no error at all, at roughly same probability.

Proposed solution

Probably something to do with parallel access to the pbf file? Need to investigate.

Additional context

No response

Forum Topic Link

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions