-
Notifications
You must be signed in to change notification settings - Fork 539
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
Using SKSwapChainPanel nuget package V3-Preview 2.1 in WinUI3 Throws an Exception: AccessViolationException #2803
Comments
You should not install any other ANGLE library - it is included in the package. Let me know if removing ANGLE and rebuilding after deleting the bin/obj fixes this. |
I'm running into the same problem. All I did was: create a new WinUI-project (in this case a Uno-App), add the
Then I get the exact same error as mentioned above. |
Thanks @AmitParmar2005 - but that does not seem to help in my case. I don't get the |
Try the attached zip file. Its very simple working sample. Let me know if you still have any issues. |
That works here, too. But I don't get it to work together with Uno-platform. |
I am not sure about Uno-Platform. I never worked on it. I will check it out and get back to you. |
Awesome, thanks! |
@TopperDEL are you able to create a sample and more info on how you are using Uno? I have not really been working on Uno views much these days, so maybe the Uno team has more info. @jeromelaban thoughts? |
I just created a new Uno-App (5.2) and tried to add My previous attempt was with the previous Uno-version, that where not single-prject-based. I could add the Skia-prerelease-version - but maybe it led to my issue during runtime, as it got mixed up with the binaries or so? @jeromelaban: Do you know if it would be possible (and how) to use SkiaSharp-preview-version (3.0.0-*) together with a Uno-app (5.2)? |
Uno Platform 5.2 is not compatible with SkiaSharp v3, but 5.3 will be. You can try it out with by upgrading to the latest prerelease bits. Overall though, |
Thanks, @jeromelaban! Then it is not of immediate use for me as I need to target Windows and macOS. Let's see how #16621 goes. :) |
Description
Hi Friends,
First of all thank you so much for porting SKSwapChainPanel to WinUI3. I have been waiting for it for very long time.
To test new functionalities, I created a simple program which uses SKSwapChainPanel. I have installed Skiasharp.Views.WinUI (3.0.0-preview 2.1) nuget package. But, when I run the application, I get System.AccessViolationException: 'Attempted to read or write protected memory.
Seems, I have installed all required packages.
I have also build and install angle with vcpkg. Without any luck.
Can somebody please help me what I am missing here? Please let me know if you want me to upload project.
Thanks and Regards,
Amit
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
I should not throw an expception
Actual Behavior
Throws an exception
Version of SkiaSharp
3.x (Alpha)
Last Known Good Version of SkiaSharp
2.88.2 (Previous)
IDE / Editor
Visual Studio (Windows)
Platform / Operating System
Windows
Platform / Operating System Version
Windows 10
Devices
Windows 10 Laptop
Relevant Screenshots
No response
Relevant Log Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: