[BUG] v26.04.21 crashes on launch — divide-by-zero in Microsoft.UI.Xaml.Controls.dll on Windows 11 ARM64 (Parallels)
Title
[BUG] v26.04.21 crashes on launch with divide-by-zero in Microsoft.UI.Xaml.Controls.dll — Windows 11 ARM64 (Parallels on Apple Silicon)
What happened
Fresh install on a clean Windows 11 ARM64 VM (Parallels Desktop on Apple Silicon) using the current web installer:
irm "https://get.winhance.net" | iex
Installer completes with no errors. Launching Winhance briefly shows the window then the process exits silently — no error dialog, no crash report. This reproduces on every launch across multiple OS updates (confirmed across builds 26200.8039 and 26200.8246).
Windows Event Viewer reveals the real cause: a native integer divide-by-zero (0xc0000094) inside Microsoft.UI.Xaml.Controls.dll at fault offset 0x000f09d9. This offset is identical across every crash going back to April 26 — same instruction every time.
The DISM log entries for DismOpenSession are a red herring. DISM was running on a background thread concurrently while the crash occurred in WinUI 3 during UI initialization.
Steps to reproduce
- Clean Windows 11 25H2 ARM64 VM on Parallels Desktop (Apple Silicon host).
- Open Windows Terminal as Administrator.
irm "https://get.winhance.net" | iex— installer completes (Installable mode, defaults).- Launch Winhance from the desktop shortcut.
- Window flashes, process exits within ~2 seconds.
Expected
Main Winhance UI loads.
Actual
Process exits silently with a native divide-by-zero in Microsoft.UI.Xaml.Controls.dll.
Environment
- Winhance version: v26.04.21
- Install mode: Installable
- OS: Windows 11 Pro 25H2 (Build 26200.8246)
- Architecture (guest): ARM64
- Host: Apple Silicon Mac, Parallels Desktop
- CPU reported to guest: Apple Silicon, 1 core
- RAM: 8 GB
- GPU: Parallels Display Adapter (WDDM)
- .NET runtime: .NET 10.0.3
- Elevation at launch: Admin
- Firmware / Secure Boot / TPM: UEFI / Enabled / 2.0
Windows Event Viewer — Application Error (5 crashes, same fault every time)
Faulting application name: Winhance.exe, version: 26.4.21.0
Faulting module name: Microsoft.UI.Xaml.Controls.dll, version: 3.1.7.0
Exception code: 0xc0000094 (STATUS_INTEGER_DIVIDE_BY_ZERO)
Fault offset: 0x00000000000f09d9
Faulting module path: C:\Program Files\Winhance\Microsoft.UI.Xaml.Controls.dll
All 5 recorded crashes share the identical fault offset 0x000f09d9. Dates of recorded crashes: 2026-04-26, 2026-05-01, 2026-05-04 (×3).
Application log — last entries before crash
C:\ProgramData\Winhance\Logs\WinhanceStartupLog.txt:
[20:30:08.635] [StartupOrchestrator] All phases complete
[20:30:08.640] [StartupUiCoordinator] CompleteStartupAsync starting
[20:30:08.846] [StartupUiCoordinator] Awaiting SoftwareApps initialization...
<end of file — process terminated>
C:\ProgramData\Winhance\Logs\Winhance_Log_<timestamp>.log:
[20:30:08] [INFO] [SoftwareAppsViewModel] InitializeAsync started
[20:30:08] [INFO] [SoftwareAppsViewModel] Loading WindowsAppsViewModel
[20:30:08] [INFO] [DISM-Detect] CheckCapabilitiesAsync: checking 10 capabilities: [...]
[20:30:08] [DEBUG] [DismSession] DismInitialize returned 0x00000000 (19ms)
[20:30:08] [DEBUG] [DismSession] DismOpenSession returned 0x00000000, session=2 (65ms)
[20:30:08] [DEBUG] [DismSession] Executing action...
<end of file — process terminated>
Note: DISM returns S_OK on both calls. The crash occurs concurrently in the WinUI 3 UI thread, not in the DISM background thread.
Hypothesis
Microsoft.UI.Xaml.Controls.dll v3.1.7.0 (Windows App SDK 1.7) is performing a layout or DPI calculation that results in an integer divide-by-zero on this display configuration.
Most likely root cause: The Parallels Display Adapter is reporting a display metric (DPI, scale factor, or screen dimension) as zero, and WinUI 3 divides by it without a guard. This is the same native code path every time (0x000f09d9), which suggests a deterministic layout/measurement operation that always receives a zero value from the virtual display.
Possible fixes:
- Guard the divide at
0x000f09d9against a zero divisor and fall back to a sane default (e.g., 96 DPI). - Check for zero/invalid display metrics from the display adapter before performing DPI-dependent layout calculations.
- If this is a known WinAppSDK 1.7 issue on ARM64 emulation, pinning to an earlier WinAppSDK version or waiting for an upstream fix may be needed.
Happy to test a diagnostic build, provide a full WER crash dump, or try changes to Parallels display settings (DPI, resolution, scaling) to help narrow it down.
Workaround (confirmed)
In Parallels Desktop VM settings → Hardware → Display, change from "Best for Retina display" to "Scaled". Restart the VM. Winhance loads normally after this change.
"Best for Retina" appears to report a fractional or zero DPI/scale value to WinUI 3 during startup. "Scaled" provides a clean value that avoids the divide-by-zero.
Reproducibility
Every launch, not intermittent. Confirmed across Windows updates 26200.8039 and 26200.8246.
Additional context
- Only Microsoft Defender active; no third-party AV.
- Uninstall + reinstall produces the same behavior.
Get-WindowsCapability(PowerShell DISM) runs fine on this machine — DISM itself is not the issue.
Hey @evogelpohl — thanks for the unusually thorough triage on this. The Event Viewer trace and the Parallels display-mode workaround are both genuinely useful, and likely to help anyone else who hits this on ARM64.
The fault is inside Microsoft.UI.Xaml.Controls.dll shipped with Windows App SDK 1.7, and there's no Microsoft-shipped fix for the exact symptom in the 1.7.x line. The next release (Winhance Release 26) moves Winhance to Windows App SDK 1.8.7, which includes a virtualizing-panel bounds-overflow fix that's the strongest candidate for what you're seeing. No promises it resolves the specific Parallels + ARM64 + fractional-DPI path, but it's the most direct shot we have.
Could you retest once Release 26 ships? In the meantime your Display = Scaled workaround is the right mitigation, and worth pinning here in case anyone else searches for this.
Drafted and approved by @memstechtips - Sent by Memory's Agent
@evogelpohl Is this fixed in the latest release?
@evogelpohl Is this fixed in the latest release?
Seems to work now. Installed via PS command. Started in full screen with parallels enhancements on. Worked. TY.