Closed TripleSM closed 1 year ago
Sounds just like #7911
There's a workaround for this in this comment
WinAppSDK 1.2.1 was released today and contains a fix for this issue.
Still experiencing this crash with WindowsAppSDK 1.2.230217.4
running on net7.0-windows10.0.22621.0
.
Describe the bug
[WinAppSDK1.2] App crash and fails to load main window, if layout xaml contains any TextBox element. Exception thrown at 0x00007FF9D5D750DA (imm32.dll) in WinUI3_TextBox_Test.exe: 0xC0000005: Access violation reading location 0x0000000000000000. The issue can be found in all release channels of WinAppSDK1.2 (experimental, preview, and stable).
Package Config:
Steps to reproduce the bug
XAML Layout:
Expected behavior
TextBox Element works perfectly in C#/WinRT projects. It should work for C++/WinRT projects too.
Screenshots
NuGet package version
WinUI 3 - Windows App SDK 1.2.0
Windows version
Edition Windows 11 Home Insider Preview Single Language Version 22H2 Installed on 05-11-2022 OS build 25236.1010 Experience Windows Feature Experience Pack 1000.25236.1010.0
Additional context
Output Log:
'WinUI3_TextBox_Test.exe' (Win32): Loaded 'X:\source\repos\WinUI3_TextBox_Test\x64\Debug\WinUI3_TextBox_Test\AppX\WinUI3_TextBox_Test.exe'. Symbols loaded. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug.UWPDesktop_14.0.30704.0_x648wekyb3d8bbwe\msvcp140d.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug.UWPDesktop_14.0.30704.0_x648wekyb3d8bbwe\vcruntime140d.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug.UWPDesktop_14.0.30704.0_x648wekyb3d8bbwe\vcruntime140_1d.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded X:\repos\WinUI3_TextBox_Test\x64\Debug\WinUI3_TextBox_Test\AppX\ucrtbased.dll'. The thread 0x5308 has exited with code 0 (0x0). 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.2_2000.677.1750.0_x648wekyb3d8bbwe\Microsoft.ui.xaml.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\urlmon.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.2_2000.677.1750.0_x648wekyb3d8bbwe\Microsoft.Internal.FrameworkUdk.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\iertutil.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\BCP47Langs.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\kernel.appcore.dll' 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\dcomp.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\DWrite.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\uxtheme.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\d2d1.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\d3d11.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\dxgi.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\Microsoft.Internal.FrameworkUdk.System.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\shlwapi.dll' 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\Microsoft.Internal.FrameworkUdk.System.dll' 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\profapi.dll' 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\BCP47Langs.dll' 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\CoreMessaging.dll' 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\kernel.appcore.dll' 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\dcomp.dll' 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.2_2000.677.1750.0_x648wekyb3d8bbwe\Microsoft.Internal.FrameworkUdk.dll' 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\sechost.dll' 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\advapi32.dll' 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\iertutil.dll' 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\urlmon.dll' 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\ole32.dll' 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\DWrite.dll' 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\DXCore.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\dxgi.dll' 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\d3d11.dll' 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\WinTypes.dll' 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\imm32.dll' 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\uxtheme.dll' 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\msvcrt.dll' 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\d2d1.dll' 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.2_2000.677.1750.0_x648wekyb3d8bbwe\Microsoft.ui.xaml.dll' 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\uxtheme.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\clbcatq.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\Windows.StateRepositoryCore.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.2_2000.677.1750.0_x648wekyb3d8bbwe\Microsoft.ui.xaml.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\urlmon.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.2_2000.677.1750.0_x648wekyb3d8bbwe\Microsoft.Internal.FrameworkUdk.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\DWrite.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\d3d11.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\d2d1.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\iertutil.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\BCP47Langs.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\dcomp.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\dxgi.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\Microsoft.Internal.FrameworkUdk.System.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\twinapi.appcore.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.2_2000.677.1750.0_x648wekyb3d8bbwe\CoreMessagingXP.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\ResourcePolicyClient.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\ResourcePolicyClient.dll' 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\directxdatabasehelper.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\Windows.UI.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\30_dell_con_mobile_tgl_iigd_dch.inf_amd64_927a9c84bb389b62\igd10iumd64.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\apphelp.dll'. QueryDesiredUMDMode() called 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\30_dell_con_mobile_tgl_iigd_dch.inf_amd64_927a9c84bb389b62\igd10um64xe.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\crypt32.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\ControlLib.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\setupapi.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\devobj.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\cfgmgr32.dll' 'WinUI3_TextBox_Test.exe' (Win32): Unloaded 'C:\Windows\System32\cfgmgr32.dll' 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\Windows.ApplicationModel.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\30_dell_con_mobile_tgl_iigd_dch.inf_amd64_927a9c84bb389b62\IntelControlLib.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\wintrust.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\msasn1.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\Windows.UI.Immersive.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\30_dell_con_mobile_tgl_iigd_dch.inf_amd64_927a9c84bb389b62\igdgmm64.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\30_dell_con_mobile_tgl_iigd_dch.inf_amd64_927a9c84bb389b62\igc64.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.2_2000.677.1750.0_x648wekyb3d8bbwe\Microsoft.Windows.ApplicationModel.Resources.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.2_2000.677.1750.0_x648wekyb3d8bbwe\MRM.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\BCP47mrm.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Globalization.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.2_2000.677.1750.0_x648wekyb3d8bbwe\Microsoft.UI.Xaml.Controls.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\TextShaping.dll'. The thread 0xfd0 has exited with code 0 (0x0). 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\msctf.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.2_2000.677.1750.0_x648wekyb3d8bbwe\dcompi.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.2_2000.677.1750.0_x648wekyb3d8bbwe\Microsoft.UI.Composition.OSSupport.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.2_2000.677.1750.0_x648wekyb3d8bbwe\marshal.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.2_2000.677.1750.0_x648wekyb3d8bbwe\dwmcorei.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\D3DCompiler_47.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\cryptsp.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.2_2000.677.1750.0_x648wekyb3d8bbwe\Microsoft.InputStateManager.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.2_2000.677.1750.0_x648wekyb3d8bbwe\Microsoft.UI.Input.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.2_2000.677.1750.0_x648wekyb3d8bbwe\Microsoft.UI.Windowing.Core.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\xmllite.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\cryptbase.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\DataExchange.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\OneCoreUAPCommonProxyStub.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.2_2000.677.1750.0_x64__8wekyb3d8bbwe\WinUIEdit.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\usp10.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\ELSCore.dll'. 'WinUI3_TextBox_Test.exe' (Win32): Loaded 'C:\Windows\System32\globinputhost.dll'. Exception thrown at 0x00007FF9D5D750DA (imm32.dll) in WinUI3_TextBox_Test.exe: 0xC0000005: Access violation reading location 0x0000000000000000.