Thanks to visit codestin.com
Credit goes to github.com

Skip to content

With kim 0.25, memory error #123

@ravenfeld

Description

@ravenfeld

I upgraded to Kim 0.25, and now I'm getting a memory error on Android phones.
I've gone back to 0.24, which is working fine for now.

I think it's Android InputStream Byte Reader for Android devices below 13.
It works fine with my version, but you rejected it because it was taken from Kotlin.


java.lang.OutOfMemoryError: Failed to allocate a 402636816 byte allocation with 50331648 free bytes and 182MB until OOM, target footprint 261441248, growth limit 402653184
            at com.ashampoo.kim.output.ByteArrayByteWriter.ensureCapacity(ByteArrayByteWriter.kt:56)
            at com.ashampoo.kim.output.ByteArrayByteWriter.write(ByteArrayByteWriter.kt:34)
            at com.ashampoo.kim.input.ByteReaderExtensionsKt.readRemainingBytes(ByteReaderExtensions.kt:164)
            at com.ashampoo.kim.format.jpeg.JpegUtils.traverseJFIF(JpegUtils.kt:62)
            at com.ashampoo.kim.format.jpeg.JpegRewriter.readSegments(JpegRewriter.kt:78)
            at com.ashampoo.kim.format.jpeg.JpegRewriter.updateExifMetadataLossless(JpegRewriter.kt:113)
            at com.ravenfeld.panoramax.baba.lib.ssot.impl.extension.KimExt.addTag(KimExt.kt:36)
            at com.ravenfeld.panoramax.baba.lib.ssot.impl.api.SequenceApiImpl.addPhoto-gIAlu-s(SequenceApiImpl.kt:216)
            at com.ravenfeld.panoramax.baba.feature.camera.data.repository.CameraRepositoryImpl.addPhoto(CameraRepositoryImpl.kt:40)
            at com.ravenfeld.panoramax.baba.feature.camera.domain.usecase.OnTakenPhotoUseCase.invoke(OnTakenPhotoUseCase.kt:16)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions