Screen flickering on Android 7 #2857

Closed
opened 2022-06-28 16:31:56 +00:00 by biodranik · 12 comments
biodranik commented 2022-06-28 16:31:56 +00:00 (Migrated from github.com)

From a user report:

I have discovered a nasty bug when using it on a Samsung S7 Active running Android 7.0. When the bug occurs, it causes the screen to flicker very quickly back and forth to a black screen. After having it occur a few times apparently at random while doing different things, and not being able to repeat it, I finally discovered a way to trigger it repeatably:

  • In settings ensure "Show on the lock screen" is enabled (as it seems to be by default).
  • Return to main map screen and tap power button to lock phone and switch off display
  • Tap power button again to switch screen on again
  • Select either one of the Layers button at top left, or the Menu button at bottom right
  • The screen will now flicker rapidly between black screen and lock screen requiring pressing the home button a good number of times to recover control over the phone.

Note that the bug occurs in this manner only with the show on lock screen option enabled, though I'm not sure if it is absolutely required to be on the lock screen display to trigger it, since I'm not sure I was using that mode the first few times it occurred when not repeatable. The very first time I encountered it was when I was in the bookmarks menu just after having moved my bookmarks over by sharing them from Maps.me (I can't recall exactly which step I was at when the bug appeared, but might have been when I was renaming the bookmarks set). Another time it happened while doing something with route navigation checkpoints (again I can't recall exactly what I'm afraid, but couldn't manage to repeat it).

At least in the repeatable steps mentioned above, the bug only occurs for the two option buttons mentioned (Layers or Menu button – selecting any of the others does not cause any issue). I note that they both bring up the same map layers selection view.

I have also tested this on a different unit of the same S7 Active phone model running Android 8.0, and the bug does not seem to occur here.

From a user report: I have discovered a nasty bug when using it on a Samsung S7 Active running Android 7.0. When the bug occurs, it causes the screen to flicker very quickly back and forth to a black screen. After having it occur a few times apparently at random while doing different things, and not being able to repeat it, I finally discovered a way to trigger it repeatably: - In settings ensure "Show on the lock screen" is enabled (as it seems to be by default). - Return to main map screen and tap power button to lock phone and switch off display - Tap power button again to switch screen on again - Select either one of the Layers button at top left, or the Menu button at bottom right - The screen will now flicker rapidly between black screen and lock screen requiring pressing the home button a good number of times to recover control over the phone. Note that the bug occurs in this manner only with the show on lock screen option enabled, though I'm not sure if it is absolutely required to be on the lock screen display to trigger it, since I'm not sure I was using that mode the first few times it occurred when not repeatable. The very first time I encountered it was when I was in the bookmarks menu just after having moved my bookmarks over by sharing them from Maps.me (I can't recall exactly which step I was at when the bug appeared, but might have been when I was renaming the bookmarks set). Another time it happened while doing something with route navigation checkpoints (again I can't recall exactly what I'm afraid, but couldn't manage to repeat it). At least in the repeatable steps mentioned above, the bug only occurs for the two option buttons mentioned (Layers or Menu button – selecting any of the others does not cause any issue). I note that they both bring up the same map layers selection view. I have also tested this on a different unit of the same S7 Active phone model running Android 8.0, and the bug does not seem to occur here.
arnaudvergnet commented 2022-06-28 17:42:18 +00:00 (Migrated from github.com)

I was able to reproduce the issue on a Wiko with Android 7. Indeed this is a nasty bug. As this device does not have a physical home button, I was forced to hard reboot the phone.

I was able to reproduce the issue on a Wiko with Android 7. Indeed this is a nasty bug. As this device does not have a physical home button, I was forced to hard reboot the phone.
arnaudvergnet commented 2022-06-28 18:04:01 +00:00 (Migrated from github.com)

I noticed the following lines in the log appearing when I open any bottom sheet dialog:

2022-06-28 20:01:46.795 8009-8009/app.organicmaps.debug V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@41d5147
2022-06-28 20:01:46.796 8009-8009/app.organicmaps.debug V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@3296d74
2022-06-28 20:01:46.820 8009-8009/app.organicmaps.debug V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@bd1ba4
2022-06-28 20:01:46.820 8009-8009/app.organicmaps.debug V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@3c8ed0d
2022-06-28 20:01:46.927 8009-8009/app.organicmaps.debug V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@9935258
2022-06-28 20:01:46.927 8009-8009/app.organicmaps.debug V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@ee10fb1

It does not show in the emulator running another android version, do you known anything about this?

