mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
IndexOutOfRangeException in Release-Distribution #495
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 @stephanblaurock on GitHub (Jan 19, 2022).
I'm trying to render a simple MD-String I get following error:
var output = Markdown.ToHtml("# This is a test");System.TypeInitializationException: The type initializer for 'Markig.Markdown' threw an exception. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array. at Markdig.Markdown..cctor()..In the simulator, everything works fine in both DEBUG build and RELEASE build
On the physical device (via InHouse-Distribution) everything works in the DEBUG build but NOT in the RELEASE build :-(
My environment:
MacOSX Big Sur (11.6.1)
Visual Studio for Mac (8.10.16 build 2)
Xamarin Forms (5.0.0.2291)
Markdig (0.26.0)
iOS-Simulator (15.2)
iOS-Device (15.2)
@MihaZupan commented on GitHub (Jan 19, 2022):
This is most likely the same as #536 and #564.
The problem is not with Markdig, but with Xamarin iOS (e.g. a linker being too aggressive in removing attributes).
My suggestion is the same as for the other issues https://github.com/xoofx/markdig/issues/564#issuecomment-894346086 - file an issue with Xamarin so they can investigate.
Or if you are interested in doing the investigation yourself, a good start would be
@ptrkbmn commented on GitHub (Mar 9, 2022):
Should be fixed with #600
@MihaZupan commented on GitHub (Mar 30, 2022):
Closing as fixed.