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
[BUG] SKGLView on .NET MAUI is missing a handler (the return) #2838
Comments
it looks like it's back in the version 3.0.0-preview3.1 Did I dream that it was there before ? I don't think so. It used to be there with the btw 3.0.0-preview3.1 is crashing with that message:
|
.NET runtime in .NET 9.0 Preview 3 is broken since they removed some globalization code. For the time being, adding |
I'm using the .NET 8 stable release, not .NET 9 previews. Does that still apply ? |
Then it may be something different. On that note, not sure if SkiaSharp 3.0 Preview 3.1 is fully compatible with .NET 8. It seems like it is being developed for .NET 9. |
Well when you develop something specifically for .net9, your tfm won't be .net7. Not sure you are right on that one. |
I think the issue about the missing API is that you need to use the compatibility nuget for 2.x: https://github.com/mono/SkiaSharp/blob/release/2.x/source/SkiaSharp.Views.Maui/SkiaSharp.Views.Maui.Controls.Compatibility/AppHostBuilderExtensions.cs#L22 For 3.x, this API is no longer needed since the GL view is now part of the handlers: https://github.com/mono/SkiaSharp/blob/main/source/SkiaSharp.Views.Maui/SkiaSharp.Views.Maui.Controls/AppHostBuilderExtensions.cs#L16 |
Description
There is no more overload of UseSkiaSharp(true), and the handler for SKGLView is not registered anymore.
This is a regression, or is there a breaking change I missed ?
skiasharp maui 2.88.8
my maui ios+android app is net8
I verified the source code on github, and I do see the handler being registered.
But when I decompile UseSkiaSharp with rider on get to the ios source code, there is no such registration.
Bad release ?
Should be that code instead :(
https://github.com/mono/SkiaSharp/blob/main/source/SkiaSharp.Views.Maui/SkiaSharp.Views.Maui.Controls/AppHostBuilderExtensions.cs
Code
Decompiled 2.88.8, not same code as in https://github.com/mono/SkiaSharp/blob/main/source/SkiaSharp.Views.Maui/SkiaSharp.Views.Maui.Controls/AppHostBuilderExtensions.cs
Expected Behavior
No response
Actual Behavior
No response
Version of SkiaSharp
Other (Please indicate in the description)
Last Known Good Version of SkiaSharp
Other (Please indicate in the description)
IDE / Editor
Other (Please indicate in the description)
Platform / Operating System
Windows
Platform / Operating System Version
Devices
No response
Relevant Screenshots
No response
Relevant Log Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: