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

Loading Font Awesome SVG Exception: Object reference not set to an instance of an object. #12

Open
edwinabt opened this issue Apr 6, 2018 · 0 comments

Comments

@edwinabt
Copy link

edwinabt commented Apr 6, 2018

I am trying to render this file:
500px.zip

This is my Code Xaml:
<svg:SvgImage x:Name="SvgPreview" Grid.Row="2" />

This is my code C#:
await SvgPreview.LoadFileAsync(mediaModel.MediaFile);

This is the stacktrace:

   at Mntone.SvgForXaml.Path.SvgPathSegmentParser.ParseSmoothQuadraticBezierCurveToArgumentSequence(StringPtr ptr, Boolean abs)
   at Mntone.SvgForXaml.Path.SvgPathSegmentParser.ParseSmoothQuadraticBezierCurveToArgumentSequence(StringPtr ptr, Boolean abs)
   at Mntone.SvgForXaml.Path.SvgPathSegmentParser.ParseSmoothQuadraticBezierCurveToArgumentSequence(StringPtr ptr, Boolean abs)
   at Mntone.SvgForXaml.Path.SvgPathSegmentParser.ParseSmoothQuadraticBezierCurveToArgumentSequence(StringPtr ptr, Boolean abs)
   at Mntone.SvgForXaml.Path.SvgPathSegmentParser.ParseSmoothQuadraticBezierCurveTo(StringPtr ptr)
   at Mntone.SvgForXaml.Path.SvgPathSegmentParser.ParseDrawToCommand(StringPtr ptr)
   at Mntone.SvgForXaml.Path.SvgPathSegmentParser.ParseDrawToCommands(StringPtr ptr)
   at Mntone.SvgForXaml.Path.SvgPathSegmentParser.ParseDrawToCommands(StringPtr ptr)
   at Mntone.SvgForXaml.Path.SvgPathSegmentParser.ParseMoveToDrawToCommandGroup(StringPtr ptr)
   at Mntone.SvgForXaml.Path.SvgPathSegmentParser.ParseMoveToDrawToCommandGroups(StringPtr ptr)
   at Mntone.SvgForXaml.Path.SvgPathSegmentParser.ParseMoveToDrawToCommandGroups(StringPtr ptr)
   at Mntone.SvgForXaml.Path.SvgPathSegmentParser.ParseMoveToDrawToCommandGroups(StringPtr ptr)
   at Mntone.SvgForXaml.Path.SvgPathSegmentParser..ctor(String pathData)
   at Mntone.SvgForXaml.Path.SvgPathSegmentParser.Parse(String pathData)
   at Mntone.SvgForXaml.Path.SvgPathElement..ctor(INode parent, XmlElement element)
   at Mntone.SvgForXaml.SvgElement.ParseChildren(INode parent, XmlNodeList nodes)
   at Mntone.SvgForXaml.SvgElement..ctor(INode parent, XmlElement element)
   at Mntone.SvgForXaml.SvgSvgElement..ctor(INode parent, XmlElement element)
   at Mntone.SvgForXaml.SvgDocument.Parse(XmlDocument document)
   at presenter.uwp.MainPage.<LstMediaFiles_ItemClick>d__14.MoveNext()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant