Skip to content
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

Flickering widgets in AA #2519

Open
mj09 opened this issue Nov 19, 2024 · 8 comments
Open

Flickering widgets in AA #2519

mj09 opened this issue Nov 19, 2024 · 8 comments
Labels
bug 🪲 Something isn't working

Comments

@mj09
Copy link

mj09 commented Nov 19, 2024

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 mj09 added the bug 🪲 Something isn't working label Nov 19, 2024
@mj09
Copy link
Author

mj09 commented Nov 19, 2024

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

@flasher297
Copy link
Contributor

flasher297 commented Nov 20, 2024

The same bug is discussed in another issue.
And today, a patch release has been made to fix it.
#2479 (comment)

@mj09
Copy link
Author

mj09 commented Nov 25, 2024

Trying with 11.7.3 does not fix the issue

@mj09
Copy link
Author

mj09 commented Nov 25, 2024

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
Copy link
Author

mj09 commented Nov 26, 2024

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?

@maxrimmer
Copy link

I'm also experiencing this issue

@kiryldz
Copy link
Contributor

kiryldz commented Nov 26, 2024

@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.

@mj09
Copy link
Author

mj09 commented Nov 26, 2024

@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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants