question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash halfway on itemCount 0 must be greater than or equal to 1

See original GitHub issue

Command:

docker run \
	-v $(pwd)/data/tiles:/app/output \
	-it geodan/pg2b3dm \
	-h metis -U tomt -d maquette_nl -p 5433 \
	-t tmp.betterroofs_extruded 

output:

tool: pg2b3dm 0.3.1.0
Start processing....
Calculating bounding boxes...
Writing tileset.json...
Writing 24 tiles...
Progress: tile 7 - 29.17%
Unhandled Exception: System.ArgumentOutOfRangeException: itemCount 0 must be greater than or equal to 1.
Parameter name: itemCount
   at SharpGLTF.Guard.MustBeGreaterThanOrEqualTo[TValue](TValue value, TValue min, String parameterName)
   at SharpGLTF.Schema2.Accessor.SetData(BufferView buffer, Int32 bufferByteOffset, Int32 itemCount, DimensionType dimensions, EncodingType encoding, Boolean normalized)
   at SharpGLTF.Schema2.Accessor.SetVertexData(BufferView buffer, Int32 bufferByteOffset, Int32 itemCount, DimensionType dimensions, EncodingType encoding, Boolean normalized)
   at SharpGLTF.Schema2.Accessor.SetVertexData(MemoryAccessor src)
   at SharpGLTF.Schema2.Schema2Toolkit.CreateVertexAccessor(ModelRoot root, MemoryAccessor memAccessor)
   at SharpGLTF.Schema2.Schema2Toolkit.WithVertexAccessor(MeshPrimitive primitive, MemoryAccessor memAccessor)
   at SharpGLTF.Schema2.Schema2Toolkit.WithVertexAccessors(MeshPrimitive primitive, IEnumerable`1 memAccessors)
   at SharpGLTF.Geometry.PackedPrimitiveBuilder`1.CopyToMesh(Mesh dstMesh, Func`2 materialEvaluator)
   at SharpGLTF.Geometry.PackedMeshBuilder`1.CreateSchema2Mesh(ModelRoot root, Func`2 materialEvaluator)
   at SharpGLTF.Schema2.Schema2Toolkit.CreateMeshes[TMaterial,TvP,TvM,TvS](ModelRoot root, Func`2 materialEvaluator, MeshBuilder`4[] meshBuilders)
   at pg2b3dm.Program.WriteB3dm(List`1 geomrecords, Int32 tile_id) in /src/pg2b3dm/Program.cs:line 171
   at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
tomvantilburgcommented, Jul 30, 2019

Works! 😃 image

0reactions
tomvantilburgcommented, Aug 13, 2019

Works!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crash Data Improvement Program Guide - CrashStats - NHTSA
The CDIP guide is intended for State crash database administrators and managers, State Traffic Records. Coordinating Committee \ members, State ...
Read more >
Understanding Car Crashes: It's Basic Physics - YouTube
Watch an updated version at https://youtu.be/2XKOzibVqJgWhat happens to vehicles and their occupants in crashes is determined by science.
Read more >
Vehicle Damage Guide for Traffic Crash Investigators
If a vehicle sustained no discernible damage, a “0” rating should be reported. The “0” rating is generally applicable to collisions of motor...
Read more >
Understanding Car Crashes — It's Basic Physics!
1. What determines if one car has more momentum than another in a two-car collision? Momentum is a product of a car's mass...
Read more >
TRANSPORTATION CODE CHAPTER 550. ACCIDENTS AND ...
(b) An operator of a vehicle required to stop the vehicle by Subsection (a) shall do so without obstructing traffic more than is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found