-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
Crash when trying to add address in overlay mode #5177
Comments
Does it only crash if you tilt the map? You use the Google Play version of the app? |
I've occasionally encountered a crash when enabling the overlay, but I can't reproduce it.
Yes. If logs are needed, I can use adb |
The stack trace would be most helpful |
Can reproduce
For the country's locale, the form needs to know the geo-position of wherever the crosshair is pointing. Tangram-es however returns null, i.e. it can for one reason or another not determine the position of where the crosshais is pointing at... So, I am not sure how we can workaround that. The geo-position is necessary to show the form (and to place the new address, after all). If it is not available... and the overlay form fragment has to be already opened because it contains the crosshair, i.e. the screen position that should be translated to the geo-position. |
For me the crash happens only very close to the maximum allowed tilt. |
Does it happen for you only at almost maximum allowed tilt, @deevroman ? |
Indeed, if you return the tilt quite a bit after the maximum tilt, there is no crash. |
What would you estimate, percentage-wise. How much do you have to return it? |
Very little. I'll put it another way: if there is no shaking of the map at the end of the tilt, then there is no crash. (This shaking can even be seen a little bit in the video.) |
Crashes with tilt |
Looks like a good workaround for me then. |
* set and enforce a maximum tilt (fixes #5177) * oh well, just use 60° as before (let's not change behavior while fixing an issue)
How to Reproduce
Screen_Recording_20230807_140011_One.UI.Home.mp4
Versions affected
StreetComplete 53.3 Android 13 OneUI 5.1 Samsung Galaxy A52
The text was updated successfully, but these errors were encountered: