AliFlux / VectorTileRenderer

A comprehensive Vector Map Tile Renderer for .Net/C#
MIT License
183 stars 51 forks source link

An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll #8

Closed Phantamoss closed 5 years ago

Phantamoss commented 5 years ago

Getting an StackOverflowException when trying to use VectorMbTilesProvider for Gmap. Happens at line

provider = new VectorTileRenderer.Sources.MbTilesSource(path);

Any ideas what could cause this? Runs without issue in the demo.

AliFlux commented 5 years ago

It's probably something related to the mbtiles file. Can you please share it so that I can debug it?

Phantamoss commented 5 years ago

Well the mbtiles are from the openstreetmap website. https://openmaptiles.com/downloads/tileset/osm/united_states_of_america/

AliFlux commented 5 years ago

The US tiles are pretty big so I just downloaded a fresh set of liechtenstein tiles to test the GMap code, and it works perfectly.

Can you please share your code here? So that I can debug that exception.

Phantamoss commented 5 years ago

If I use the US tiles on the demo in your source code it works fine. Here you go.

https://github.com/Phantamoss/WpfApp2

Phantamoss commented 5 years ago

Need to import skiasharp, and the problem seemed to go away. The tiles are blank though.