Search Issue Tracker

Fixed

Fixed in 2021.3.31f1, 2022.3.11f1, 2023.1.15f1, 2023.2.0b10, 2023.3.0a1, 7000.0.0a1

Votes

1

Found in

2021.3.17f1

2022.3.2f1

2023.1.0f1

2023.2.0a19

2023.3.0a1

7000.0.0a1

Issue ID

UUM-30732

Regression

No

[Android] Race condition in UnityPlayer.pauseUnity() kills the process on application pause

--

-

How to reproduce:
1. Open the attached “IN-29883“ project
2. In the File → Build Settings click Build And Run
3. In the Player click the "Sleep 1500 ms on pause" button
4. Click the device home button
5. Wait 3 seconds and click on the app icon

Expected result: The app continues to run, and no splash screen appears.
Actual result: The app restarts and the splash screen appears.

Reproducible with: 2021.3.17f1
Could not test with: 2020.3.46f1, 2021.3.21f1, 2022.2.11f1, 2023.1.0b8, 2023.2.0a6 - Editor PlaybackEngine is modified, cannot build.

Built on: macOS 13.2 (Intel)

Reproducible on devices:
VLNQA00334 - Xiaomi Mi A3 (Mi A3), CPU: Snapdragon 665 SM6125, GPU: Adreno 610, OS: 11
VLNQA00363 - Galaxy Z Fold 2 5G (SM-F916B), CPU: Snapdragon 865 SM8250, GPU: Adreno 650, OS: 10
VLNQA00331 - HUAWEI P20 lite (ANE-LX1), CPU: HiSilicon Kirin 659, GPU: Mali-T830, OS: 9
VLNQA00134 - Samsung Galaxy S8 (SM-G950F), CPU: Exynos 9 Octa 8895, GPU: Mali-G71, OS: 9.0.0
VLNQA00277 - Asus ROG Phone (ASUS_Z01QD), CPU: Snapdragon 845 SDM845, GPU: Adreno 630, OS: 8.1.0

Note: The user has modified these files:
\2021.3.17f1\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\mono\Development\Classes\classes.jar
\2021.3.17f1\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\mono\Release\Classes\classes.jar
\2021.3.17f1\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\il2cpp\Development\Classes\classes.jar
\2021.3.17f1\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\il2cpp\Release\Classes\classes.jar

  1. Resolution Note (fix version 2023.3.0a1):

    Refactored the code around pause routine, the refactor remove the possibility of a race condition which might cause accidental application quit.

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.