When pressing the three finger drag tab on settings the app crashes
When I open the app settings and press on the three finger drag tab the app crashes. I have disables the three finger actions from settings and the double tap and drag choice as well.
I'm encountering the same bug, on an LG Gram 16 tablet, and on a Microsoft Surface Pro 7, both running Windows 11 Home.
Got the same issue with my new Surface Laptop 7, win11, Snapdragon arm64 machine. This is what AI told me (see below). Pretty sure it's the cause. I got one dictation software (Typeless if you're interested in) that constantly makes UIA queries into other processes, which results in ThreeFingerDrag settings window to crash. If you wanna know which process on your machine that causes crash, you can use ETW UI Automation tracing. The Microsoft-Windows-UIAutomationCore ETW provider logs every UIA call with the PID of the calling process. Start the trace -> launch ThreeFingerDrag -> double click the tray icon -> wait for it to crash -> stop the trace and finds processes that made UIA calls in the seconds before the crash.
Workaround is just you quit the process that causes ThreeFinger's crash before opening its setting, and after you're done with the setting, reopen that application. Since you don't tweak those settings all the time, this will probably be just fine. When ThreeFinger's just in the tray, it won't crash. For long-term, need to wait for MSFT to fix https://github.com/microsoft/microsoft-ui-xaml/issues/11139.
Hope it helps!
AI debug message:
The actual trigger is the SettingsWindow itself being shown — i.e. a new top-level XAML island appearing on screen.
Why this matches the GitHub issue even better
Quoting https://github.com/microsoft/microsoft-ui-xaml/issues/11139 directly:
The crash also occurs automatically within 8–13 seconds of the app launching on one specific machine, suggesting a background process is making cross-process UIA queries on window appearance.
Your symptom — open window from tray, ~1 second later it dies — is precisely that scenario. The sequence is:
- You double-click the tray icon → App.OpenSettingsWindow() constructs SettingsWindow and Activate()s it (App.xaml.cs:73-75).
- A new visible top-level WinUI window registers a new UIA provider with the OS.
- Some cross-process UIA client on your Snapdragon box (Voice Access, Narrator-prefetch, Recall, the touch UIA pump, an EDR, etc.) sees a new top-level window appear and immediately calls get_BoundingRectangle / ElementFromPoint to enumerate it.
- That call lands in CXamlIslandRoot::GetScreenOffset on the UIA I/O thread instead of the UI thread → RPC_E_WRONG_THREAD stowed → RaiseFailFastException → 0xC000027B.
This is window-lifetime-bound, not tab-content-bound. The "Three Finger Drag tab" report in issue #84 is the same defect — that reporter just happened to be on the Touchpad tab when the cross-process query first fired, and clicking to ThreeFingerDrag tab was the visible trigger from their POV.
Why the HandlerWindow doesn't crash
HandlerWindow.xaml is the tiny invisible/marginal raw-input sink (HandlerWindow(App app) in touchpad/HandlerWindow.xaml.cs). It isn't a normal foreground app window users interact with, so the UIA layer doesn't enumerate it the same way. Only SettingsWindow — a real, visible, focused top-level window — provokes the cross-process UIA scan that hits the bug.
Confirms ARM64 isn't directly the root cause, but is the trigger
The race is scheduler/threading-sensitive. On x64 the cross-process UIA query usually arrives a few milliseconds late and finds XamlIslandRoot already initialized on the UI thread. On Snapdragon ARM64 the timing consistently lets the UIA call arrive before UI-thread setup completes, hitting the unguarded code path.
Interesting, thank you @automotua. @Antokoy and @andrew-c-martin, can you confirm that the app crashes whatever the tab you are on, and that this is actually not linked with the three finger drag tab? Do you have any UIA client installed? Does stopping it fixes the crash issue?