Closed kidhanis closed 1 year ago
San Juan is fine now, but I tried looking around for other examples with the most recent map data from 2023-06-02 in version 2023.06.04-13-FDroid.
I found only one other area that can crash the app under similar circumstances. It has to do with relation 15597971, which had a building=yes
tag added on 2023-05-17 and removed on 2023-06-03, so I suppose that the next update will once again fix this crash.
Thank you very much for details! Crash easily reproduces in release, and not as easy in debug:
06-10 09:52:27.883 24739 7748 E OMcore : drape/batcher_helpers.cpp:372 BatchData(): CHECK(IsEnoughMemory(avVertex, vertexCount, avIndex, indexCount)) 5000 19998 5000 47018
06-10 09:52:27.883 24739 7748 F libc : /Users/alex/Developer/omim/omim/drape/batcher_helpers.cpp:372: virtual void dp::LineRawBatch::BatchData(ref_ptr<dp::GraphicsContext>, ref_ptr<dp::AttributeProvider>): assertion "false" failed
06-10 09:52:27.884 24739 7748 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 7748 (Thread-14), pid 24739 (ganicmaps.debug)
@vng is it caused by a too-big polygon? What would be the best way to prevent crashes like this one?
Describe the issue A crash occurs only when I'm at zoom levels near ground in San Juan, Puerto Rico. Zooming in right over the city or zooming in outside the city to then try to hover over San Juan causes the app to crash and close itself, taking me back to my home screen. I already deleted and re-downloaded the map of Puerto Rico and the crash still happens.
Steps to reproduce
Expected behavior I can zoom as much as I like over San Juan without any crashes.
Screenshots
Screenshots over Laguna San José (18.425227, -66.023828)
The first screenshot looks normal ![Normal](https://user-images.githubusercontent.com/5599578/236647650-bb82f0ec-13aa-45f2-b503-0607382620a5.jpg) The second is zoomed in a bit more and you can see the gray, building-like color over San Juan while Carolina, the neighboring city, looks normal. ![GrayColor](https://user-images.githubusercontent.com/5599578/236647647-d37f20c9-9bf0-412b-98bc-567be69ffd6b.jpg) The third screenshot is with more zoom and look weirder. A bit more zoom and the app would crash. ![WeirdLines](https://user-images.githubusercontent.com/5599578/236647652-52ad0a64-7dc8-4bcb-bbda-029a3148ea8f.jpg)System information:
Additional context This might be related to OSM changeset 134239621 from 2023-03-28, where the type of the San Juan relation was accidentally modified from boundary to multipolygon and was later corrected on 2023-04-10.