I noticed the following lines in the log appearing when I open any bottom sheet dialog: ``` 2022-06-28 20:01:46.795 8009-8009/app.organicmaps.debug V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@41d5147 2022-06-28 20:01:46.796 8009-8009/app.organicmaps.debug V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@3296d74 2022-06-28 20:01:46.820 8009-8009/app.organicmaps.debug V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@bd1ba4 2022-06-28 20:01:46.820 8009-8009/app.organicmaps.debug V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@3c8ed0d 2022-06-28 20:01:46.927 8009-8009/app.organicmaps.debug V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@9935258 2022-06-28 20:01:46.927 8009-8009/app.organicmaps.debug V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@ee10fb1 ``` It does not show in the emulator running another android version, do you known anything about this?
arnaudvergnet commented 2022-06-28 18:39:16 +00:00 (Migrated from github.com)

I tried the following and nothing fixed the issue:

  • Disabling the background dim
  • Using an empty layout
  • Returning null in onCreateView from MenuBottomSheetFragment
  • All the above at the same time

I have no clue on what could be causing this.

I noticed the phone where I can reproduce the bug is using GL3 for rendering, while the emulator without problem is using Vulkan.

I tried the following and nothing fixed the issue: - Disabling the background dim - Using an empty layout - Returning `null` in `onCreateView` from `MenuBottomSheetFragment` - All the above at the same time I have no clue on what could be causing this. I noticed the phone where I can reproduce the bug is using GL3 for rendering, while the emulator without problem is using Vulkan.
biodranik commented 2022-06-28 23:43:51 +00:00 (Migrated from github.com)

It does not show in the emulator running another android version, do you known anything about this?

It should not be related. It means that some process consumes a lot of CPU (does our bug cause it?)

You can type ?gl or ?vulkan in the search field to force switch (app restart is needed).

> It does not show in the emulator running another android version, do you known anything about this? It should not be related. It means that some process consumes a lot of CPU (does our bug cause it?) You can type `?gl` or `?vulkan` in the search field to force switch (app restart is needed).
AlexValue commented 2022-06-29 05:30:20 +00:00 (Migrated from github.com)

On my Android 5.1 phone, this bug also happened while using it on the lock screen. It arose when I wanted to edit my label.
In this case, new labels are created without problems.

On my Android 5.1 phone, this bug also happened while using it on the lock screen. It arose when I wanted to edit my label. In this case, new labels are created without problems.
biodranik commented 2022-07-02 12:04:18 +00:00 (Migrated from github.com)

Also opening layers menu can be related.

Also opening layers menu can be related.
biodranik commented 2022-07-10 17:00:18 +00:00 (Migrated from github.com)

Another way I've found to repeatably reproduce this bug is from the "Edit Bookmark" menu when used on the lock screen. I.e. by trying to open that menu after unlocking the phone, or by having it open already prior to unlocking the phone.

> Another way I've found to repeatably reproduce this bug is from the "Edit Bookmark" menu when used on the lock screen. I.e. by trying to open that menu after unlocking the phone, or by having it open already prior to unlocking the phone.
programmin1 commented 2022-09-20 05:02:47 +00:00 (Migrated from github.com)

I think I'm seeing this same bug! just after upgrading maps and installing map updates today!

I think I'm seeing this same bug! just after upgrading maps and installing map updates today!
biodranik commented 2022-09-24 20:44:04 +00:00 (Migrated from github.com)

It would be great if some Android 7 owners can experiment with a proper fix for this bug (maybe some additional runtime flags for the Android window/app)?

It would be great if some Android 7 owners can experiment with a proper fix for this bug (maybe some additional runtime flags for the Android window/app)?
programmin1 commented 2022-09-24 22:42:26 +00:00 (Migrated from github.com)

That might be hard as that old phone doesn't connect to computer very well and when it does happen it ruins the phone (until the battery wears down and it restarts??) - is there any other workaround?

Since other apps have given warnings that ancient-Android-version is not supported I really should just get things set up on Librem phone... is Organicmaps working better on Librem phone btw?

That might be hard as that old phone doesn't connect to computer very well and when it does happen it ruins the phone (until the battery wears down and it restarts??) - is there any other workaround? Since other apps have given warnings that ancient-Android-version is not supported I really should just get things set up on Librem phone... is Organicmaps working better on Librem phone btw?
biodranik commented 2022-09-25 06:38:20 +00:00 (Migrated from github.com)

Any newer device should work faster and better with OM and other apps )

Any newer device should work faster and better with OM and other apps )
programmin1 commented 2022-09-28 19:19:07 +00:00 (Migrated from github.com)

You would think so, but I just updated everything on Librem 5 phone including Organicmaps and it still does not even open and load at all. That is really frustrating for every person on a Linux phone. organicmaps/organicmaps#2623

You would think so, but I just updated everything on Librem 5 phone including Organicmaps and it still does not even open and load at all. That is really frustrating for every person on a Linux phone. https://git.omaps.dev/organicmaps/organicmaps/issues/2623
This repo is archived. You cannot comment on issues.
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: organicmaps/organicmaps-tmp#2857
No description provided.