-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
WinUI Quickstart crashes at startup due to SkiaSharp issue #4258
Comments
Hello all! I have the same identical issue. I' ve tried tons of countermeasures in the previous days: a) tried to install it on .NET 6.0 .NET 7.0 .NET 8.0 having the same issue The library working good on WPF project but crashes as described on WINUI3 project. Any comments and/or suggestions are welcome |
@ProgrammerGuy76 Weirdly enough, it works perfectly with Uno Platform which supports WinUI as the main target. |
In past I made it work with a previous version of the package. |
Just tested, it does crash with a Grid but not with a StackPanel (black background - nothing shown) |
Really good to know we have the same behavior and thanks for your fast feedback. |
Today I had occasion to try new ways to make it working with WINUI3 but without positive results. |
I' ve tried to open a more "direct" and specific topic, I hope that this will help. |
Ciao ArchieCoder, I' ve resolved following this: #4273 (comment) |
@ProgrammerGuy76 Great find, thank you! |
With the release of Uno Platform 5.4.5, the WinAppSDK 1.6 is needed. It's difficult to downgrade partial libraries. This bug becomes a blocker for devs using Uno with ScottPlot cc @agneszitte |
Thanks for the details @ArchieCoder, appreciated! And thank you a lot also for opening unoplatform/uno#18350 with the details on the Uno Platform side. |
Same issue here - crash to "attached debugger" as above as soon as attempt to initialise a plot - tried downgrading WindowsAppSDK to 1.5.240802000 and all related (BuildTools, SkiaSharp, etc) as per ScottPlot.WinUI minimums for net8.0-windows10.0.1.19041 but no luck. |
when testing the basic WinUI Quickstart (https://scottplot.net/quickstart/winui/), still crashes (to same "attached debugger dialogs") if I set two (or more) attributes in the WinUIPlot declaration in xaml: <ScottPlot:WinUIPlot x:Name="WinUIPlot1" Height="600" Width="900" /> using WindsAppSDK 1.6.240923002, ScottPlot.WinUI 5.0.40, Winui 3 desktop project, target OS 10.0.22000.0 etc in either x86 or x64 debug config If I don't specify any attribute in the xaml declaration, then it doesn't crash but just shows a blank space where plot should be ... is it just me?? |
@AzureGulf I have the same versions of winappsdk and scottplot and get the same crash within skia. |
Hi all! My quick read of this is that it sounds like it may get fixed when SkiaSharp #2999 is fixed and a new package is available and there's not much I can do at the moment. I'll leave this ticket open until this issue is resolved. If/when someone notices a new SkiaSharp package is available that fixes this, let me know and I'll update the dependency and publish all new ScottPlot packages ASAP. If I don't respond quickly you can @ me in the Discord #1966 and I'll make sure to prioritize resolving this issue. Thanks everyone for your helpful discussion, and if there's something else I can do between now and then let me know! |
@swharden , @Treppon |
Happy to report that it also works with Uno Platform with SkiaSharp 2.88.9-preview.2.2 cc @agneszitte 🥳. Let's close the issue when it will be in non-preview. |
It looks like we are out of preview 🚀 https://www.nuget.org/packages/SkiaSharp/#versions-body-tab I'll update all projects to use SkiaSharp 2.88.9 then close this issue and publish a new package on NuGet this weekend 👍 |
For the record:
so I'll bump the lowest supported version for the WinUI control to It's worth noting that .NET 6 goes out of support next week https://learn.microsoft.com/en-us/lifecycle/products/microsoft-net-and-net-core |
Issue:
The WinUI Quickstart https://scottplot.net/quickstart/winui/ crashes at startup
ScottPlot Version:
5.0.39
Code Sample:
ScottPlotApp1.zip
The text was updated successfully, but these errors were encountered: