-
Notifications
You must be signed in to change notification settings - Fork 19
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
Crash on windows #93
Comments
Hi! My quick theory is maybe you have an outdated fork of demo project AND/OR drawnUi, there were some breaking changes while ago? So I'm running fine on windows 10 DrawnUi.Demo with
At the same time still running okay with |
Hey @taublast, apologies and a word of warning!!!! The latest visual studio update (or I guess .NET or MAUI) breaks SkiaSharp. Closing this issue as it is not related to your library. By the way so far your library looks good, one of my application is written like 90% in SkiaSharp due to the atrocious performance on android and breaking inconsistencies across platforms, I was considering putting my own solution into a library but ended up discovering this project yesterday and after I got it running now and some initial testing I'm strongly considering porting my application to use DrawnUi.Maui. |
Thanks! I would reopen this to investigate the cause of the crash though. Will update my VS (was avoiding to do it for obvious reasons) to force the problem to appear. |
I was sitting on 17.10 working fine. Take my bet this is related to their new XAML Live preview window, enabled by default in this new VS version, that crashes VS when its code meets a skiasharp canvas :) Investigating.. |
so basically one can just include a simple
to make VS crash, the drawn UI is indeed unrelated. |
Let's hope they would notice it here https://developercommunity.visualstudio.com/t/Latest-update-breaks-Skiasharp/10767419?q=crash+windows+maui+skiasharp |
Yep, that's exactly what I've experienced as well, although on one machine I would not even be prompted to debug on a new instance, it just crashes and the debugger doesn't catch it. |
Related to Mapsui/Mapsui#2758 and dotnet/maui#25160 |
@arifu-dev upgrading all your skiasharp-related nugets to 2.88.9-preview.2.2 would solve this for existing projects |
Good to know, thanks! |
Setting up a new project or running the demo projects on windows it just crashes. The app otherwise works fine if Canvas is not present.
After calling InitializeComponent() it simply crashes, I can't find any exceptions, only the message:
The program '[5388] MauiApp1.exe' has exited with code 3221226107 (0xc000027b).
Tried to run the demo project just in case I set up something incorrectly, the code seems to run up to MainPage.InitializeComponent(); after which the app simply closes with the message "The program '[16464] AppoMobi.Maui.DrawnUi.Demo.exe' has exited with code 3221226107 (0xc000027b)." I am unable to get any exception.
Am I missing something?
Tested on windows 10 and windows 11.
Update: I tried to walk through the library code to see at what code gets executed before the crash.
It calls Measure and Arrange functions on the Canvas, but crashes before it can call Draw.
The actual last line of code I can catch before it crashes is a Task.Delay function in Looper.cs line 159:
await Task.Delay(TimeSpan.FromMilliseconds(timeToWaitMs), cancellationToken);
The text was updated successfully, but these errors were encountered: