Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

MBTiles stack overflow error / Problem with adding this implementation to newer Unity versions #43

Open
made3 opened this issue Oct 29, 2021 · 0 comments

Comments

@made3
Copy link

made3 commented Oct 29, 2021

Hello, first of all: Thank you @jderrough and everyone else who contributed for this project! I had trouble getting an offline map to work on the HoloLens, but this project solved it for me. Though I do not like the way it handles the zoom based on camera distance/frustum, but thanks to a different issue here I was able to still make it work with my project by using a seperate camera render texture.

Anyway, When I tried to implement the project (Only using MBtiles and no online layers) in my existing project (using Unity 2019.4.18f1) the editor took a very long time after hitting play until finally it started with a stack overflow error and no visible tiles. After 2 days of researching I found out that the problem was in the Physics settings. The "Auto Sync Transforms" checkbox has to be checked. Apparently it was checked in older Unity versions by default, but it is not checked anymore in newer Unity versions.

I still have no idea why it causes this problem, but I hope by writing this I can help someone in the future. And I also hope that the problem was not caused by any changes I made to this implementation, otherwise this issue would be invalid

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant