Search Issue Tracker

Fixed

Fixed in 2023.2.17f1, 2023.3.0b10, 7000.0.0a1

Votes

0

Found in

2023.2.4f1

2023.3.0a19

7000.0.0a1

Issue ID

UUM-58966

Regression

No

[Android] A black frame flashes when returning to the Unity Game Activity from the home screen

--

-

Reproduction steps:
1. Open the attached “ASDQWE/NativeAndroidApp” project with Android Studio
2. Press the “Run ‘app’” button
3. In the Player, press the “SHOW UNITYGAMEACTIVITY” button
4. Once the rotating cube is visible, return to the home screen
5. Return to the application
6. Observe the application the moment it loads

Expected result: There is no black frame flash
Actual results: There is one black frame flash

Reproducible with: 2023.2.4f1, 2023.3.0a19
Could not test with: 2021.3.33f1, 2022.3.15f1 (Project requires version 2023.1.7f1 or higher)

Reproducible environment: macOS 14.1.2 Sonoma (intel), Windows 11 (user’s)
Not reproducible environment: No other environment tested

Reproducible with these devices:
VLNQA00175, Samsung Galaxy Note9 (SM-N960F), Android 10, CPU: Exynos 9 (9810), GPU: Mali-G72
VLNQA00519, Google Pixel 4 (Pixel 4), Android 12, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
VLNQA00372, Samsung SM-G991U (SM-G991U), Android 12, CPU: Snapdragon 888, GPU: Adreno (TM) 660
Samsung S21 (user’s)

Not reproducible with these devices:
VLNQA00494 - iPhone 14 Pro Max, 16.3.1 iOS
VLNQA00358 - iPhone 12, 14.1 iOS
VLNQA00392 - iPad (9th generation), 15.0 iOS
VLNQA00310 - iPad Pro 12.9", 13.4.1 iOS

Could not test with these devices:
VLNQA00057, Htc One M9+ (HTC_M9pw), Android 6.0, CPU: MediaTek Helio X10 MT6795T, GPU: PowerVR Rogue G6200
VLNQA00146, Htc 10 (HTC 10), Android 7.0, CPU: Snapdragon 820 MSM8996, GPU: Adreno (TM) 530
(The Unity project does not load after the 2nd step)

Notes:

* Not reproducible if “SHOW UNITY” is pressed instead of the “SHOW UNITYGAMEACTIVITY” button
* Not reproducible when the Player is built through the Editor
* The user reported that when Hardware Acceleration is set to false, the black flash lasts longer
* The user reported that the issue lasts longer when the project is larger

  1. Resolution Note:

    The main cause of this issue is that Android does not preserve the content of the SurfaceView that we render to/from GL/VK. And this is Google's issue.

    To resolve this, the method we already use for UnityPlayerActivity is applied to UnityPlayerGameActivity. Though, it is not perfect or smooth. The fixes applied here are only meant to minimize the problem, and the fundamental fixes will need to be done by Google.

  2. Resolution Note (fix version 2023.3.0b10):

    The main cause of this issue is that Android does not preserve the content of the SurfaceView that we render to/from GL/VK. And this is Google's issue.

    To resolve this, the method we already use for UnityPlayerActivity is applied to UnityPlayerGameActivity. Though, it is not perfect or smooth. The fixes applied here are only meant to minimize the problem, and the fundamental fixes will need to be done by Google.

  3. Resolution Note (fix version 2023.2.17f1):

    The main cause of this issue is that Android does not preserve the content of the SurfaceView that we render to/from GL/VK. And this is Google's issue.

    To resolve this, the method we already use for UnityPlayerActivity is applied to UnityPlayerGameActivity. Though, it is not perfect or smooth. The fixes applied here are only meant to minimize the problem, and the fundamental fixes will need to be done by Google.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.