Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Black screen when turning on & off screen rapidly on Android 9.0(P) #12561

Closed
themics opened this issue Aug 7, 2018 · 10 comments
Closed

Black screen when turning on & off screen rapidly on Android 9.0(P) #12561

themics opened this issue Aug 7, 2018 · 10 comments
Labels
Android Mapbox Maps SDK for Android archived Archived because of inactivity

Comments

@themics
Copy link
Contributor

themics commented Aug 7, 2018

Steps to reproduce

  1. Open simple map activity
  2. Turn on & off screen via power button
  3. Repeat rapidly

Expected behavior

  1. No problem

Actual behavior

  1. Map goes black eventually

Configuration

Android versions: 9.0.0
Device models: Pixel 2
Mapbox SDK versions: 6.3.0

@asheemmamoowala asheemmamoowala added the Android Mapbox Maps SDK for Android label Aug 7, 2018
@themics
Copy link
Contributor Author

themics commented Aug 8, 2018

Might be a platform(Android) bug. When this happens, GLSurfaceView.Renderer.onSurfaceChanged() is not called. Hope there's a workaround 😕

@LukasPaczos
Copy link
Contributor

I'm seeing the same issue on the Pixel 2 XL running P. This seems to be related to the GLSurfaceView as switching to the TextureView resolves the issue.

@LukasPaczos
Copy link
Contributor

Enabling GLSurfaceView debug mode doesn't reveal any more clues besides the fact that the viewport is not invalidated which you already mentioned.

@tobrun
Copy link
Member

tobrun commented Oct 12, 2018

@LukasPaczos would you be able to retest this issue with the glSurfaceView.setPreserveEGLContextOnPause(true); you recently added?
Don't own a Android P device to retest

@LukasPaczos
Copy link
Contributor

@tobrun Unfortunately, #12844 doesn't resolve the issue.

@stale stale bot added the archived Archived because of inactivity label Apr 20, 2019
@stale
Copy link

stale bot commented Apr 20, 2019

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this as completed Apr 20, 2019
@LukasPaczos
Copy link
Contributor

I'm still able to reproduce on the Pixel 2 XL running Android Pie.

@LukasPaczos LukasPaczos reopened this Apr 23, 2019
@stale stale bot removed the archived Archived because of inactivity label Apr 23, 2019
@tobrun
Copy link
Member

tobrun commented Jul 9, 2019

Tested on Pixel running Android Q, no able to reproduce. Either this was fixed with the refactor done in #14841 or this was a platform bug fixed in Q. @LukasPaczos would you be able to quickly retest this on P?

@LukasPaczos
Copy link
Contributor

I can still reproduce on P, seems like it might've been fixed in Q.

@stale stale bot added the archived Archived because of inactivity label Jan 5, 2020
@stale
Copy link

stale bot commented Jan 5, 2020

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this as completed Jan 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android archived Archived because of inactivity
Projects
None yet
Development

No branches or pull requests

4 participants