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
Using 11.0.0 release and building with PublishAot set to true, the text : https://github.com in MarkDownScrollViewer causes the application to crash. It seems any colon followed by a web link causes this crash when compiling with AOT.
Starting a new Avalonia project and putting this
in MainWindow.axaml along with setting PublishAot to true is what I did to produce the exception below
Exception Details
System.TypeInitializationException: A type initializer threw an exception. To determine which type, inspect the InnerException's StackTrace property.
---> System.PlatformNotSupportedException: Operation is not supported on this platform.
at System.Reflection.Assembly.GetCallingAssembly() + 0x5b
at Markdown.Avalonia.EmojiTable.LoadTxt() + 0x5c
at Markdown.Avalonia.EmojiTable..cctor() + 0x1e
at System.Runtime.CompilerServices.ClassConstructorRunner.EnsureClassConstructorRun(StaticClassConstructionContext*) + 0xc6
--- End of inner exception stack trace ---
at System.Runtime.CompilerServices.ClassConstructorRunner.EnsureClassConstructorRun(StaticClassConstructionContext*) + 0x167
at System.Runtime.CompilerServices.ClassConstructorRunner.CheckStaticClassConstructionReturnNonGCStaticBase(StaticClassConstructionContext*, IntPtr) + 0xd
at Markdown.Avalonia.EmojiTable.TryGet(String, String&) + 0x19
at Markdown.Avalonia.Markdown.DoTextDecorations(String, Func`2) + 0x1e4
at Markdown.Avalonia.Markdown.g__RunSpanRest|74_0(String, Int32, Int32, Int32, List`1) + 0x159
at Markdown.Avalonia.Markdown.PrivateRunSpanGamut(String) + 0x4d
at Markdown.Avalonia.Markdown.d__78.MoveNext() + 0x1a4
at System.Collections.Generic.List`1.InsertRange(Int32, IEnumerable`1) + 0x120
at Markdown.Avalonia.Markdown.g__RunBlockRest|73_0(String, Int32, Int32, ParseStatus, Int32, List`1) + 0x154
at Markdown.Avalonia.Markdown.PrivateRunBlockGamut(String, ParseStatus) + 0x308
at Markdown.Avalonia.Markdown.Transform(String) + 0x3c
at Markdown.Avalonia.MarkdownScrollViewer.UpdateMarkdown() + 0x3b
at MpvTest.Views.MainWindow.!XamlIlPopulate(IServiceProvider, MainWindow) + 0x22e
at MpvTest.Views.MainWindow.InitializeComponent(Boolean) + 0x14
at MpvTest.App.OnFrameworkInitializationCompleted() + 0x41
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder, String[], ShutdownMode) + 0x4b
at MpvTest.Program.Main(String[]) + 0x21
The text was updated successfully, but these errors were encountered:
Using 11.0.0 release and building with PublishAot set to true, the text
: https://github.com
in MarkDownScrollViewer causes the application to crash. It seems any colon followed by a web link causes this crash when compiling with AOT.Starting a new Avalonia project and putting this
![image](https://private-user-images.githubusercontent.com/54194687/256117601-2761ab9b-bb0d-48de-ba07-67770f0c84ab.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzOTcyMzUsIm5iZiI6MTcyMTM5NjkzNSwicGF0aCI6Ii81NDE5NDY4Ny8yNTYxMTc2MDEtMjc2MWFiOWItYmIwZC00OGRlLWJhMDctNjc3NzBmMGM4NGFiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE5VDEzNDg1NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThiZmE4MWE1MGE3YTM1MWRmYmFiZjkyMGY0OTU1N2ZlOTYwMjZiZjI4ZWZhMzk4YTBiZWRhNjk3MWQ2OTlmOWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.6DHvbt0OeF0zZnpfXB1WbdqOtw_fzAVzSkjS_v9OMik)
in MainWindow.axaml along with setting PublishAot to true is what I did to produce the exception below
Exception Details
System.TypeInitializationException: A type initializer threw an exception. To determine which type, inspect the InnerException's StackTrace property.
---> System.PlatformNotSupportedException: Operation is not supported on this platform.
at System.Reflection.Assembly.GetCallingAssembly() + 0x5b
at Markdown.Avalonia.EmojiTable.LoadTxt() + 0x5c
at Markdown.Avalonia.EmojiTable..cctor() + 0x1e
at System.Runtime.CompilerServices.ClassConstructorRunner.EnsureClassConstructorRun(StaticClassConstructionContext*) + 0xc6
--- End of inner exception stack trace ---
at System.Runtime.CompilerServices.ClassConstructorRunner.EnsureClassConstructorRun(StaticClassConstructionContext*) + 0x167
at
System.Runtime.CompilerServices.ClassConstructorRunner.CheckStaticClassConstructionReturnNonGCStaticBase(StaticClassConstructionContext*, IntPtr) + 0xd
at Markdown.Avalonia.EmojiTable.TryGet(String, String&) + 0x19
at Markdown.Avalonia.Markdown.DoTextDecorations(String, Func`2) + 0x1e4
at Markdown.Avalonia.Markdown.g__RunSpanRest|74_0(String, Int32, Int32, Int32, List`1) + 0x159
at Markdown.Avalonia.Markdown.PrivateRunSpanGamut(String) + 0x4d
at Markdown.Avalonia.Markdown.d__78.MoveNext() + 0x1a4
at System.Collections.Generic.List`1.InsertRange(Int32, IEnumerable`1) + 0x120
at Markdown.Avalonia.Markdown.g__RunBlockRest|73_0(String, Int32, Int32, ParseStatus, Int32, List`1) + 0x154
at Markdown.Avalonia.Markdown.PrivateRunBlockGamut(String, ParseStatus) + 0x308
at Markdown.Avalonia.Markdown.Transform(String) + 0x3c
at Markdown.Avalonia.MarkdownScrollViewer.UpdateMarkdown() + 0x3b
at MpvTest.Views.MainWindow.!XamlIlPopulate(IServiceProvider, MainWindow) + 0x22e
at MpvTest.Views.MainWindow.InitializeComponent(Boolean) + 0x14
at MpvTest.App.OnFrameworkInitializationCompleted() + 0x41
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder, String[], ShutdownMode) + 0x4b
at MpvTest.Program.Main(String[]) + 0x21
The text was updated successfully, but these errors were encountered: