devhome: Application crashes at startup
Dev Home version
v0.137.141.0
Windows build number
10.0.22621.1702
Other software
No response
Steps to reproduce the bug
Start the application.
Expected result
The application starts.
Actual result
The application crashes without even opening a window. In the Windows event viewer, it logs an Error with the following information:
Faulting application name: DevHome.exe, version: 1.0.0.0, time stamp: 0x641cef7e
Faulting module name: Microsoft.UI.Xaml.dll, version: 3.1.3.0, time stamp: 0x87c36a2b
Exception code: 0xc000027b
Fault offset: 0x000000000035fb2c
Faulting process id: 0x0x4E58
Faulting application start time: 0x0x1D98E5BFAF89FDB
Faulting application path: C:\Program Files\WindowsApps\Microsoft.Windows.DevHome_0.137.141.0_x64__8wekyb3d8bbwe\DevHome.exe
Faulting module path: C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.3_3000.851.1712.0_x64__8wekyb3d8bbwe\Microsoft.UI.Xaml.dll
Report Id: 34175ff5-2b0f-409d-acdf-847c1dee65b8
Faulting package full name: Microsoft.Windows.DevHome_0.137.141.0_x64__8wekyb3d8bbwe
Faulting package-relative application ID: App
Included System Information
No response
Included Extensions Information
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 8
- Comments: 24 (1 by maintainers)
I have the same issue so I tried running in with WinDbg attached and this is the errors that I get:
Callstack from WinDbg:
Still not solved in v0.5, doesn’t seem like anyone is looking in to this at all.
In case it helps with more info, I have a Windows 11 system, fully up to date. It’s an AMD Ryzen CPU and I have plenty of RAM and SSD storage available. It’s a development computer, it’s well maintained. I have no similar issues with any other software from Microsoft or otherwise, just DevHome.
Kinda surprising that a Microsoft Development tool is completely borked for this long and there doesn’t appear to be any real energy to resolve it. Installed every version since release and it has never gotten beyond the spinning cursor.
Just to confirm, v0.2 still crashes on startup every time.
@mdsharpe - is your device an enterprise/IT managed device (eg: Intune, configmgr)? If so there is a bug that was just fixed in the latest cumulative update KB5031455.
Once this is applied, the drive should be mounted as a Dev Drive with Defender Performance Mode/Async scanning. If it is not recognized as a developer volume, it is being treated as a regular REFS drive and not getting async scanning.
@AmelBawa-msft Looks good to me! I had a look at the changes and tested it and it works on my end even with the environment variable. 🎉
Thanks everyone for helping with the investigation! @DavidZidar, I was able to repro with the steps you’ve mentioned and pushed a fix to the main branch. Please feel free to validate from your end as well.
You found it! I also have a system environment variable for
DOTNET_ENVIRONMENT = DEVELOPMENT
for safety. As soon as I remove it, I can run Dev Home!I just realized something. The thing that is crashing is the dependency injection validation which is a development only feature, it is not enabled in production. So I tried removing my
DOTNET_ENVIRONMENT=Development
environment variable and all of a sudden Dev Home runs just fine. This is quite an oversight on a development tool. Obviously dependency injection should be correctly configured which is it not.I still can’t get Dev Drive to show up though in the Windows settings for some reason. And I am no longer allowed to uninstall and reinstall Dev Home either.
Still happens with 0.4.
Also v0.3 crashes on startup for me.
@mdsharpe Apparently there’s a specific Windows Update patch that enables Dev Drive that I am not getting no matter how many times I check for updates (yes, I do follow the instructions). I opened a separate issue #1622, but I’ve realized it doesn’t really have anything to with Dev Home. It’s still not working though.
@cinnamon-msft Can you guys look into this? I think I have identified the problem, see above. This issue is not only blocking the use of the application Dev Home but is also blocking the use of Dev Drive.
I tried commenting out the following three lines and then the application actually started. So this does seem to be the actual problem. https://github.com/microsoft/devhome/blob/3fce7cddf1886c14ee90a4f84efb14eb61ac49af/tools/SetupFlow/DevHome.SetupFlow/Extensions/ServiceExtensions.cs#L51 https://github.com/microsoft/devhome/blob/3fce7cddf1886c14ee90a4f84efb14eb61ac49af/tools/SetupFlow/DevHome.SetupFlow/Extensions/ServiceExtensions.cs#L54 https://github.com/microsoft/devhome/blob/3fce7cddf1886c14ee90a4f84efb14eb61ac49af/tools/SetupFlow/DevHome.SetupFlow/Extensions/ServiceExtensions.cs#L127
I have TPM enabled and it’s crashing every time anyway.