首页 > 其他分享 >UNO 的 SamplesApp.Skia.Gtk 丢失字体文件抛出空异常

UNO 的 SamplesApp.Skia.Gtk 丢失字体文件抛出空异常

时间:2023-09-21 09:04:56浏览次数:54  
标签:SamplesApp Xaml Gtk C# dll Windows UI Skia Uno

在运行 UNO 的 SamplesApp.Skia.Gtk 例子程序时,如果没有拷贝字体文件夹,导致字体丢失,将会在运行的时候抛出 NullReferenceException 空异常

抛出的异常堆栈大概如下

>	Uno.UI.dll!Windows.UI.Xaml.Documents.Inline.GetFont(string name = "ms-appx:///Assets/Fonts/uno-fluentui-assets.ttf#Symbols", Windows.UI.Text.FontWeight weight = {Windows.UI.Text.FontWeight}, Windows.UI.Text.FontStretch stretch = Undefined, Windows.UI.Text.FontStyle style = Normal) line 152	C#
 	Uno.UI.dll!Windows.UI.Xaml.Documents.Inline..cctor.AnonymousMethod__23_0(string nm = "ms-appx:///Assets/Fonts/uno-fluentui-assets.ttf#Symbols", Windows.UI.Text.FontWeight wt = {Windows.UI.Text.FontWeight}, Windows.UI.Text.FontStretch wh = Undefined, Windows.UI.Text.FontStyle sl = Normal) line 26	C#
 	Uno.Foundation.dll!Uno.Extensions.FuncMemoizeExtensions.AsMemoized.AnonymousMethod__0(string arg1 = "ms-appx:///Assets/Fonts/uno-fluentui-assets.ttf#Symbols", Windows.UI.Text.FontWeight arg2 = {Windows.UI.Text.FontWeight}, Windows.UI.Text.FontStretch arg3 = Undefined, Windows.UI.Text.FontStyle arg4 = Normal) line 159	C#
 	Uno.UI.dll!Windows.UI.Xaml.Documents.Inline.FontInfo.get() line 53	C#
 	Uno.UI.dll!Windows.UI.Xaml.Documents.Run.GetSegments() line 30	C#
 	Uno.UI.dll!Windows.UI.Xaml.Documents.Run.Segments.get() line 21	C#
 	Uno.UI.dll!Windows.UI.Xaml.Documents.InlineCollection.Measure(Windows.Foundation.Size availableSize = 20.0x32.0) line 68	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.TextBlock.MeasureOverride(Windows.Foundation.Size availableSize = 20.0x32.0) line 37	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.InnerMeasureCore(Windows.Foundation.Size availableSize = 20.0x32.0) line 99	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureCore(Windows.Foundation.Size availableSize = 20.0x32.0) line 78	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.DoMeasure(Windows.Foundation.Size availableSize = 20.0x32.0) line 245	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.Measure(Windows.Foundation.Size availableSize = 20.0x32.0) line 184	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureElement(Windows.UI.Xaml.UIElement view = {Windows.UI.Xaml.Controls.TextBlock}, Windows.Foundation.Size availableSize = 20.0x32.0) line 308	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureOverride(Windows.Foundation.Size availableSize = 20.0x32.0) line 228	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.InnerMeasureCore(Windows.Foundation.Size availableSize = 20.0x32.0) line 99	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureCore(Windows.Foundation.Size availableSize = 20.0x32.0) line 78	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.DoMeasure(Windows.Foundation.Size availableSize = 20.0x32.0) line 245	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.Measure(Windows.Foundation.Size availableSize = 20.0x32.0) line 184	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureElement(Windows.UI.Xaml.UIElement view = {Windows.UI.Xaml.Controls.FontIcon}, Windows.Foundation.Size availableSize = 20.0x32.0) line 308	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.Grid.InnerMeasureOverride(Windows.Foundation.Size availableSize = 20.0x32.0) line 1095	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.Grid.MeasureOverride(Windows.Foundation.Size availableSize = 20.0x32.0) line 1045	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.InnerMeasureCore(Windows.Foundation.Size availableSize = 20.0x49.0) line 99	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureCore(Windows.Foundation.Size availableSize = 20.0x49.0) line 78	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.DoMeasure(Windows.Foundation.Size availableSize = 20.0x49.0) line 245	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.Measure(Windows.Foundation.Size availableSize = 20.0x49.0) line 184	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureElement(Windows.UI.Xaml.UIElement view = {Windows.UI.Xaml.Controls.Grid}, Windows.Foundation.Size availableSize = 20.0x49.0) line 308	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.Grid.MeasureCell(Windows.UI.Xaml.UIElement child = {Windows.UI.Xaml.Controls.Grid}, Windows.UI.Xaml.Controls.Grid.CellUnitTypes rowHeightTypes = Star, Windows.UI.Xaml.Controls.Grid.CellUnitTypes columnWidthTypes = Pixel, bool forceRowToInfinity = false, double rowSpacing = 0, double columnSpacing = 0) line 498	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.Grid.MeasureCellsGroup(int cellsHead = 0, int cellCount = 2, double rowSpacing = 0, double columnSpacing = 0, bool ignoreColumnDesiredSize = false, bool forceRowToInfinity = false, ref Windows.UI.Xaml.Controls.Grid.CellCacheStackVector cellCacheVector = {Windows.UI.Xaml.Controls.Grid.CellCacheStackVector}) line 373	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.Grid.InnerMeasureOverride(Windows.Foundation.Size availableSize = ∞x49.0) line 1326	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.Grid.MeasureOverride(Windows.Foundation.Size availableSize = ∞x49.0) line 1045	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.InnerMeasureCore(Windows.Foundation.Size availableSize = ∞x49.0) line 99	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureCore(Windows.Foundation.Size availableSize = ∞x49.0) line 78	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.DoMeasure(Windows.Foundation.Size availableSize = ∞x49.0) line 245	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.Measure(Windows.Foundation.Size availableSize = ∞x49.0) line 184	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureElement(Windows.UI.Xaml.UIElement view = {Windows.UI.Xaml.Controls.Grid}, Windows.Foundation.Size availableSize = ∞x49.0) line 308	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureOverride(Windows.Foundation.Size availableSize = ∞x49.0) line 228	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.InnerMeasureCore(Windows.Foundation.Size availableSize = ∞x49.0) line 99	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureCore(Windows.Foundation.Size availableSize = ∞x49.0) line 78	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.DoMeasure(Windows.Foundation.Size availableSize = ∞x49.0) line 245	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.Measure(Windows.Foundation.Size availableSize = ∞x49.0) line 184	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureElement(Windows.UI.Xaml.UIElement view = {Windows.UI.Xaml.Controls.CheckBox}, Windows.Foundation.Size availableSize = ∞x49.0) line 308	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.Grid.MeasureCell(Windows.UI.Xaml.UIElement child = {Windows.UI.Xaml.Controls.CheckBox}, Windows.UI.Xaml.Controls.Grid.CellUnitTypes rowHeightTypes = Star, Windows.UI.Xaml.Controls.Grid.CellUnitTypes columnWidthTypes = Auto, bool forceRowToInfinity = false, double rowSpacing = 0, double columnSpacing = 0) line 498	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.Grid.MeasureCellsGroup(int cellsHead = 8, int cellCount = 10, double rowSpacing = 0, double columnSpacing = 0, bool ignoreColumnDesiredSize = false, bool forceRowToInfinity = false, ref Windows.UI.Xaml.Controls.Grid.CellCacheStackVector cellCacheVector = {Windows.UI.Xaml.Controls.Grid.CellCacheStackVector}) line 373	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.Grid.InnerMeasureOverride(Windows.Foundation.Size availableSize = 300.0x50.0) line 1272	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.Grid.MeasureOverride(Windows.Foundation.Size availableSize = 300.0x50.0) line 1045	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.InnerMeasureCore(Windows.Foundation.Size availableSize = 300.0x∞) line 99	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureCore(Windows.Foundation.Size availableSize = 300.0x∞) line 78	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.DoMeasure(Windows.Foundation.Size availableSize = 300.0x∞) line 245	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.Measure(Windows.Foundation.Size availableSize = 300.0x∞) line 184	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureElement(Windows.UI.Xaml.UIElement view = {Windows.UI.Xaml.Controls.Grid}, Windows.Foundation.Size availableSize = 300.0x∞) line 308	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.Grid.MeasureCell(Windows.UI.Xaml.UIElement child = {Windows.UI.Xaml.Controls.Grid}, Windows.UI.Xaml.Controls.Grid.CellUnitTypes rowHeightTypes = Auto, Windows.UI.Xaml.Controls.Grid.CellUnitTypes columnWidthTypes = Star, bool forceRowToInfinity = false, double rowSpacing = 0, double columnSpacing = 0) line 498	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.Grid.MeasureCellsGroup(int cellsHead = 0, int cellCount = 2, double rowSpacing = 0, double columnSpacing = 0, bool ignoreColumnDesiredSize = false, bool forceRowToInfinity = false, ref Windows.UI.Xaml.Controls.Grid.CellCacheStackVector cellCacheVector = {Windows.UI.Xaml.Controls.Grid.CellCacheStackVector}) line 373	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.Grid.InnerMeasureOverride(Windows.Foundation.Size availableSize = 300.0x200.0) line 1294	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.Grid.MeasureOverride(Windows.Foundation.Size availableSize = 300.0x200.0) line 1045	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.InnerMeasureCore(Windows.Foundation.Size availableSize = 300.0x200.0) line 99	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureCore(Windows.Foundation.Size availableSize = 300.0x200.0) line 78	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.DoMeasure(Windows.Foundation.Size availableSize = 300.0x200.0) line 245	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.Measure(Windows.Foundation.Size availableSize = 300.0x200.0) line 184	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureElement(Windows.UI.Xaml.UIElement view = {Windows.UI.Xaml.Controls.Grid}, Windows.Foundation.Size availableSize = 300.0x200.0) line 308	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureOverride(Windows.Foundation.Size availableSize = 300.0x200.0) line 228	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.Border.MeasureOverride(Windows.Foundation.Size availableSize = 300.0x200.0) line 35	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.InnerMeasureCore(Windows.Foundation.Size availableSize = 300.0x200.0) line 99	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureCore(Windows.Foundation.Size availableSize = 300.0x200.0) line 78	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.DoMeasure(Windows.Foundation.Size availableSize = 300.0x200.0) line 245	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.Measure(Windows.Foundation.Size availableSize = 300.0x200.0) line 184	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureElement(Windows.UI.Xaml.UIElement view = {Windows.UI.Xaml.Controls.Border}, Windows.Foundation.Size availableSize = 300.0x200.0) line 308	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.Grid.InnerMeasureOverride(Windows.Foundation.Size availableSize = 300.0x200.0) line 1095	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.Grid.MeasureOverride(Windows.Foundation.Size availableSize = 300.0x200.0) line 1045	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.InnerMeasureCore(Windows.Foundation.Size availableSize = 300.0x200.0) line 99	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureCore(Windows.Foundation.Size availableSize = 300.0x200.0) line 78	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.DoMeasure(Windows.Foundation.Size availableSize = 300.0x200.0) line 245	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.Measure(Windows.Foundation.Size availableSize = 300.0x200.0) line 184	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureElement(Windows.UI.Xaml.UIElement view = {Windows.UI.Xaml.Controls.Grid}, Windows.Foundation.Size availableSize = 300.0x200.0) line 308	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.Grid.MeasureCell(Windows.UI.Xaml.UIElement child = {Windows.UI.Xaml.Controls.Grid}, Windows.UI.Xaml.Controls.Grid.CellUnitTypes rowHeightTypes = Star, Windows.UI.Xaml.Controls.Grid.CellUnitTypes columnWidthTypes = Star | Pixel, bool forceRowToInfinity = false, double rowSpacing = 0, double columnSpacing = 0) line 498	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.Grid.MeasureCellsGroup(int cellsHead = 0, int cellCount = 2, double rowSpacing = 0, double columnSpacing = 0, bool ignoreColumnDesiredSize = false, bool forceRowToInfinity = false, ref Windows.UI.Xaml.Controls.Grid.CellCacheStackVector cellCacheVector = {Windows.UI.Xaml.Controls.Grid.CellCacheStackVector}) line 373	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.Grid.InnerMeasureOverride(Windows.Foundation.Size availableSize = 300.0x200.0) line 1326	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.Grid.MeasureOverride(Windows.Foundation.Size availableSize = 300.0x200.0) line 1045	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.InnerMeasureCore(Windows.Foundation.Size availableSize = 300.0x200.0) line 99	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureCore(Windows.Foundation.Size availableSize = 300.0x200.0) line 78	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.DoMeasure(Windows.Foundation.Size availableSize = 300.0x200.0) line 245	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.Measure(Windows.Foundation.Size availableSize = 300.0x200.0) line 184	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureElement(Windows.UI.Xaml.UIElement view = {Windows.UI.Xaml.Controls.Grid}, Windows.Foundation.Size availableSize = 300.0x200.0) line 308	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureOverride(Windows.Foundation.Size availableSize = 300.0x200.0) line 228	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.SplitView.MeasureOverride(Windows.Foundation.Size availableSize = 300.0x200.0) line 279	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.InnerMeasureCore(Windows.Foundation.Size availableSize = 300.0x200.0) line 99	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureCore(Windows.Foundation.Size availableSize = 300.0x200.0) line 78	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.DoMeasure(Windows.Foundation.Size availableSize = 300.0x200.0) line 245	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.Measure(Windows.Foundation.Size availableSize = 300.0x200.0) line 184	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureElement(Windows.UI.Xaml.UIElement view = {Windows.UI.Xaml.Controls.SplitView}, Windows.Foundation.Size availableSize = 300.0x200.0) line 308	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureOverride(Windows.Foundation.Size availableSize = 300.0x200.0) line 228	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.InnerMeasureCore(Windows.Foundation.Size availableSize = 300.0x200.0) line 99	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureCore(Windows.Foundation.Size availableSize = 300.0x200.0) line 78	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.DoMeasure(Windows.Foundation.Size availableSize = 300.0x200.0) line 245	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.Measure(Windows.Foundation.Size availableSize = 300.0x200.0) line 184	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureElement(Windows.UI.Xaml.UIElement view = {Uno.UI.Samples.Controls.SampleChooserControl}, Windows.Foundation.Size availableSize = 300.0x200.0) line 308	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureOverride(Windows.Foundation.Size availableSize = 300.0x200.0) line 228	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.InnerMeasureCore(Windows.Foundation.Size availableSize = 300.0x200.0) line 99	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureCore(Windows.Foundation.Size availableSize = 300.0x200.0) line 78	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.DoMeasure(Windows.Foundation.Size availableSize = 300.0x200.0) line 245	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.Measure(Windows.Foundation.Size availableSize = 300.0x200.0) line 184	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureElement(Windows.UI.Xaml.UIElement view = {SamplesApp.MainPage}, Windows.Foundation.Size availableSize = 300.0x200.0) line 308	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureOverride(Windows.Foundation.Size availableSize = 300.0x200.0) line 228	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.ContentPresenter.MeasureOverride(Windows.Foundation.Size size = 300.0x200.0) line 1100	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.InnerMeasureCore(Windows.Foundation.Size availableSize = 300.0x200.0) line 99	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureCore(Windows.Foundation.Size availableSize = 300.0x200.0) line 78	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.DoMeasure(Windows.Foundation.Size availableSize = 300.0x200.0) line 245	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.Measure(Windows.Foundation.Size availableSize = 300.0x200.0) line 184	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureElement(Windows.UI.Xaml.UIElement view = {Windows.UI.Xaml.Controls.ContentPresenter}, Windows.Foundation.Size availableSize = 300.0x200.0) line 308	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureOverride(Windows.Foundation.Size availableSize = 300.0x200.0) line 228	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.InnerMeasureCore(Windows.Foundation.Size availableSize = 300.0x200.0) line 99	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureCore(Windows.Foundation.Size availableSize = 300.0x200.0) line 78	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.DoMeasure(Windows.Foundation.Size availableSize = 300.0x200.0) line 245	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.Measure(Windows.Foundation.Size availableSize = 300.0x200.0) line 184	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureElement(Windows.UI.Xaml.UIElement view = {Windows.UI.Xaml.Controls.Frame}, Windows.Foundation.Size availableSize = 300.0x200.0) line 308	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureOverride(Windows.Foundation.Size availableSize = 300.0x200.0) line 228	C#
 	Uno.UI.dll!Windows.UI.Xaml.Controls.Border.MeasureOverride(Windows.Foundation.Size availableSize = 300.0x200.0) line 35	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.InnerMeasureCore(Windows.Foundation.Size availableSize = 300.0x200.0) line 99	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureCore(Windows.Foundation.Size availableSize = 300.0x200.0) line 78	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.DoMeasure(Windows.Foundation.Size availableSize = 300.0x200.0) line 245	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.Measure(Windows.Foundation.Size availableSize = 300.0x200.0) line 184	C#
 	Uno.UI.dll!Uno.UI.Xaml.Core.RootVisual.MeasureOverride(Windows.Foundation.Size availableSize = 300.0x200.0) line 90	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.InnerMeasureCore(Windows.Foundation.Size availableSize = 300.0x200.0) line 99	C#
 	Uno.UI.dll!Windows.UI.Xaml.FrameworkElement.MeasureCore(Windows.Foundation.Size availableSize = 300.0x200.0) line 78	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.DoMeasure(Windows.Foundation.Size availableSize = 300.0x200.0) line 245	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.MeasureVisualTreeRoot(Windows.Foundation.Size availableSize = 300.0x200.0) line 199	C#
 	Uno.UI.dll!Windows.UI.Xaml.UIElement.Measure(Windows.Foundation.Size availableSize = 300.0x200.0) line 179	C#
 	Uno.UI.dll!Windows.UI.Xaml.XamlRoot.RunMeasureAndArrange() line 95	C#
 	Uno.UI.dll!Windows.UI.Xaml.XamlRoot.ScheduleInvalidateMeasureOrArrange.AnonymousMethod__34_0() line 72	C#
 	Uno.UI.Dispatching.dll!Uno.UI.Dispatching.CoreDispatcher.InvokeOperation(Uno.UI.Dispatching.UIAsyncOperation operation = {Uno.UI.Dispatching.UIAsyncOperation}) line 373	C#
 	Uno.UI.Dispatching.dll!Uno.UI.Dispatching.CoreDispatcher.InvokeOperationSafe(Uno.UI.Dispatching.UIAsyncOperation operation = {Uno.UI.Dispatching.UIAsyncOperation}) line 337	C#
 	Uno.UI.Dispatching.dll!Uno.UI.Dispatching.CoreDispatcher.DispatchItems() line 299	C#
 	Uno.UI.Dispatching.dll!Uno.UI.Dispatching.CoreDispatcher.EnqueueNative.AnonymousMethod__41_0() line 40	C#
 	Uno.UI.Runtime.Skia.Gtk.dll!Uno.UI.Runtime.Skia.GtkHost.Run.AnonymousMethod__19() line 139	C#
 	GLibSharp.dll!GLib.Idle.IdleProxy.Handler()	
 	GtkSharp.dll!Gtk.Application.Run()	
 	Uno.UI.Runtime.Skia.Gtk.dll!Uno.UI.Runtime.Skia.GtkHost.Run() line 203	C#
 	SamplesApp.Skia.Gtk.dll!SkiaSharpExample.MainClass.Main(string[] args = {string[0]}) line 24	C#

