Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ANR in LruBitmapPool #5421

Open
alan1024 opened this issue Jun 17, 2024 · 1 comment
Open

ANR in LruBitmapPool #5421

alan1024 opened this issue Jun 17, 2024 · 1 comment

Comments

@alan1024
Copy link

alan1024 commented Jun 17, 2024

"main" prio=5 tid=1 Blocked
| group="main" sCount=1 dsCount=0 flags=1 obj=0x72e02790 self=0xb40000783e288010
| sysTid=4442 nice=-10 cgrp=default sched=0/0 handle=0x79c525a4f8
| state=S schedstat=( 5518816383 4049321705 15267 ) utm=402 stm=149 core=2 HZ=100
| stack=0x7ff12ec000-0x7ff12ee000 stackSize=8192KB
| held mutexes=
at com.bumptech.glide.load.engine.bitmap_recycle.k.q(LruBitmapPool.java:-1)

waiting to lock <0x0bb29352> (a com.bumptech.glide.load.engine.bitmap_recycle.k) held by thread 41
at com.bumptech.glide.load.engine.bitmap_recycle.k.a(LruBitmapPool.java:4)
at com.bumptech.glide.b.r(Glide.java:7)
at com.bumptech.glide.b.onTrimMemory(Glide.java:1)
at android.app.Application.onTrimMemory(Application.java:287)
at android.app.ActivityThread.handleTrimMemory(ActivityThread.java:6377)
at android.app.ActivityThread.access$1300(ActivityThread.java:249)
at android.app.ActivityThread$ApplicationThread.lambda$scheduleTrimMemory$0(ActivityThread.java:1638)
at android.app.-$$Lambda$ActivityThread$ApplicationThread$tUGFX7CUhzB4Pg5wFd5yeqOnu38.accept(lambda:-1)
at com.android.internal.util.function.pooled.PooledLambdaImpl.doInvoke(PooledLambdaImpl.java:278)
at com.android.internal.util.function.pooled.PooledLambdaImpl.invoke(PooledLambdaImpl.java:201)
at com.android.internal.util.function.pooled.OmniFunction.run(OmniFunction.java:97)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:972)
at android.view.Choreographer.doCallbacks(Choreographer.java:796)
at android.view.Choreographer.doFrame(Choreographer.java:733)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:957)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7811)
at java.lang.reflect.Method.invoke(Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:951)

@alan1024
Copy link
Author

"main" prio=5 tid=1 Blocked
| group="main" sCount=1 dsCount=0 flags=1 obj=0x72e02790 self=0xb40000783e288010
| sysTid=4442 nice=-10 cgrp=default sched=0/0 handle=0x79c525a4f8
| state=S schedstat=( 5518816383 4049321705 15267 ) utm=402 stm=149 core=2 HZ=100
| stack=0x7ff12ec000-0x7ff12ee000 stackSize=8192KB
| held mutexes=
at com.bumptech.glide.load.engine.bitmap_recycle.k.q(LruBitmapPool.java:-1)

  • waiting to lock <0x0bb29352> (a com.bumptech.glide.load.engine.bitmap_recycle.k) held by thread 41
    at com.bumptech.glide.load.engine.bitmap_recycle.k.a(LruBitmapPool.java:4)
    at com.bumptech.glide.b.r(Glide.java:7)
    at com.bumptech.glide.b.onTrimMemory(Glide.java:1)
    at android.app.Application.onTrimMemory(Application.java:287)
    at android.app.ActivityThread.handleTrimMemory(ActivityThread.java:6377)
    at android.app.ActivityThread.access$1300(ActivityThread.java:249)
    at android.app.ActivityThread$ApplicationThread.lambda$scheduleTrimMemory$0(ActivityThread.java:1638)
    at android.app.-$$Lambda$ActivityThread$ApplicationThread$tUGFX7CUhzB4Pg5wFd5yeqOnu38.accept(lambda:-1)
    at com.android.internal.util.function.pooled.PooledLambdaImpl.doInvoke(PooledLambdaImpl.java:278)
    at com.android.internal.util.function.pooled.PooledLambdaImpl.invoke(PooledLambdaImpl.java:201)
    at com.android.internal.util.function.pooled.OmniFunction.run(OmniFunction.java:97)
    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:972)
    at android.view.Choreographer.doCallbacks(Choreographer.java:796)
    at android.view.Choreographer.doFrame(Choreographer.java:733)
    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:957)
    at android.os.Handler.handleCallback(Handler.java:938)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:223)
    at android.app.ActivityThread.main(ActivityThread.java:7811)
    at java.lang.reflect.Method.invoke(Native method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:951)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant