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

IL2CPP

-

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"

  1. Resolution Note (fix version 2022.2):

    Fixed in: 2022.2.0a7

  2. Resolution Note (fix version 2022.1):

    Fixed in: 2022.1.0b14

  3. Resolution Note (fix version 2021.2):

    Fixed in 2021.2.17f1

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.