Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4.0f1
2018.3.0a1
2018.3.8f1
2019.1.0a1
2019.2.0a1
2019.3.0a1
Issue ID
1161104
Regression
No
UWP use of StorageFolder to access files returns system exception
Steps to reproduce:
1. Download attached project
2. Switch platform to UWP
3. Build SampleScene
4. Open VS solution
5. Add restricted Capability broadFileSystemAccess
6. Build (Debug, x64, local Machine)
5. Select "Main Storage folder request" or "BG Storage Folder request"
Expected results: List of files are returned
Actual results: Exception is thrown
Exception thrown at 0x00007FF973E99129 (KernelBase.dll) in case_1161104-Repro.exe: 0x80010108: The object invoked has disconnected from its clients.
Reproduced with: 2019.3.0a6, 2019.2.0b6, 2019.1.7f1, 2018.4.2f1, 2017.4.0f1
Note
- Reproducible with IL2CPP and .NET backend
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note (2019.3.X):
The reason this happens is due to incorrect usage of StorageFolder APIs. This isn't a bug in Unity.