Skip to content
This repository was archived by the owner on Sep 3, 2019. It is now read-only.
This repository was archived by the owner on Sep 3, 2019. It is now read-only.

Out-Of-Memory-Exception Routing.Router.CreateLiveFrom #282

@Lotto2

Description

@Lotto2

Hello,

if i try to initialize a router with a PBF-File bigger than 15MB i get this out-of-memory-exception. Task-Manager shows a lot of memory still available.

VB-Code like this

`Dim FnOsmFile$="D:\BigFile.Pbf"
Dim interpreter = New OsmRoutingInterpreter()
Public router As Routing.Router
Public PbfStreamSource As PBFOsmStreamSource

        PbfStreamSource = New PBFOsmStreamSource(New FileInfo(FnOsmFile$).OpenRead())
        router = Routing.Router.CreateLiveFrom(PbfStreamSource, interpreter)`

For the task i'm working on i should be able to work with files around 50MB. The attachment-PBF-file is a sample (25MB) that causes the error.

Any chance to get an improvement of Router.CreateLiveFrom?

planet_6.905,50.987_7.532,51.238.osm.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions