WinUI 3 app hangs on exit: MapGeocoder.dll is unwisely running destructors in DllMain DLL_PROCESS_DETACH #10229
Labels
area-External
Not owned by the WinUI team, not actionable in this repository.
bug
Something isn't working
Describe the bug
I have a WinUI app that hangs on shutdown during ExitProcess(). The hang appears to occur when I use the Bing Maps geocoding functionality in the
Windows.Services.Maps
namespace, specificallyMapLocationFinder.FindLocationsAsync
orMapLocationFinder.FindLocationsAtAsync
. Calling something else likeMapRouteFinder.GetDrivingRouteAsync
doesn't seem to have the same problem.Given that calling a .NET API shouldn't result in a corrupted process, it seemed worth filing the issue. This impacts single-instance apps because they will detect a running instance but won't be able to redirect activation parameters, resulting in a hang on the new process as well.
Stack trace and minidump follow:
Hang.zip
Steps to reproduce the bug
In a WinUI3 app, use geocoding services from
Windows.Services.Maps
, then exit the process normally.Expected behavior
No hangs on shutdown.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.6.3: 1.6.241114003
Windows version
Windows 11 (24H2): Build 26100
Additional context
No response
The text was updated successfully, but these errors were encountered: