Search Issue Tracker
By Design
Votes
0
Found in
2019.1.0a13
2019.2.0f1
Issue ID
1174462
Regression
Yes
[Android] Application freezes when permission for GPS or camera is allowed on Android devices
To reproduce:
1. Download attached project
2. Build and run to android device
3. Hit the "Show Camera Permission" button
4. Allow Camera Permission
5. Hit the "Show GPS Permission" button
6. Allow GPS Permission
Actual result: After pressing the permission buttons app freezes
Expected result: The application should not freeze after pressing permission buttons
Reproduced on: 2019.1.0a13; 2020.1.0a1
Not reproduced: 2018.4.7f1; 2019.1.0a12
Tested on:
VLNQA00277, Asus ROG Phone (ASUS_Z01QD), Android 8.1.0, CPU: Snapdragon 845 SDM845, GPU: Adreno (TM) 630
VLNQA00262, Sony Xperia XZ Premium (G8141), Android 9, CPU: Snapdragon 835 MSM8998, GPU: Adreno (TM) 540
VLNQA00138, Huawei P20 Pro (CLT-L29), Android 8.1.0, CPU: HiSilicon Kirin 970, GPU: Mali-G72
VLNQA00224, Samsung Galaxy A5(2017) (SM-A520F), Android 8.0.0, CPU: Exynos 7 Octa 7880, GPU: Mali-T830
VLNQA00219, Samsung Galaxy Note9 (SM-N960U), Android 8.1.0, CPU: Snapdragon 845 SDM845, GPU: Adreno (TM) 630
Note: showing any permission dialog second time makes the app freeze indefinitely. But then if you hit home screen and open the app again, it starts normally.
Note: logcat attached
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Search: Inspector section icon is less sharp/more pixelated than other editor icons
- Search description string is always truncated
- [VFX] When Grouped Nodes are converted to Subgraph Operator resulting Graph Node is not included in the Group
- Search window icons are less sharp/more pixelated than other editor icons
- The Inspector can be covered when scaling the horizontal separator bar
Resolution Note (2020.1.X):
Tried on two different devices. It worked fine with GPS button, freeze only happens for camera. Looking into log I see "Denied" being printed. Without knowing how the users plugin works I can only conclude that camera permission is denied without even showing UI and users code doesn't handle this condition properly and locks up the UI. Sending app to background and bringing it up again unlocks it.
I see user using some locks in scripts and I believe those are to blame, hence user error. I consider this to be a user error unless we are provided with exact details why it hangs and why it's our bug, and the source code for native plugins.