Skip to content

Using geometrySvg #1943

@beto-rodriguez

Description

@beto-rodriguez

Discussed in #1940

Originally posted by dgkorenje August 13, 2025
Setting geometrySvg is throwing error at Svg.cs at: path.GetTightBounds(out var result);
An unhandled exception of type 'System.ExecutionEngineException' occurred in LiveChartsCore.SkiaSharpView.dll
I assume SKPath is being disposed causing this error?
If unique string is set, it works fine. But if I reuse the same string (svg path) it will crash.

edit:
Clearing cache before setting the same string seems to work.
VariableSVGPathGeometry.Cache.Clear()

edit2:
ok this doesn't work. Apparently clearing cache if you have two series it will still crash.

image

If I don't clear cache, the error is here:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions