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

UnhandledException in .NET MAUI project with livecharts2. #1787

Open
Mietrits opened this issue Jan 31, 2025 · 2 comments
Open

UnhandledException in .NET MAUI project with livecharts2. #1787

Mietrits opened this issue Jan 31, 2025 · 2 comments
Labels
bug Something isn't working priority 0 needs to be fixed asap.

Comments

@Mietrits
Copy link

I'm trying to build a app for my pc. This app needs to show gauge meters and that's how came across livecharts2
I came across some error's so i started a fresh project and imported livecharts2.

Now i can see the basis chart when you follow the instructions in the installation page:
https://livecharts.dev/docs/Maui/2.0.0-rc5/Overview.Installation

But when i hover over the chart i get set to this part of the code in App.g.i.cs

#if DEBUG && !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION UnhandledException += (sender, e) => { if (global::System.Diagnostics.Debugger.IsAttached) global::System.Diagnostics.Debugger.Break(); }; #endif }

This error:

WinUI.App.InitializeComponent.AnonymousMethod__3_2(object sender, Microsoft.UI.Xaml.UnhandledExceptionEventArgs e) Line 75 C#

Does anyone know how to fix this?
I'm hopeless.

@EntusBrutalus
Copy link

Hello i have the same problem.
I found a temp fix.
Use the SourceCode Direk.
Load:
LiveChartsCore
LiveChartsCore.Behaviours
LiveCharsCorde.SkiaSharpView
LiveChartsCore.SkiaSharpView,Maui
and place the reference
that work for me

@beto-rodriguez
Copy link
Owner

Hello, this issue is related to #1774, a workaround for now is to initialize another kind of chart first, like a cartesian chart, this will be fixed in the next version of the library, sorry about this!

@beto-rodriguez beto-rodriguez added bug Something isn't working priority 0 needs to be fixed asap. labels Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority 0 needs to be fixed asap.
Projects
None yet
Development

No branches or pull requests

3 participants