Search Issue Tracker
Fixed in 2022.2.X
Fixed in 2021.2.X, 2022.1.X
Votes
8
Found in
2021.2
2021.2.0f1
2022.1
2022.2
Issue ID
1377082
Regression
Yes
Directory.GetFiles() throws an error when used in il2cpp build on Windows7
Reproduction steps:
1. Open user-submitted project
2. Navigate to Edit -> Project Settings -> Player -> Configuration
3. Set Scripting Backend to IL2CPP
4. Set API compatibility level to .NET Framework
5. Navigate to File -> Build settings and press Build
6. Open the built Player
7. Press the "ClickMe" Button in the Player
8. Navigate to C:\Users\*username*\AppData\LocalLow\DefaultCompany\Bugtest in the File Explorer
9. Open and inspect "Player.log"
Expected result: There are no errors between the "Enter Function" and "Leave Function" logs
Actual result: There is an IOException between "Enter Function" and "Leave Function" logs
Reproducible with: 2021.2.0b7, 2021.2.7f1, 2022.1.0b4, 2022.2.0a2
Not reproducible with: 2019.4.34f1, 2020.3.26f1, 2021.2.0a17
Could not test with: 2021.2.0a18, 2021.2.0b6 (Error when running Player: Failed to load IL2CPP)
Note:
- AppData is a hidden folder
- Couldn't find the exact regression point, because the issue couldn't be tested between 2021.2.0a18-2021.2.0b6, due to an error when running Player: "Failed to load IL2CPP"
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
- Sprite shadows are not rendered when the light source is placed near the sprite
- Multiple Video Players are not playing simultaneously when played in WebGL
- "Rename Prefab File?" window does not pop up when renaming Prefab in the Project window
- [Linux] Crash on MenuController::ExecuteMenuItem when selecting recent scene
- Warnings appearing in the Console window when creating a new URP 3D Sample project
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.0a7
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0b14
Resolution Note (fix version 2021.2):
Fixed in 2021.2.17f1