You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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 #564 (comment) - file an issue with Xamarin so they can investigate.
Or if you are interested in doing the investigation yourself, a good start would be
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 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)
The text was updated successfully, but these errors were encountered: