Uh oh!
There was an error while loading. Please reload this page.
[release/9.0-staging] Don't wait for finalizers in 'IReferenceTrackerHost::ReleaseDisconnectedReferenceSources' - #110558
Conversation
jkotas
commented
Dec 10, 2024
@Sergio0694 Would it be possible to validate the fix by building and testing Windows Store app with NAOT from main?
|
Sergio0694
commented
Dec 13, 2024
MichalStrehovsky
commented
Dec 13, 2024
Weird, this overload was added in #110234, this must be using some AotSdk with an old corelib (and likely old runtime too, without your fix). What are your repro steps? If you download the latest .NET 10 SDK, it should already have the ILCompiler with your fix. So all that should be needed is to put it in the PATH, add NuGet.config with the .NET 10 feed, update Store to target .NET 10 and that's it. |
Sergio0694
commented
Dec 13, 2024
That's exactly what I did 🥲 |
Sergio0694
commented
Dec 13, 2024
Update: I tested again (this time in Release, last time I was trying to run in Debug + Native AOT), and it works! 🎉 I can no longer repro the hangs (no spinning circle on the mouse cursor, no hangs in event viewer), and I can close and reopen the Store multiple times in rapid succession without getting stuck at the OS splash screen (due to the previous instance being hung)! |
jkotas
commented
Dec 14, 2024
@Sergio0694 Thank you for testing the fix! I have submitted the change into servicing approval process. |
jeffschwMSFT
left a comment
There was a problem hiding this comment.
lgtm. we will take for consideration in 9.0.x
jeffschwMSFT
commented
Jan 8, 2025
@jkotas please take a look at the PR failures and merge when ready |
jkotas
commented
Jan 8, 2025
/ba-g known issue dotnet/dnceng#4756 |

Backport of #110551 to release/9.0-staging
/cc @jkotas@Sergio0694
Customer Impact
Intermittent hang when UWP/WinUI app is suspended. Reported by Windows Store.
Regression
This is .NET Native -> .NET 9 regression on UWP. The fix updates IReferenceTrackerHost::ReleaseDisconnectedReferenceSources implementation in .NET 9 to match .NET Native (ie reverts the offending change).
Testing
Fix validated on private build by Windows Store
Risk
Low