Skip to content

Range violation on big pbf file #96

@denizzzka

Description

@denizzzka

Previously it is worked well.

I'm not sure: this error in my code or in dproto code? dproto normally throws only its own exceptions?

core.exception.RangeError@std/bitmanip.d(2987): Range violation
----------------
??:? _d_arraybounds [0x6910cf]
??:? std.bitmanip.__array [0x69d474]
/usr/include/dmd/phobos/std/bitmanip.d:2987 pure nothrow @nogc @safe ulong std.bitmanip.read!(ulong, 1, ubyte[]).read(ref ubyte[]) [0x654bdf]
../../.dub/packages/dproto-2.1.0/dproto/import/dproto/serialize.d:410 pure nothrow @nogc @safe ulong dproto.serialize.readProto!("fixed64", ubyte[]).readProto(ref ubyte[]) [0x659a74]
../../.dub/packages/dproto-2.1.0/dproto/import/dproto/serialize.d:112 pure @safe void dproto.serialize.defaultDecode!(ubyte[]).defaultDecode(ulong, ref ubyte[]) [0x659a20]
../../.dub/packages/dproto-2.1.0/dproto/import/dproto/attributes.d:95 pure @safe void osmproto.Relation.__mixin10.deserialize!(ubyte[]).deserialize(ref ubyte[]) [0x65f4a4]
../../.dub/packages/dproto-2.1.0/dproto/import/dproto/attributes.d:217 pure @safe void dproto.attributes.putSingleProtoVal!("Relation", osmproto.Relation, ubyte[]).putSingleProtoVal(ref osmproto.Relation, ref ubyte[]) [0x65f2ec]
../../.dub/packages/dproto-2.1.0/dproto/import/dproto/attributes.d:193 pure @safe void dproto.attributes.putProtoVal!(osmproto.Relation[] osmproto.PrimitiveGroup.relations, ubyte[]).putProtoVal(ref ubyte[], ulong) [0x65f26f]
../../.dub/packages/dproto-2.1.0/dproto/import/dproto/attributes.d:90 pure @safe void osmproto.PrimitiveGroup.__mixin7.deserialize!(ubyte[]).deserialize(ref ubyte[]) [0x65ca62]
../../.dub/packages/dproto-2.1.0/dproto/import/dproto/attributes.d:217 pure @safe void dproto.attributes.putSingleProtoVal!("PrimitiveGroup", osmproto.PrimitiveGroup, ubyte[]).putSingleProtoVal(ref osmproto.PrimitiveGroup, ref ubyte[]) [0x65c944]
../../.dub/packages/dproto-2.1.0/dproto/import/dproto/attributes.d:193 pure @safe void dproto.attributes.putProtoVal!(osmproto.PrimitiveGroup[] osmproto.PrimitiveBlock.primitivegroup, ubyte[]).putProtoVal(ref ubyte[], ulong) [0x65c8cc]
../../.dub/packages/dproto-2.1.0/dproto/import/dproto/attributes.d:90 pure @safe void osmproto.PrimitiveBlock.__mixin8.deserialize!(ubyte[]).deserialize(ref ubyte[]) [0x65c40c]
../../.dub/packages/dproto-2.1.0/dproto/import/dproto/attributes.d:54 pure ref @safe osmproto.PrimitiveBlock osmproto.PrimitiveBlock.__mixin8.__ctor!(ubyte[]).__ctor(ref ubyte[]) [0x65c33b]
osm.d:310 map.region.region.Region osm.getRegion(immutable(char)[], bool) [0x65422d]
osm.d:384 map.map.Map osm.getMap(immutable(char)[][], bool) [0x654b29]
main.d:36 _Dmain [0x5fcb58]
??:? _D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv [0x6954f2]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate()) [0x69543c]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll() [0x6954ae]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate()) [0x69543c]
??:? _d_run_main [0x6953ad]
??:? main [0x5fd92f]
??:? __libc_start_main [0x551c5ef]
Program exited with code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions