mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
0.24 and later crashes on Xamarin iOS release build. Not debug build. #476
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @conceptworld on GitHub (Aug 2, 2021).
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.
@xoofx commented on GitHub (Aug 6, 2021):
It's an AOT problem Xamarin iOS side (e.g their mono AOT compiler) and unlikely in Markdig itself.
@MihaZupan commented on GitHub (Aug 6, 2021):
@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.