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

Crash in ImageSource.init(image:) #188

Open
sokalyambda opened this issue Oct 25, 2022 · 0 comments
Open

Crash in ImageSource.init(image:) #188

sokalyambda opened this issue Oct 25, 2022 · 0 comments

Comments

@sokalyambda
Copy link

Hello! Recently I've got plenty strange crashes
Screenshot 2022-10-25 at 20 34 17
I can't reproduce this issue by myself but there are some app users faced this issue. I receive this crashlytics report and also checked xcode crash logs. It crashes exactly when we're trying to force unwrap this optional:

loadThumbnailCGImage: { (maxPixelSize) -> CGImage in
        return ImageTool.makeResizedCGImage(
          from: image.cgImage!,
          maxPixelSizeHint: maxPixelSize
        )!

Its kind of rare bug but some users're continuously facing this issue. May you please make some suggestions what could it be? I just pass UIImage chosen from gallery to this initialiser. Almost all the time it works fine but not always.. Thank you!

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

No branches or pull requests

1 participant