-
Notifications
You must be signed in to change notification settings - Fork 693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Faulting Module : Microsoft.UI.Xaml.DLL - Win32 WinUI 3 App not loading #7163
Comments
Did you install the Windows App SDK runtime on your machine? When your app is unpackaged you need it: |
Im experiencing this too, @OceanCyanTech did you ever get it working?
|
I am having this same problem. My unpackaged app only runs on my machine. I've tested it with friends' Windows 10 machines and my wife's Windows 11 machine. All errors look like this :
I am compiling with this :
I've personally overseen that every machine installs :
I have no idea how to triage what is going on here. I did notice when you install the WindowsAppRuntime, you get a Microsoft.UI.Xaml.DLL that shows : But when I compile with true, the same dll in the folder is The full source of the app is here for reference : |
This issue is happening for a packaged app installed from the Store as well. With all runtimes installed. Might be related to this #8577, #8446 and #5746 It's caused by this error, as I got to find using windbg
Also, Microsoft states this as a know issue:
@marb2000 , any updates on this? it's been 2 years since this framework launched and this issue is affecting a lot of users that try to use apps developed with WinUI 3. |
I have a user who has experienced this error multiple times. Our app is packaged. |
I'm new to WinUI3, just trying to get off the ground. I have prior WPF experience, so it's not like I'm totally lost. I'm attempting to build a traditional desktop application, having nothing to do with the Windows Store. I've eliminated the launch profile for the 'packaged' version of the app, along with the 'Assets' folder, and the Package.appxmanifest, which appeared related only to the Packaged/Store version. Additionally, I've added these three setting to my .csproj file:
Running in Visual Studio 2022 works without an issue.
Seems if I switch EnableMsixTooling back to 'true', everything works. I didn't want to look into MAUI, as I don't need cross-platform. With leaving EnableMsixTooling set to true, I'm continuing, but this already feels 'fragile' out of the box. I would highly recommend a project template for starting an 'Unpackaged' application, in addition to it not crashing with the published version. You might also consider rebranding 'unpackaged' as 'Traditional Desktop' and maybe 'Packaged' as 'Windows Store', if that's appropriate. |
Coincidentally, 20 mins later, while browsing the WinUI 3 Gallery app, it also crashed on the same Microsoft.ui.xaml.dll:
I was searching icons at the time. |
Thanks @CodeFontana! I also got this in the event log after publishing the non package project generated by the "Blank App, Packaged with Windows Application Packaging Project" template. This is supposed to work without that right? |
I'm in the same boat-- I would believe you should be able to create a WinUI 3 app independently from MSIX and the Windows Store, but I can't say this for sure, as I'm new to this project type myself. Seems WinUI project templates and settings need an overhaul. Disappointing it's so confusing/buggy out of the box! |
I have the same problem. I tried the same thing and couldn't find a solution. I hope this will be solved soon. |
Any update ?? |
Hi,
The application can run in VS with no problems. However, the published MSIX package application can not run and throw the following error in event reviewer. Thanks. |
Pls. all be careful to state 'I have the same problem here' with this "c000027b" Exception! FYI: https://learn.microsoft.com/en-us/shows/inside/c000027b IMHO this error is happening deep in the guts of Win UI XAML code. Unfortunately it is not much of a help when it happens:
My own instance of this problem was simply caused by my 'stupidly misusing' of a Component in my XAML while I did not fully understand this component at that time. My symptoms where as described here
see here for details Providing a corrected version of my own XAML solved it. That said, I am hoping that future versions of WinUI3 do improve the developer experience in this area. |
Unfortunately I stepped into these 2 error
My problem is the project launch in release mode just fine both Debug and Release run the like charm, but when deployed to MSIX it crash on start which make me really frustrated to located where the issue really is |
I have the same issue with the same exception code. It's easily reproducible on my machine when I build the MSIX package with both |
I have the same problem. Unfortunately, this problem only occurs in some environments. Is this issue still active? |
Thank you all for sharing your experiences with these failures. Your input is incredibly valuable in identifying and resolving these issues. After investigating multiple issues discussed in this thread, I’ve compiled a list of potential causes and solutions for the mux.dll crash failures. It addresses some of concerns. We need more data for better root cause analysis of crashes. Investigation Results
Debugging CrashesWith WinUI 3 being source available and symbols available, you can get meaningful stack traces from crashes. WinDBG: Add the Microsoft symbol server to the default symbol path. Launch the app and let it crash to fetch symbols and display a meaningful stack trace. Few debugging techniques :
If you encounter a new failure, please create a new thread instead of adding to this one. This will help us track and communicate more effectively. I will be closing this issue now. Thank you for your cooperation and understanding! @michael-hawker for reference. |
By closing this issue, I'm assuming you're saying WinUI is not a viable project type for traditional desktop needs. To be honest, my team abandoned the idea of using WinUI3 for our needs, based on the idea it was broken out of the box. This is feedback you need to hear when arbitrarily closing an issue based on a summary, and no concrete solutions. I'd rather you retire the technology than lie to us. |
I can repro this issue in .NET 8 MAUI project as well with publish trimmed turned off, just FYI |
@CodeFontana our intent is not to ignore anyone, but to actively manage our backlog. This issue dates back a couple years to Windows App SDK 1.0.3, and many variations of crashes in Microsoft.UI.Xaml.DLL have been added to it. We've resolved a few of these, and are tracking others separately. We welcome new issues opened against the latest version of Windows App SDK, with clear repro steps. |
@freemstr please enter a new issue for your MAUI-related crash. |
Yeah, you're right. It's just frustrating because it takes so long to address what I would call "getting started" issues. Unfortunately, my team is not using this technology, and now it would be an uphill battle to try and suggest again. There's a basic expectation this stuff should work gracefully out of the box-- I mean we really didn't have to go far to immediately bump into problems. And I still feel there should be more obvious templating for "Traditional Desktop" vs "Windows Store" applications. Sorry if my feedback was bit rough, might just be passion and disappointment. We want you guys to hit every mark, so us folks in the trenches can confidently and consistently recommend cohesive Microsoft tech stacks. |
The problem with Microsoft.UI.Xaml.dll is not limited just to developing a new app. With "office notebook" I mean, I'm not developing anything on the notebook, just use it with MS Office, for office like stuff |
Describe the bug
When I'm trying to run my WinUI 3 app, I get this error in Event Viewer:
Log Name: Application
Source: Application Error
Date: 29-05-2022 17:30:40
Event ID: 1000
Task Category: Application Crashing Events
Level: Error
Keywords:
User:
Computer:
Description:
Faulting application name: CompInfo.exe, version: 1.0.0.0, time stamp: 0x62571150
Faulting module name: Microsoft.ui.xaml.dll, version: 3.0.0.2204, time stamp: 0xe15d9c14
Exception code: 0xc000027b
Fault offset: 0x0023bac9
Faulting process id: 0x0x59D8
Faulting application start time: 0x0x1D87353B61B4DB3
Faulting application path: C:\Program Files (x86)\CompInfo\CompInfo.exe
Faulting module path: C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.1-preview3_1000.485.2229.0_x86_8wekyb3d8bbwe\Microsoft.ui.xaml.dll
Report Id: 0f4e4cd6-ed23-4b81-bf6d-7aaade61fcda
Faulting package full name:
Faulting package-relative application ID:
Event Xml:
](http://schemas.microsoft.com/win/2004/08/events/event);
1000
0
2
100
0
0x8000000000000000
6885
Application
Lenovo_laptop
CompInfo.exe
1.0.0.0
62571150
Microsoft.ui.xaml.dll
3.0.0.2204
e15d9c14
c000027b
0023bac9
0x59d8
0x1d87353b61b4db3
C:\Program Files (x86)\CompInfo\CompInfo.exe
C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.1-preview3_1000.485.2229.0_x86_8wekyb3d8bbwe\Microsoft.ui.xaml.dll
0f4e4cd6-ed23-4b81-bf6d-7aaade61fcda
Steps to reproduce the bug
Expected behavior
App runs smoothly
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.0.3
Windows app type
Device form factor
Desktop
Windows version
Windows Insider Build (xxxxx)
Additional context
No response
The text was updated successfully, but these errors were encountered: