Skip to content

improve memory consumption while image processing #2681

Open
deltachat/deltachat-ios
#2020
@cyBerta

Description

@cyBerta

Using the current iOS app 1.22.1 with core 1.60.0 an image of 9.5 mb sent by deltachat consumes more than 250 MB RAM.
This leads to crashes of the share extension app as described here deltachat/deltachat-ios#1330.

I wonder if the image processing can be memory optimized.
Moreover it would help if there was an API to define a fixed memory limit an image processing task can allocate and if it exceeds to raise an error, the UI can catch. This way we could avoid the situation that iOS throws an EXC_RESOURCE RESOURCE_TYPE_MEMORY exception, which can't be handled by try/catch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions