-
Notifications
You must be signed in to change notification settings - Fork 697
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
WinUI for Desktop #2775
Comments
@Fernand-Delavy I assume you have seen this documentation on using WinUI Desktop? @MikeHillberg and @stevenbrix FYI |
@Fernand-Delavy can you disable the "Just My Code" setting so that we can get a complete callstack? |
@Fernand-Delavy sorry for not being more clear, disabling that feature won't fix the problem, it will just allow us to get better callstacks so that we can see what's going on. Can you share the callstack you are receiving? |
Dear Sir, i use dotnet-sdk-5.0.100-preview.4.20258.7-win-x64 and X86 (Preview 6 crash on run ) I do not know what you do you mean with callstack ? empty orginal created by VS 2019 attached the only thing happends is the output window mentionned and a App.g.i.cs below 👍 namespace Fch /// Program class /// public static class Program { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," 0.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.STAThreadAttribute] static void Main(string[] args) { global::WinRT.ComWrappersSupport.InitializeComWrappers(); global::Microsoft.UI.Xaml.Application.Start((p) => { global::Microsoft.UI.Threading.DispatcherQueueSyncContext.SetForCurrentThread(); new App(); }); } } #endif
#if DEBUG && !DISABLE_XAML_GENERATED_BINDING_DEBUG_OUTPUT ` |
@Fernand-Delavy, no worries - I'm sorry for not being more clear. The callstack is what you showed in the output window:
The reason I asked you to disable the "Just My Code" setting is because it says Another way to get to the callstack (note that this exception isn't the same one you saw - I can't repro it): It's generally docked in the bottom of your VS alongside the output window: |
@Fernand-Delavy : I hope, I have a solution for you. |
@CodeBehemoth that is expected at this point, we don't currently support unpackaged desktop apps in preview2 |
Damnit, I'm having the same problem when trying to run a WinUI in Desktop app. Is there nothing I can do? I was hoping I could switch from using FluentWPF with a WPF application, since it's pretty unoptimized and it creates so much lag when creating more than 10 buttons with the reveal effect... |
Now I'm trying to build it as x86 and it gives me this: |
@EricPlayZ do you also have other versions of .NET5 preview installed? You might need to use global.json to make sure the preview5 sdk is actually used. |
No, as I've always uninstalled the latest version whenever I tried an older one. |
@EricPlayZ, can you please share a binlog? See https://github.com/microsoft/microsoft-ui-xaml/blob/master/docs/debugging_buildfailures.md for how to collect binlogs |
Sure, I will when I have time! |
Closing this issue given it was based on old versions of WinUI 3. |
using Visual Studio 2019 Version 16.7.0 Preview 3.1
Using Windows 10 Pro 2004 19.41.329
I create app WINUI Desktop with out any change and try to run, it crash
I did as mentionned else where remove dotnet-sdk-5.0.100-preview.6.20318.15-win-x64.exe and x86
I isnstall dotnet-sdk-5.0.100-preview.4.20258.7-win-x64.exe and x86
I try to run, it do not crash but exit with code : -1073741189 (0xc000027b)
output windows :
'Fch.exe' (CoreCLR: DefaultDomain): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\System.Private.CoreLib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Fch.exe' (CoreCLR: clrhost): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\Fch.dll'. Symbols loaded.
'Fch.exe' (CoreCLR: clrhost): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\System.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Fch.exe' (CoreCLR: clrhost): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\winrt.runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Fch.exe' (CoreCLR: clrhost): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\System.Runtime.InteropServices.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Fch.exe' (CoreCLR: clrhost): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\Microsoft.WinUI.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Fch.exe' (CoreCLR: clrhost): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\System.Collections.Concurrent.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Fch.exe' (CoreCLR: clrhost): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\System.Threading.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Fch.exe' (CoreCLR: clrhost): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\System.Collections.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Fch.exe' (CoreCLR: clrhost): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\System.Runtime.CompilerServices.Unsafe.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Fch.exe' (CoreCLR: clrhost): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\System.Private.Uri.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Fch.exe' (CoreCLR: clrhost): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\System.ObjectModel.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Fch.exe' (CoreCLR: clrhost): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\System.Numerics.Vectors.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Fch.exe' (CoreCLR: clrhost): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\System.Linq.Expressions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Fch.exe' (CoreCLR: clrhost): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\System.Security.Cryptography.Algorithms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Fch.exe' (CoreCLR: clrhost): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\System.Security.Cryptography.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Fch.exe' (CoreCLR: clrhost): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\System.Linq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Fch.exe' (CoreCLR: clrhost): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\System.Security.Cryptography.Csp.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Fch.exe' (CoreCLR: clrhost): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\Microsoft.Windows.SDK.NET.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Fch.exe' (CoreCLR: clrhost): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\System.Memory.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Fch.exe' (CoreCLR: clrhost): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\System.Reflection.Emit.ILGeneration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Fch.exe' (CoreCLR: clrhost): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\System.Reflection.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Fch.exe' (CoreCLR: clrhost): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\System.Reflection.Emit.Lightweight.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Fch.exe' (CoreCLR: clrhost): Loaded 'Anonymously Hosted DynamicMethods Assembly'.
'Fch.exe' (CoreCLR: clrhost): Loaded 'D:\WinUi Desktop\Fch\Fch\Fch\bin\x86\Debug\netcoreapp5.0\win-x86\System.Reflection.Emit.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Fch.exe' (CoreCLR: clrhost): Loaded 'Snippets'.
The program '[7380] Fch.exe' has exited with code -1073741189 (0xc000027b).
The text was updated successfully, but these errors were encountered: