Skip to content

Crash in ImageSource.init(image:) #188

@sokalyambda

Description

@sokalyambda

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions