Search Issue Tracker
By Design
Votes
0
Found in
2018.3.0a9
2018.3.0b12
Issue ID
1103388
Regression
Yes
[Android] Player freezes after granting app permission
[Android] Player freezes after granting app permission
Steps to Repro:
1. Open attached project
2. Make a build and Run for Android
Actual Result: Player freezes after granting app Permission
Expected Result: App Permission is granted and the player resumes
Workaround: Restart the game
Occurs on:
2019.1.0a10, 2018.3.0b12, 2018.3.a9
Working fine on:
2018.2.0f2, 2017.3.4f1
Environment:
Windows 10, Mac 10.13
Note: Tested with Record_Audio, Camera permissions
Occurs on Device OS:
Marshmallow (Android 6.0) and above
Tested Devices:
Google Pixel 2 (Android 8.0), Samsung S8 (Android 7.0) and One Plus 3 (Android 8.0)
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note (2018.3.X):
Basically while using runtime permissions, it is not possible to use Microphone.devices or WebCamTexture.devices immediately. When you check these properties for the first time, empty arrays are returned, but at the same time user is being asked about permission to record sounds/use camera. So next time, if permission was granted, Microphone.devices or WebCamTexture.devices will return real arrays of recording/camera devices.
Also it is not very good idea to check for Microphone.GetPosition(null) synchronously using endless loop. That is the problem why application froze (in case of camera there was no freeze, but camera didn't work, that's why there was black screen).