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

[BUG] SkiaSharp.Views.WinUI.Native.BufferExtensions unhandled exception in previously working code. #3170

Open
1 task done
Braysoft opened this issue Feb 19, 2025 · 0 comments
Labels

Comments

@Braysoft
Copy link

Braysoft commented Feb 19, 2025

Description

Net 8.0 fails and now tested on Net 9.0 also fails.
My existing Store App AIIR works without issue locally and globally.When updating to certification it fails certification on a clean windows 11 machine with the following debug Exception thrown at 0x762B8FA4 (KernelBase.dll) in AIIR.exe: WinRT originate error - 0x80131534 : 'The type initializer for 'SkiaSharp.Views.WinUI.Native.BufferExtensions' threw an exception.'.
Unhandled exception at 0x7568C5B1 (combase.dll) in AIIR.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x1559AB40, 0x00000001).
I have TRACE through my code and all set up code works fine but Skiasharp fails to initialise.
I have also checked through the canvas drawing code with no offending code.
Oddly when i have the source code in visual studio I have no issues with running the code either in debug or release.
Because the issue only happens on a clean win11 machine I am debugging remotely into a clean win11 VM.I can not replicate the code in any other way.

Code

The best way to share code for larger projects is a link to a GitHub repository: https://github.com/user/repo/tree/bug-123

But, you can also share a short block of code here:

// some C# code here

You can also share some XAML:

<!-- xaml code here -->

Expected Behavior

Previous to windows updating and with minimal code updates from the previous version(all lines checked) I expected no issues.
I have tried updating skaisharp to latest version and no difference in behaviour.

Actual Behavior

Exception thrown at 0x762B8FA4 (KernelBase.dll) in AIIR.exe: WinRT originate error - 0x80131534 : 'The type initializer for 'SkiaSharp.Views.WinUI.Native.BufferExtensions' threw an exception.'.
Unhandled exception at 0x7568C5B1 (combase.dll) in AIIR.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x1559AB40, 0x00000001).

Version of SkiaSharp

3.116.0 (Current)

Last Known Good Version of SkiaSharp

2.88.9 (Previous)

IDE / Editor

Visual Studio (Windows)

Platform / Operating System

Windows

Platform / Operating System Version

windows 11 clean

Devices

windows 11 clean

Relevant Screenshots

No response

Relevant Log Output

Exception thrown at 0x762B8FA4 (KernelBase.dll) in AIIR.exe: WinRT originate error - 0x80131534 : 'The type initializer for 'SkiaSharp.Views.WinUI.Native.BufferExtensions' threw an exception.'.
Unhandled exception at 0x7568C5B1 (combase.dll) in AIIR.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x1559AB40, 0x00000001).

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: New
Development

No branches or pull requests

1 participant