libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
10.31k stars 1.84k forks source link

[Android] Black screen on orientation change #6549

Open p-sam opened 6 years ago

p-sam commented 6 years ago

Description

The screen goes black whenever I switch from Portrait to Landscape, also from Landscape to Portrait.

Expected behavior

UI / Overlay / Game updated to the new device orientation

Actual behavior

A black screen (I don't know if touchscreen inputs are handled)

Steps to reproduce the bug

  1. Do an orientation change on Android device

Bisect Results

It may be a device specific issue as I don't remember having this happening on other Android devices.

Version/Commit

You can find this information under Information/System Information

Environment information

Logcat

logcat.log

These lines appears on orientation change:

04-09 12:05:24.185   821  1479 E BufferQueueProducer: [com.retroarch/com.retroarch.browser.retroactivity.RetroActivityFuture#0] dequeueBuffer: BufferQueue has been abandoned
04-09 12:05:24.185 10365 10385 I Adreno  : DequeueBuffer: dequeueBuffer failed
beerenauslese commented 6 years ago

I have the same problem.

Version/Commit

Using F-Droid version from 1.4.0 to 1.7.2 6c09195

Environment information

sub-atomic commented 6 years ago

I have the same problem on Samsung Galaxy S9+. Screen goes black when rotated to landscape, stays black until force quit.

AetherCollective commented 6 years ago

Same here on Pixel 2 XL (Oreo 8.1.0). On mine, I can just switch to a different app and switch back to restore the screen. RetroArch 1.7.3 (Google Play Store)

th3dll commented 6 years ago

I fixed this issue by a setting on my galaxy s8. When I would rotate my screen within retroarch it would go black, but if I swiped on the screen around where the soft buttons are I found a button that looks like joystick buttons, called "game mode". Likely a Samsung tool. Once I toggled full-screen it worked after restarting my game.

whs commented 6 years ago

Seems to work fine for me on Pixel 2 upgraded to Android Pie

ctweeks2002 commented 6 years ago

Th3dll's comment worked for me, after putting in full screen mode in the game settings, it worked, i have a galaxy S8+.

xTMODx commented 6 years ago

Thanks @th3dll that worked for me too i have the galaxy note 8 Edit: The Overlay and Icons are stretched then, I changed back to no fullscreen

xTMODx commented 5 years ago

the newest nightly fixed for me this bug @p-sam @beerenauslese @sub-atomic @BetaLeaf @th3dll @ctweeks2002 you all should test if this is fixed now

dhalucario commented 5 years ago

It would be great if Samsung would just stop putting weird "Game Optimizers" in their Android versions. The solution @th3dll provided fixed it for me too. Thank you.