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] iOS app throws the unable to convert skiasharp.views.maui.handlers.skcanvasviewhandler to uikit.uiview and then app is crashed #3140

Open
1 task done
safvanmansuri-cygnet opened this issue Jan 15, 2025 · 0 comments
Labels

Comments

@safvanmansuri-cygnet
Copy link

Description

Our iOS app only supports the UIInterfaceOrientation.LandscapeLeft, UIInterfaceOrientation.LandscapeRight Orientation.
But if we keep the device in Portrait mode and try to capture the image, the app throws the above-mentioned error and then app crashes.

Code

var cts = new CancellationTokenSource();
cts.CancelAfter(TimeSpan.FromMinutes(5));
await MediaGallery.CapturePhotoAsync(cts.Token);

Expected Behavior

The app should not crash.

Actual Behavior

When we support only landscape mode and try to capture images on iOS in portrait mode, the app crashes.

Version of SkiaSharp

2.88.8 (Deprecated)

Last Known Good Version of SkiaSharp

2.88.9 (Previous)

IDE / Editor

Visual Studio (macOS)

Platform / Operating System

iOS

Platform / Operating System Version

iPadOS 18.2.1

Devices

iPad 10th Gen

Relevant Screenshots

No response

Relevant Log Output

No response

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