Skip to content

0.24 and later crashes on Xamarin iOS release build. Not debug build. #564

Closed

Description

@conceptworld

When calling Markdown.ToHtml(), markdig crashes in release/distribution builds. But on debug it works.
I had to revert back to 0.23. Thanks to this page for giving me a hint: https://www.gitmemory.com/issue/xoofx/markdig/536/820772305

There is not special html I am using. Even empty string or plain text without markdown crashes it.

And with further testing, it appears that this issue is seen only in physical device and not in simulator.

Thanks.

Activity

  1. xoofx commented on Aug 6, 2021

    @xoofx
    Owner

    It's an AOT problem Xamarin iOS side (e.g their mono AOT compiler) and unlikely in Markdig itself.

  2. MihaZupan commented on Aug 6, 2021

    @MihaZupan
    Collaborator

    @conceptworld @jimiatnymbl @stevehatch I would suggest filing an issue with Xamarin as this is likely some sort of linker bug on their side. If you are able to provide a repro they should be able to triage it.

    Something you could try is to build Markdig yourself and remove this line to see if the problem still reproduces. If it requires an actual device, I'm afraid I can't validate the change myself.

    I'm assuming #536 is the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions