-
-
Notifications
You must be signed in to change notification settings - Fork 727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
map crashes when panning through mountains in 3D terrain (even on maplibre docs itself) #4235
Comments
I believe once #1542 is solved, this issue would not be relevant, right? |
Guess so, at least I can't reproduce this bug with my local fix of #1542. There might be some edge cases though. |
I can even zoom in to NaN when scrolling. Zooming in can cause zooming into the terrain when using a map with tilted terrain.
|
Got same issue on Android browser - WebView with Chrome 60+
Steps to reproduce:
Full error log:
Screen.Recording.2024-08-09.at.5.28.55.PM.1.mov |
4.5.2 Should be out shortly, please test to see if this issue is still relevant after the relevant fix was introduced. |
@HarelM Just tested with 4.5.2 - issue has gone! Great work, thanks! |
Fixed by #4300 |
I can still zoom into hills on https://maplibre.org/maplibre-gl-js/docs/examples/3d-terrain/ page:
|
Big thanks to @HarelM for your help. In the documentation https://maplibre.org/maplibre-gl-js/docs/examples/3d-terrain/, the map still crashed if I pan into a hill. It just needs a bit more attempts than before. Console logs:
|
@chrneumann can you check this report? |
Seems related to #3836. The |
From the comments it seems that the calculations there are not supposed to be correct? Maybe at least some additional checks should prevent that the map crashes, e.g. for the |
It's easy to see the wrong calculation if you "Pause on exceptions" in browser debugger. |
I've reopened the following bug as I can still get to a state where the camera is inside the terrain using accepted user behavior (pan, zoom, didn't try rotate but this should be checked too). Let's keep the conversation in the above linked bug as I think they are related. |
maplibre-gl-js version: 4.3.2
browser: Chrome
Link to Demonstration
Your own documentation: https://maplibre.org/maplibre-gl-js/docs/examples/3d-terrain/
Behavior
Zoon in a bit and than pan forwards so the camera goes through the mountains in Innsbruck. This crashed the map meaning the map turn white and the console repeatedly outputs this error. Nothing works anymore and only reloading the website helps.
The text was updated successfully, but these errors were encountered: