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

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

Closed
conceptworld opened this issue Aug 2, 2021 · 2 comments
Closed
Labels

Comments

@conceptworld
Copy link

conceptworld commented 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
Copy link
Owner

xoofx commented Aug 6, 2021

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

@xoofx xoofx closed this as completed Aug 6, 2021
@xoofx xoofx added the wontfix label Aug 6, 2021
@MihaZupan
Copy link
Collaborator

MihaZupan commented 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.

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

No branches or pull requests

3 participants