此问题已在新的 UNO 版本修复,需要更新代码就可以自动修复

标签:SamplesApp,Xaml,Gtk,C#,dll,Windows,UI,Skia,Uno
From: https://www.cnblogs.com/lindexi/p/17719025.html

相关文章

  • 解决Failed to load module canberra-gtk-module错误
    在Ubuntu环境里,通过./triangulation1.png2.png命令运行高翔的ch7的triangulation程序时报错:Gtk-Message:09:10:26.571:Failedtoloadmodule"canberra-gtk-module"查看一下模块位置:locatelibcanberra-gtk-module/usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libcanb......
  • skia
    https://skia.org/docs/user/download/fetchskiaTobuildSkiaasastaticlibraryinabuilddirectorynamedout/Static:bin/gngenout/Static--args='is_official_build=true'TobuildSkiaasasharedlibrary(DLL)inabuilddirectorynamedo......
  • 【GTK】布局容器
    GTK提供了许多不同的容器组件,用户可以通过搭配不同的容器组件来控制子组件的布局方式。容器组件如下:GtkBoxGtkGridGtkRevealerGtkStackGtkOverlayGtkPanedGtkExpanderGtkFixed1、GtkBoxGtkBox会将子组件以水平或垂直的方式布局。在创建GtkBox容器传入的GtkOrientat......
  • 【GTK】Application Id
    ApplicationID一般是使用倒置的域名,如org.gnome.gedit。1、Appid的使用场景作为GtkApplication或者GApplication的入参,每个应用程序应该由唯一的AppId,这个AppId可以用来传递消息;在D-Bus中使用,Appid可以用于应用程序之间传递消息;作为.desktop文件的文件名,这个文件是用于......
  • 【GTK】在Windows下安装GTK
    1、下载MSYS2从MSYS2中下载安装包,并暗转MSYS2。2、打开MSYS2shell在MSYS2shell中运行以下命令:>pacman-Smingw-w64-x86_64-gtk4成功截图:......
  • ubuntu下gvim启动出现gtk warning Invalid input string
    问题:安装Ubuntu10.04LucidLynx后,GVim无法正常显示中文菜单。错误信息:引用:Gtk-WARNING**:Invalidinputstring原因:Ubuntu10.04LucidLynx默认安装将会把中文区域设置为zh_CN.utf8,而GVim能识别的中......
  • 跨平台GUI开发技术:QT,GTK+, C#(WinForm/WPF), Java(Swing/AWT/JavaFX), Electron, comp
    1.Compose-multiplatformJetbrian推出的跨全平台开发组件技术,android/ios/desktop(win,linux,mac)/web,目前生态完善中,还不够成熟,但有潜力,支持原生接口调用,kotlin作为主要语言。https://www.jetbrains.com/zh-cn/lp/compose-multiplatformhttps://github.com/JetBrains/compose-......
  • C#winform软件移植上linux的秘密,用GTK开发System.Windows.Forms
    国产系统大势所趋,如果你公司的winform界面软件需要在linux上运行,如果软件是用C#开发的,现在我有一个好的快速解决方案。世界第一的微软的MicrosoftVisualStudio,确实好用,C#开发起来确实效率高,不过微软的开发语言开发的软件的界面都是跟windows系统绑定的,现在.netcore已......
  • pyGTK实战(1)
    目录简介hello,world事件驱动简介PyGTK是一套用Python和C语言编写的GTK+GUI库的包装器。它是GNOME项目的一部分。它为用Python构建桌面应用程序提供了全面的工具。PyGObject是一个Python包,它为基于GObject的库(如GTK、GStreamer、WebKitGTK、GLib、GIO等)提供绑定。它支持Linux、......
  • Skia For Delphi 6.0 beta 1
    这个版本,将是与官方集成后的版本,Skia.pas都改成System.Skia了!爽!!期待Delphi12的发布! ......