katagaki / IllustMate

Simple photo organizer for iOS written in SwiftUI.
5 stars 0 forks source link

Share extension can crash randomly #42

Open katagaki opened 9 months ago

katagaki commented 9 months ago

There are 2 crashes: one due to importing from the background thread (this has been temporarily mitigated by importing from the main thread, which freezes the UI), and another crash that typically occurs when importing an image with a 4K resolution (or somewhere around there).

Background thread crash

Appears to be fixed using model context in background thread and update UI using Task

Large image crash

Appears to be fixed for single image imports (tested with 11MB image)