-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Overlapping map views rendering crashes #9534
Comments
PR addressing this issue in #9538, would you be able to retest this with an upcoming 5.1.1 release? |
Thank you for this quick answer. I will test it when the 5.1.1 is available and let you know if it's indeed solving it. What is the ETA for the 5.1.1? |
I tested it by compiling Mapbox on the branch The instant crash is gone. The rendering of the background map is still occurring on top of the bottom sheet one. After some manipulations, another crash occurs sometimes with |
The issue here is that the overlapping SurfaceViews are fighting for the z order and the underlying surfaceview wins. There are two workarounds:
@mesnault can you post a full stacktrace of that second crash? |
Using a texture view for the bottom sheet map is indeed fixing the rendering issue. The method is deprecated on the Setting the Z order on top for the underlying surface view is making the markers on the map disappear, as the surface view is drawn above them.
Sure, here it is. Note that I did not merge the branch
We've decided to move to another UI to avoid displaying two maps together, since we cannot wait for the 5.1.1, so you might close this issue if you feel the problem is solved by #9538. Anyway, thank you for your time and your quick answers |
adding here that 5.1.1 has shipped. I'm working now on reproducing the issue in #9534 (comment) but haven't been able to do so. To harden against future regressions I'm adding a similar setup to our testapp as shown in OP. Could you give some pointers on how yours setup differs from the setup in in #9592? This would help with reproducing. |
In our current application, the user can see POIs around a location with a listing or a map. He can also select the location around which he wants to see POIs using a map in a bottom sheet.
Because of this, we may have two maps visible on screen and they can overlap. This triggers some weird rendering issues where the data of the background map is drawn over the bottom sheet one, and eventually the app crashes.
Here are two walkthrough in our app to explain the context and how the issue occurs:
Here is the stacktrace:
This seems related to #6647 and maybe #8725
Device:
Android 7.1.2
Nexus 5X
Mapbox SDK version:
Mapbox 5.0.1, upgraded to 5.1.0 and still getting crashes
Steps to trigger behavior
Expected behavior
The bottom sheet map view should render above the other one without problem.
Actual behavior
The map view in the background is rendered on top of the bottom sheet one and the app crashes.
The text was updated successfully, but these errors were encountered: