mapbox-maps-android icon indicating copy to clipboard operation
mapbox-maps-android copied to clipboard

Flickering widgets in AA

Open mj09 opened this issue 1 year ago • 10 comments

Environment

  • Android OS version: 14, 15
  • Devices affected: Pixel 7, Samsung S24, Samsung S21....
  • Maps SDK Version: 11.8.0

Observed behavior and steps to reproduce

This is a strange one, because building locally to phone + build APK lokally everything seems fine. But when released through the playstore the issue appears. However if I then use satellite map, theres no flickering.

  1. Open up AA with STANDARD style map with widgets and observe they are flickering

Expected behavior

Widgets in AA should not flicker

Notes / preliminary analysis

We tried to downgrade to version 11.6.0 and then there is no issue

Additional links and references

mj09 avatar Nov 19 '24 09:11 mj09

Just noted that if im messing a bit with layers the flickering can also occur locally

mj09 avatar Nov 19 '24 13:11 mj09

The same bug is discussed in another issue. And today, a patch release has been made to fix it. https://github.com/mapbox/mapbox-maps-android/issues/2479#issuecomment-2488921840

flasher297 avatar Nov 20 '24 15:11 flasher297

Trying with 11.7.3 does not fix the issue

mj09 avatar Nov 25 '24 11:11 mj09

And using 11.6.0 doesnt work on some phones, still flickering widgets.

This appear to be an issue for only the standard and standard satellite maps.... with mapbox streets etc we see no flickering widgets.

mj09 avatar Nov 25 '24 12:11 mj09

Screencast from 11-26-2024 08:53:43 AM.webm

Heres a video of it from a samsung s21 using mapbox version 11.7.3..

However its spread over more releases. We have the same issue on a Pixel 5 & 7 with mapbox version 11.6.0

This is affecting a lot of our users.. Have there been changes to the standard styles that could explain this behaviour?

mj09 avatar Nov 26 '24 07:11 mj09

I'm also experiencing this issue

maxrimmer avatar Nov 26 '24 08:11 maxrimmer

@mj09 can you please confirm that you see similar issue in our example activity using widgets on problematic devices? If not, please provide the code to reproduce the issue.

kiryldz avatar Nov 26 '24 12:11 kiryldz

@kiryldz Just to be sure, you understand we are talking about Android Auto?

We are adding widgets to the mapSurface as we always have done

fun attachWidgets(mapboxCarMapSurface: MapboxCarMapSurface, showSpeedometer: Boolean) { with(mapboxCarMapSurface) { mapSurface.addWidget(logoWidget) mapSurface.addWidget(speedometerWidget) }

attachWidgets is triggered through onAttached from the MapboxCarMapObserver override fun onAttached(mapboxCarMapSurface: MapboxCarMapSurface) { carMapWidgets.attachWidgets(mapboxCarMapSurface, true) }

Theres nothing new to our approach to add widgets, but lately it appears like the STANDARD style and STANDARD SATELLITE style causes flickering of these widgets. We did go from mapbox version 11.3.0 to 11.8.0 and then back to 11.6.0 and thought it was fixed, but it wasnt. It's not always easy to reproduce, for some strange reason its more evidently after it has been pushed to the PlayStore and we install it directly from there...

mj09 avatar Nov 26 '24 15:11 mj09

This is happening again on version 11.14.0-rc.1 while its fine on 11.6.0... it only occurs when using Style.STANDARD, and sometimes with Style.SATELLITE...

However with the older styles such as TRAFFIC, DARK, DAY etc theres no flickering at all..

mj09 avatar Jul 22 '25 18:07 mj09

Any updates? I have the same issue, though v11.6.0 worked fine.

ankiimation avatar Dec 08 '25 11:12 ankiimation