Microsoft.UI.Input.dll crashes multiple WinUI apps on startup

X Wan 15 Reputation points
2024-06-07T20:54:03.1966667+00:00

Got a new PC and after out of box Windows 11 (OS Build 22631.3672) setup immediately noticed the Photos app crashes upon startup. Tried to repair/reset the app, also created a new user/profile with no luck.

Ignored it for a while then later found out Dev Home (Preview) app and WingetUI also crash during startup and the event log shows the same faulting module: Microsoft.UI.Input.dll.

Screenshot 2024-06-07 161220

Reinstalled Windows App Runtime and installed all VC redist (x86 and x64) from 2005 to 2022 but didn't help.

Checked the Microsoft.UI.Input.dll hash and it matches the hash on another Windows PC where such crash doesn't happen.

PS C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.5_5001.119.156.0_x64__8wekyb3d8bbwe> certutil -hashfile .\Microsoft.UI.Input.dll MD5

MD5 hash of .\Microsoft.UI.Input.dll:

8f234da646e69adbc10746c0a6ed282b

Run the Photos app in debugger and got this call stack (only shown top of it) when it crashed:

Screenshot 2024-06-07 162015

Not sure what BeginApiEntryWithoutLockAcquired does, but it seems to raise an exception and crashes the app.

Didn't expect buying a new PC to bring that much trouble. Wonder if anyone had similar experience or have a clue on what could be wrong.

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,851 questions
{count} votes

2 answers

Sort by: Most helpful
  1. X Wan 15 Reputation points
    2024-06-19T14:57:13.7966667+00:00

    I do use 3DConnexion CadMouse wireless and have its 10.8.20 driver installed. Removing the driver seems to solve the problem! Will wait until their new driver released and see if they fix the issue. Basic mouse feature doesn't require its driver.

    1 person found this answer helpful.

  2. X Wan 15 Reputation points
    2024-06-26T01:37:01.9433333+00:00

    New 3DConnexion Windows driver 10.8.21 seems to fix Photos app crash but still crashes WingetUI and Dev Home (Preview) apps. The new driver is a no-go. Wait for their next driver update.

    0 comments No comments