Search Issue Tracker
By Design
Under Consideration for 6000.0.X, 6000.1.X
Votes
0
Found in
6000.0.35f1
6000.1.0b3
Issue ID
UUM-95339
Regression
Yes
MissingComponentException not being thrown when inside an Awaitable
Reproduction steps:
1. Open the attached project ("AwaitableBug")
2. Open scene "Scenes/SampleScene"
3. In the Scene Hierarchy, select the "NullRef" GameObject
4. Uncheck "Await Version" and enter Play mode, notice that an exception is thrown in the console
5. Exit Play mode, check "Await Version" and enter Play mode again
Expected result: An exception is thrown, informing the user that a script is trying to access a non-existant component
Actual result: No exception is thrown
Reproducible with: 6000.0.0f1, 6000.0.35f1, 6000.1.0b3
Not reproducible with: 6000.0.0b15
Couldn't test with: 2022.3.56f1 (Awaitable is not available on this version)
Reproducible on: Windows 10 (User), macOS 15.1.1 (Intel)
Not reproducible on: No other environment tested
Note:
6000.0.0b15 and lower a Warning is thrown:
"Missing types referenced from component UniversalRenderPipelineGlobalSettings on game object UniversalRenderPipelineGlobalSettings"
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:
I looked at it, and this is by design: an awaitable captures and rethrows its exceptions when it is continued. As there is no awaiter waiting on the Awaitable object, the exception is never re-thrown.