Search Issue Tracker
Fixed in 2022.2.X
Fixed in 2020.3.X, 2021.3.X, 2022.1.X
Votes
1
Found in
2019.4
2020.3
2020.3.28f1
2021.2
2021.3
2022.1
2022.2
Issue ID
1402180
Regression
No
ObjectDisposedException is caught when an unused variable is declared in the 'using' statement
Reproduction steps:
1. Open users attached project
2. Go to File > Build Settings and press Build And Run
3. Press the button in the opened Player
4. Open the Player.log file and look for a caught exception
Expected result: No exceptions are present in the Player.log file
Actual result: "Cannot read from a closed TextReader" exception is caught
Reproducible with: 2019.4.38f1, 2020.3.32f1, 2021.2.19f1, 2021.3.0f1, 2022.1.0b15, 2022.2.0a10
Notes:
1. Player.log file is located in the "AppData\LocalLow\DefaultCompany\[project name]" folder
2. The issue doesn't appear with Mono Scriptable 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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.0a13
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.4f1
Resolution Note (fix version 2021.3):
Fixed in: 2021.3.7f1
Resolution Note (fix version 2020.3):
Fixed in: 2020.3.36f1