-
-
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 after restart app #5048
Comments
What do you mean with "close app"? |
Go to list of app opened and swipe StreetComplete to close it |
This puzzles me, how can a crash happen on cold start of the app? Anyway, I noticed that this is a problem in tangram-es, so an upstream issue. This seems to happen extremely scarcely so I won't bother with some kind of workaround that may or may not work. |
@westnordost do you remember the reason for Lines 16 to 19 in c456a05
I tried removing the part above and - private var layer: MapData? = null
+ private val layer: MapData = ctrl.addDataLayer(DOWNLOADED_AREA_LAYER) and + layer.clear()
layer.setFeatures(listOf(
Polygon(
polygons.map { polygon -> polygon.map { it.toLngLat() } },
mapOf()
)
))
- this.layer = layer and didn't have a crash so far (instead of once every ~10 app starts). |
What do you mean, reason for that? The reason is explained in the comment above. Do you remember, we (still) have the issue that when you solve a quest and then zoom out, the solved quest seems to reappear (flickering, while zooming out) again, because apparently the pin is still in the cache for the other zooms or something. A similar phenomen only more noticeable (IIRC) could be seen with the downloaded area visualization. |
"tangram does not clear a layer properly on re-setting features on it" isn't particularly clear on the issues it causes, that's why I asked. Thanks for the clarification. So it's occasional crashes at startup or flickering in non-downloaded areas... |
How to Reproduce
Versions affected
Android 13 - v53.0
The text was updated successfully, but these errors were encountered: