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

fix: Use Rgba8888 for Skia/macOS/metal #18231

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

spouliot
Copy link
Contributor

GitHub Issue (If applicable): closes #

ScottPlot/ScottPlot#4257

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

Metal-based rendering was using Bgra888 and copying Rgba888 memory surface into it is swapping the R and B channels.

What is the new behavior?

Metal-based rendering was using Rgba888

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

@unodevops
Copy link
Contributor

🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-18231/index.html

@unodevops
Copy link
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-18231/index.html

@nventive-devops
Copy link
Contributor

The build 140214 found UI Test snapshots differences: android-28-net8: 25, android-28-net8-Snap: 56, ios: 7, ios-Snap: 58, skia-gtk-screenshots: 1749, skia-linux-screenshots: 1627, skia-windows-screenshots: 1494, wasm: 194, wasm-automated-net8.0-UWP-Default-automated: 52, wasm-automated-net8.0-UWP-RuntimeTests-0: 0, wasm-automated-net8.0-UWP-RuntimeTests-1: 0, wasm-automated-net8.0-UWP-RuntimeTests-2: 0, wasm-automated-net8.0-WinUI-Benchmarks-automated: 0, wasm-automated-net8.0-WinUI-RuntimeTests-0: 0, wasm-automated-net8.0-WinUI-RuntimeTests-1: 0, wasm-automated-net8.0-WinUI-RuntimeTests-2: 0

Details
  • android-28-net8: 25 changed over 829

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • CommandBar_LongTitle_Validation_Uno_UI_Samples_Content_UITests_CommandBar_CommandBar_LongTitle
    • CommandBar_LongTitle_Validation_CommandBar_-_LongTitle_-_1_-_Initial_State
    • Detereminate_ProgressRing_Validation75_[#FF0000_#008000_#008000_#008000]_Progress-Ring-Value-75
    • ListView_ListViewWithHeader_InitializesTest_SamplesApp_Windows_UI_Xaml_Controls_ListView_HorizontalListViewGrouped
    • ListView_SelectedItems_SamplesApp_Windows_UI_Xaml_Controls_ListView_ListViewSelectedItems
    • SequentialAnimations_SamplesApp_Windows_UI_Xaml_Media_Animation_SequentialAnimationsPage
    • SelectionTest_UITests_Microsoft_UI_Xaml_Controls_RadioButtonsTests_RadioButtonsPage
    • When_Basic_UITests_Shared_Windows_UI_Input_GestureRecognizerTests_RightTappedTests
    • When_NoSelectionWithItemClick_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
    • When_MultipleSelectionWithoutItemClick_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
    • When_TapInListView_Then_TriggerClickAndSelection_UITests_Windows_UI_Xaml_Controls_SwipeControlTests_SwipeControl_ListView_ItemClick
    • Detereminate_ProgressRing_Validation25_[#FF0000_#008000_#FF0000_#FF0000]_Progress-Ring-Value-25
    • When_Parent_PointerMoved_After_drag_on_non-scrolling_ScrollViewer
    • When_Parent_PointerMoved_After_drag_on_ScrollViewer_-_touch
    • CommandBar_LongTitle_Validation_CommandBar_-_LongTitle_-_2_-_Orientation_Landscape
    • Detereminate_ProgressRing_Validation50_[#FF0000_#008000_#008000_#FF0000]_Progress-Ring-Value-50
    • ItemsControl_LoadCount_UITests_Shared_Windows_UI_Xaml_FrameworkElementTests_ItemsControl_Loaded
    • ProgressRing_IsEnabled_Running_UITests_Windows_UI_Xaml_Controls_ProgressRing_WindowsProgressRing_GH1220
    • ProgressRing_Visibility_Collapsed_UITests_Windows_UI_Xaml_Controls_ProgressRing_WindowsProgressRing_GH1220
    • ScrollViewer_WhenAsync_RunIdleAndCompletesWithNonIntermediate_UITests_Shared_Windows_UI_Xaml_Controls_ScrollViewerTests_ScrollViewer_UpdatesMode
  • android-28-net8-Snap: 56 changed over 1065

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Border_BorderRightwithmargins_Uno_UI_Samples_UITests_BorderTestsControl_BorderRightwithmargins
    • Default_SamplesApp_Wasm_Windows_UI_Xaml_Controls_ListView_ListView_IsSelected_SamplesApp_Wasm_Windows_UI_Xaml_Controls_ListView_ListView_IsSelected
    • Image_UITests_Windows_UI_Xaml_Controls_ImageTests_SvgImageSource_Basic_UITests_Windows_UI_Xaml_Controls_ImageTests_SvgImageSource_Basic
    • TabView_UITests_Microsoft_UI_Xaml_Controls_TabViewTests_TabViewPage_UITests_Microsoft_UI_Xaml_Controls_TabViewTests_TabViewPage
    • TeachingTip_UITests_Microsoft_UI_Xaml_Controls_TeachingTipTests_TeachingTipPage_UITests_Microsoft_UI_Xaml_Controls_TeachingTipTests_TeachingTipPage
    • Buttons_Overlapped_Buttons_UITests_Shared_Windows_UI_Xaml_Controls_Button_Overlapped_Buttons
    • ListView_ListView_With_ListViews_Count_Measure_UITests_Shared_Windows_UI_Xaml_Controls_ListView_ListView_With_ListViews_Count_Measure
    • TextBox_TextBox_Disabled_UITests_Shared_Windows_UI_Xaml_Controls_TextBoxTests_TextBox_Disabled
    • ListView_ListViewSelectedItems_SamplesApp_Windows_UI_Xaml_Controls_ListView_ListViewSelectedItems
    • MediaPlayerElement_Mini_player_UITests_Shared_Windows_UI_Xaml_Controls_MediaPlayerElement_MediaPlayerElement_Minimal
    • TextBox_TextBox_BeforeTextChanging_UITests_Shared_Windows_UI_Xaml_Controls_TextBoxTests_TextBox_BeforeTextChanging
    • Automation_UITests_Shared_Windows_UI_Xaml_Automation_AutomationProperties_Name_UITests_Shared_Windows_UI_Xaml_Automation_AutomationProperties_Name
    • Border_BorderCenteredwithmargins_Uno_UI_Samples_UITests_BorderTestsControl_BorderCenteredwithmargins
    • MediaPlayerElement_Sources_UITests_Shared_Windows_UI_Xaml_Controls_MediaPlayerElement_MediaPlayerElement_Sources
    • MediaPlayerElement_Using_3gp_UITests_Shared_Windows_UI_Xaml_Controls_MediaPlayerElement_MediaPlayerElement_3gp_Extension
    • MediaPlayerElement_Using_mp3_Audio_only_UITests_Shared_Windows_UI_Xaml_Controls_MediaPlayerElement_MediaPlayerElement_Mp3_Extension
    • MediaPlayerElement_Using_ogg_UITests_Shared_Windows_UI_Xaml_Controls_MediaPlayerElement_MediaPlayerElement_Ogg_Extension
    • TextBlock_UITests_Shared_Windows_UI_Xaml_Controls_TextBlockControl_TextBlock_Layout_UITests_Shared_Windows_UI_Xaml_Controls_TextBlockControl_TextBlock_Layout
    • ListView_HorizontalListView_Templates_SamplesApp_Windows_UI_Xaml_Controls_ListView_HorizontalListView_Templates
    • MUX_UITests_Shared_Microsoft_UI_Xaml_Controls_TreeViewTests_TreeViewPage_UITests_Shared_Microsoft_UI_Xaml_Controls_TreeViewTests_TreeViewPage
  • ios: 7 changed over 267

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • SequentialAnimations_SamplesApp_Windows_UI_Xaml_Media_Animation_SequentialAnimationsPage
    • When_SingleSelectionWithItemClick_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
    • ProgressRing_Visibility_Collapsed_UITests_Windows_UI_Xaml_Controls_ProgressRing_WindowsProgressRing_GH1220
    • ProgressRing_IsEnabled_Running_UITests_Windows_UI_Xaml_Controls_ProgressRing_WindowsProgressRing_GH1220
    • When_SingleSelectionWithoutItemClick_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
    • When_NoSelection_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
    • ListView_SelectedItems_SamplesApp_Windows_UI_Xaml_Controls_ListView_ListViewSelectedItems
  • ios-Snap: 58 changed over 1056

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Brushes_PathImageBrushfill_Uno_UI_Samples_UITests_ImageBrushTestControl_PathImageBrushfill
    • Brushes_Uno_UI_Samples_Samples_Shared_Content_UITests_ImageBrushInList_Uno_UI_Samples_Samples_Shared_Content_UITests_ImageBrushInList
    • GridView_GenericApp_Views_Samples_Shared_Content_UITests_GridViewGrouped_GenericApp_Views_Samples_Shared_Content_UITests_GridViewGrouped
    • Default_UITests_Shared_Windows_UI_Xaml_Controls_ListView_ListView_ObservableCollection_Unused_Space_UITests_Shared_Windows_UI_Xaml_Controls_ListView_ListView_ObservableCollection_Unused_Space
    • ListView_ListViewGroupedChanging_SamplesApp_Windows_UI_Xaml_Controls_ListView_ListViewGroupedChanging
    • MUX_MUXControlsTestApp_DropDownButtonPage_MUXControlsTestApp_DropDownButtonPage
    • SwipeControl_MUXControlsTestApp_SwipeControlPage2_MUXControlsTestApp_SwipeControlPage2
    • Image_ImageSourceStream_Uno_UI_Samples_UITests_ImageTestsControl_ImageSourceStream
    • Keyboard_UITests_Windows_UI_Xaml_Input_Keyboard_Keyboard_Events_UITests_Windows_UI_Xaml_Input_Keyboard_Keyboard_Events
    • Default_SamplesApp_Wasm_Windows_UI_Xaml_Controls_ListView_ListView_IsSelected_SamplesApp_Wasm_Windows_UI_Xaml_Controls_ListView_ListView_IsSelected
    • Default_Uno_UI_Samples_Content_UITests_WebView_WebView_AnchorNavigation_Uno_UI_Samples_Content_UITests_WebView_WebView_AnchorNavigation
    • TextBlock_TextBlock_FixedWidth_With_DataBound_Run_Uno_UI_Samples_Content_UITests_TextBlockControl_TextBlock_FixedWidth_With_DataBound_Run
    • TextBlock_TextBlockMultilineInStarStackPanel_Uno_UI_Samples_Content_UITests_TextBlockControl_TextBlockMultilineInStarStackPanel
    • Focus_UITests_Windows_UI_Xaml_FocusTests_Focus_FocusCycle_UITests_Windows_UI_Xaml_FocusTests_Focus_FocusCycle
    • Icons_UITests_Microsoft_UI_Xaml_Controls_ImageIconTests_ImageIconPage_UITests_Microsoft_UI_Xaml_Controls_ImageIconTests_ImageIconPage
    • Icons_UITests_Shared_Windows_UI_Xaml_Controls_BitmapIconTests_BitmapIcon_Foreground_UITests_Shared_Windows_UI_Xaml_Controls_BitmapIconTests_BitmapIcon_Foreground
    • Image_Image_Stretch_None_ScrollViewer_Uno_UI_Samples_UITests_ImageTestsControl_Image_Stretch_None_Containers
    • ListView_ListView_Image_SamplesApp_Windows_UI_Xaml_Controls_ListView_ListView_Image
    • ColorPicker_ColorPickerSample_UITests_Microsoft_UI_Xaml_Controls_ColorPickerTests_ColorPickerSample
    • Image_Uno_UI_Samples_UITests_Image_Image_Stretch_Alignment_Bigger_Uno_UI_Samples_UITests_Image_Image_Stretch_Alignment_Bigger
  • skia-gtk-screenshots: 1749 changed over 2216

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AppBarButtonWithIconTest.png-dark
    • ApplicationViewSpanningRectsPage.png-dark
    • ApplicationViewSpanningRectsPage.png
    • Application_Window lifecycle events.png
    • AppWindowPositionAndSize.png-dark
    • AppXamlDefinedResources.png-dark
    • AppWindowPositionAndSize.png
    • Attributed_text_Supserscript.png-dark
    • Arrange_Performance01.png
    • AutoBorderStretchwithtopmargin.png-dark
    • AutoBorderStretchwithbottommargin.png
    • AutoSuggestBoxChosenSuggestion.png
    • BasicAcrylicBrushTest.png-dark
    • AutoSuggestBox_Icons.png
    • Border_Corner_Overlap.png-dark
    • BasicEnability.png
    • Border_Corner_Overlap.png
    • Basics.png-dark
    • Canvas_ZIndex.png
    • BorderImageBrushRelativeTransform.png
  • skia-linux-screenshots: 1627 changed over 2216

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedIconPage.png
    • AppBarButtonTest.png
    • AppBarButtonWithIconTest.png
    • AppBarToggleButtonTest.png-dark
    • ApplicationViewMode.png
    • ApplicationViewSpanningRectsPage.png
    • Application_Window lifecycle events.png-dark
    • AppWindowPresenters.png
    • AppXamlDefinedResources.png-dark
    • Attributed_text_Supserscript.png
    • AuthenticationBroker_Demo.png-dark
    • AutomationProperties_Name.png-dark
    • AutomationProperties_Name.png
    • Battery.png
    • BeginTime_MultipleAnimations.png-dark
    • BitmapIcon_Sizing.png
    • BitmapImage_vs_SvgImageSource.png-dark
    • Border_AntiAlias.png-dark
    • Border_AntiAlias.png
    • Border_CornerRadius_Clipping.png-dark
  • skia-windows-screenshots: 1494 changed over 2216

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AppBarButtonWithIconTest.png-dark
    • ApplicationViewMode.png-dark
    • ApplicationViewSpanningRectsPage.png-dark
    • AppWindowClosing.png-dark
    • AppXamlDefinedResources.png-dark
    • Arrange_Performance01.png
    • Attributed_text_Simple.png
    • AutoBorderStretchwithleftmargin.png-dark
    • AutoBorderStretchwithtopmargin.png-dark
    • AutoBorderStretchwithtopmargin.png
    • AutoSuggestBox_BitmapIcon.png-dark
    • AutoSuggestBox_BitmapIcon.png
    • BenchmarkDotNet.png-dark
    • BorderCenteredwithmargins.png-dark
    • Border_AntiAlias.png-dark
    • Border_CornerRadius_Toggle.png-dark
    • Border_CornerRadius_Toggle.png
    • Border_With_Off_Centre_ScaleTransform.png-dark
    • Button_IsEnabled_Automated.png-dark
    • CenteredGridinGridwiththreefixedsizechildren.png
  • wasm: 194 changed over 1043

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • GenericApp.Views.Content.UITests.ImageBrushTestControl.ImageBrush_UniformToFill
    • initial_state
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ComboBox.ComboBox_SelectedItem
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewGroupedEmpty
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListView_BoundSelectedItem
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListView_WithScrollViewer
    • UITests.Shared.Windows_UI_Xaml_Controls.ImageTests.Image_ImageSource_PixelSize
    • UITests.Windows_UI_Xaml_Controls.CalendarView.CalendarView_Theming
    • UITests.Windows_UI_Xaml_Controls.Repeater.StackLayout_Simple
    • UITests.Windows_UI_Xaml_Controls.Repeater.UniformGridLayout_Simple
    • MUXControlsTestApp.RadialGradientBrushPage
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewResizable
    • UITests.Shared.Windows_UI_Xaml_Controls.Button.Button_Events
    • UITests.Shared.Windows_UI_Xaml_Controls.Button.Button_UseUWPDefaultStyles
    • UITests.Windows_UI_Xaml_Controls.CommandBar.Background.CommandBar_Background_Frame
    • UITests.Windows_UI_Xaml_Controls.ListView.ListViewTemplateRootIsContainer
    • UITests.Windows_UI_Xaml_Controls.ListView.ListView_DisplayMemberPath
    • UITests.Windows_UI_Xaml_Controls.ListView.ListView_DuplicateItem
    • MUXControlsTestApp.SwipeControlPage2
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ComboBox.ComboBox_CornerRadius
  • wasm-automated-net8.0-UWP-Default-automated: 52 changed over 1945

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Brushes_ImageBrushChangingCornerRadius_Uno_UI_Samples_UITests_ImageBrushTestControl_ImageBrushChangingCornerRadius
    • ComboBox_UITests_Shared_Windows_UI_Xaml_Controls_ComboBox_ComboBox_DropDownPlacement_UITests_Shared_Windows_UI_Xaml_Controls_ComboBox_ComboBox_DropDownPlacement
    • Focus_UITests_Windows_UI_Xaml_FocusTests_Focus_FocusState_UITests_Windows_UI_Xaml_FocusTests_Focus_FocusState
    • Default_SamplesApp_Wasm_Windows_UI_Xaml_Controls_ListView_ListView_IsSelected_SamplesApp_Wasm_Windows_UI_Xaml_Controls_ListView_ListView_IsSelected
    • Default_StrokeThickness_MyEllipse
    • Focus_UITests_Windows_UI_Xaml_FocusTests_Focus_VisualStates_UITests_Windows_UI_Xaml_FocusTests_Focus_VisualStates
    • Focus_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_FocusDirection_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_FocusDirection
    • CommandBar_CommandBar_LongTitle_Navigation_UITests_Windows_UI_Xaml_Controls_CommandBar_LongTitle_CommandBar_Frame
    • Default_StrokeThickness_MyPolyline
    • Default_StrokeThickness_MyRect
    • Default_StrokeThickness_MyPolygon
    • Expander_WinUIExpanderPage_UITests_Shared_Microsoft_UI_Xaml_Controls_ExpanderTests_WinUIExpanderPage
    • ListView_ListViewSelectedItems_SamplesApp_Windows_UI_Xaml_Controls_ListView_ListViewSelectedItems
    • CommandBar_BackGesture_Uno_UI_Samples_Content_UITests_CommandBar_CommandBar_BackGesture
    • MediaPlayerElement_Mini_player_UITests_Shared_Windows_UI_Xaml_Controls_MediaPlayerElement_MediaPlayerElement_Minimal
    • MediaPlayerElement_Sources_UITests_Shared_Windows_UI_Xaml_Controls_MediaPlayerElement_MediaPlayerElement_Sources
    • MediaPlayerElement_Using_3gp_UITests_Shared_Windows_UI_Xaml_Controls_MediaPlayerElement_MediaPlayerElement_3gp_Extension
    • MediaPlayerElement_Using_mp3_Audio_only_UITests_Shared_Windows_UI_Xaml_Controls_MediaPlayerElement_MediaPlayerElement_Mp3_Extension
    • CommandBar_CommandBar_BackButtonImage_UITests_Windows_UI_Xaml_Controls_CommandBar_BackButtonImage_CommandBar_Frame
    • CommandBar_CommandBar_BackButtonTitle_UITests_Windows_UI_Xaml_Controls_CommandBar_BackButtonTitle_CommandBar_Frame
  • wasm-automated-net8.0-UWP-RuntimeTests-0: 0 changed over 1

  • wasm-automated-net8.0-UWP-RuntimeTests-1: 0 changed over 1

  • wasm-automated-net8.0-UWP-RuntimeTests-2: 0 changed over 1

  • wasm-automated-net8.0-WinUI-Benchmarks-automated: 0 changed over 1

  • wasm-automated-net8.0-WinUI-RuntimeTests-0: 0 changed over 1

  • wasm-automated-net8.0-WinUI-RuntimeTests-1: 0 changed over 1

  • wasm-automated-net8.0-WinUI-RuntimeTests-2: 0 changed over 1

@MartinZikmund MartinZikmund merged commit 340ed62 into master Sep 18, 2024
102 checks passed
@MartinZikmund MartinZikmund deleted the dev/spouliot/scottplot-4257 branch September 18, 2024 09:29
@agneszitte
Copy link
Contributor

We would need to test these changes on a Mac intel to decide if the changes are ok to backport to 5.4

@ArchieCoder
Copy link
Contributor

@spouliot @agneszitte Thanks for fixing this issue, I was not aware. Regarding the backport, does it mean the fix will be available in a future big update? 5.4.5 was released yesterday. I don't know the merge structure.

@jeromelaban
Copy link
Member

@ArchieCoder We have yet to validate the change, but you can validate that it does what you need using 5.5-dev builds.

@ArchieCoder
Copy link
Contributor

@spouliot I tested with 5.5.0-dev.66 and I have the same effect as before (screenshot shows the app and the global.json)

Screenshot 2024-09-27 at 10 29 08 AM

@spouliot
Copy link
Contributor Author

Unexpected. I'll check if 5.5.0-dev.66 has the fix...

Just in case, did you do a clean after updating ? are you using a arm64 or Intel Mac ? thanks!

@spouliot
Copy link
Contributor Author

So looking into 5.5.0-dev.66 @ https://nuget.info/packages/Uno.Sdk/5.5.0-dev.66
points to UnoVersion* | 5.5.0-dev.512, meaning https://nuget.info/packages/Uno.WinUI/5.5.0-dev.512
which points to commit 0f422bf
which is newer than my fix 0dfe51e
so it should be included in your build.

Make sure a restore was made, just in case. I'll double check it on my side asap...

@ArchieCoder
Copy link
Contributor

@spouliot How do I clean or do a restore? I don't even see this in VS Code. I deleted the folders obj/bin. It had no effect. I have arm64.

@spouliot
Copy link
Contributor Author

How do I clean or do a restore?

@ArchieCoder usually dotnet restore [1] .

I don't even see this in VS Code.

That's done automatically by our VS Code extension - so that should not be an issue.

I have arm64.

Thanks, I'll be checking stuff on my side...

[1] but nuget restore or msbuild /r are older ways to restore (but don't use them anymore).

@spouliot
Copy link
Contributor Author

@ArchieCoder I can duplicate with the same packages... 😞 weird

@ArchieCoder
Copy link
Contributor

@spouliot sad for the bug but happy that you see the same thing

@agneszitte
Copy link
Contributor

agneszitte commented Oct 3, 2024

@ArchieCoder I can duplicate with the same packages... 😞 weird

@spouliot that means that more fixes will be needed for ScottPlot/ScottPlot#4257 ?

@spouliot
Copy link
Contributor Author

spouliot commented Oct 3, 2024

@spouliot that means that more fixes will be needed for ScottPlot/ScottPlot#4257 ?

@agneszitte yes

@spouliot
Copy link
Contributor Author

spouliot commented Oct 4, 2024

Ok, so previous, similar issues have tinted my glasses. Unlike them this happens on both software and hardware(metal) rendering - which otherwise are working normally.

Still the error does not seems to come from ScottPlot. Took m a while to convince myself but I can now duplicate the issue with other samples that, like ScottPlot, also use SKXamlCanvas.

Note: I can't be 100% sure but I probably executed the Catalyst (instead of desktop) version of the app when testing my previous fix :-(

@spouliot
Copy link
Contributor Author

spouliot commented Oct 4, 2024

Could be related to mono/SkiaSharp#2918
c.c. @Youssef1313

@Youssef1313
Copy link
Member

@spouliot Just to be sure, could you actually be hitting the SkiaSharp bug, then your fix will break when run against fixed SkiaSharp version?

IIRC, the version we run on is 2.88.7 which doesn't have the fix, I think?

@Youssef1313
Copy link
Member

We need to align our usages everywhere, really. Otherwise it's getting too problematic

@spouliot
Copy link
Contributor Author

spouliot commented Oct 4, 2024

IIRC, the version we run on is 2.88.7 which doesn't have the fix, I think?

I'm running with 2.88.8 but I'll double check if the fix is present (or not).

We need to align our usages everywhere, really. Otherwise it's getting too problematic

Yes. There's some platforms that only support some format(s), but most do support whatever is requested.

@Youssef1313
Copy link
Member

Per release notes, it seems the fix is included in 2.88.9 p1.1

https://github.com/mono/SkiaSharp/releases/tag/v2.88.9-preview.1.1

@spouliot
Copy link
Contributor Author

spouliot commented Oct 7, 2024

So 2.88.9 p1.1 is the fix... (compiled from git)
I'll review if other of my local changes are needed since there's a mix of surface types.

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

Successfully merging this pull request may close these issues.

8 participants