Skip to content
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

Idiot proof error when you forget .UseSkiaSharp(true) #654

Closed
nogginbox opened this issue Oct 1, 2022 · 2 comments
Closed

Idiot proof error when you forget .UseSkiaSharp(true) #654

nogginbox opened this issue Oct 1, 2022 · 2 comments
Labels
maui priority unknown An external issue where we cannot do much about it. requires external features We can not fix this for now, we need a feature that is out of this library.

Comments

@nogginbox
Copy link

nogginbox commented Oct 1, 2022

I'd successfuly used LiveCharts 2 in one project and was copy pasting my code into a new project.

It didn't work and my app crashed with an unhandled naviagtion failed exception that had the message:

{"Catastrophic failure (0x8000FFFF (E_UNEXPECTED))"}

It took me ages (much longer than it should have done) to remember that in my original project I'd also added some code into MauiProgram.cs which was:

.UseSkiaSharp(true)

With this code in, everything worked fine. I was just wondering if there was a way to detect this PEBKAC and help you out with a more intuative exception.

@beto-rodriguez
Copy link
Owner

This will probably change in a future according to:

dotnet/maui#7258

Sadly, there is not much this library can do if that is a requirement from MAUI. Maybe I could try to hide this, and instead of UseSkiaSharp(true) name the method UseLiveCharts() (internally it would just call UseSkiaSharp(true)) then I will be able to detect and throw with more useful information.

@beto-rodriguez beto-rodriguez added the requires external features We can not fix this for now, we need a feature that is out of this library. label Oct 7, 2022
@beto-rodriguez beto-rodriguez added the priority unknown An external issue where we cannot do much about it. label Mar 2, 2023
@beto-rodriguez
Copy link
Owner

I will close this for now since there is not much we can do, but I will surely try to improve this when Maui supports it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maui priority unknown An external issue where we cannot do much about it. requires external features We can not fix this for now, we need a feature that is out of this library.
Projects
None yet
Development

No branches or pull requests

2 participants