Coder Social home page Coder Social logo

Comments (3)

leavesCZY avatar leavesCZY commented on August 23, 2024

这种问题倒是第一次见到。你是只在这台机型上发现这个问题吗?是属于偶发还是会固定出现呢?异常信息是说已回收的 bitmap 被重复使用了,而 Matisse 内部也并不会去更改 Coil 的默认配置,这个是否可能是由于你的项目对 Coil 做了一些自定义配置导致的

from matisse.

limingbang avatar limingbang commented on August 23, 2024

和这个库没啥关系,可以关掉了。应该是Coil还缓存了被recycle的bitmap。
在目标页回收了bitmap然后退出,再重新拉起Matisse

LaunchedEffect(Unit) {
        context.imageLoader
            .enqueue(
                  ImageRequest.Builder(context)
                 .data(imageUri)
                 .scale(Scale.FIT)
                 .allowHardware(false)
                 .listener(onSuccess = { _, result ->
                         imageBitmap = result.drawable.toBitmap()
                 })
                .build()
           )

       delay(3000)
       imageBitmap?.recycle()
}

from matisse.

leavesCZY avatar leavesCZY commented on August 23, 2024

ok

from matisse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.