wasabeef / glide-transformations

An Android transformation library providing a variety of image transformations for Glide.
Apache License 2.0
9.89k stars 1.41k forks source link

After the application calls glide, the glide library reports a null pointer error. #203

Open requestcaserobot opened 3 weeks ago

requestcaserobot commented 3 weeks ago

Future Task

What is the motivation?

Application using glide

What kind of solution can be considered?

NA

What do you want to discuss?

java.lang.NullPointerException: Attempt to invoke virtual method 'com.bumptech.glide.manager.RequestManagerRetriever com.bumptech.glide.Glide.getRequestManagerRetriever()' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4018) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4168) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:114) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:144) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:101) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2630) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:257) at android.os.Looper.loop(Looper.java:368) at android.app.ActivityThread.main(ActivityThread.java:8826) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'com.bumptech.glide.manager.RequestManagerRetriever com.bumptech.glide.Glide.getRequestManagerRetriever()' on a null object reference at com.bumptech.glide.manager.SupportRequestManagerFragment.registerFragmentWithRoot(SourceFile:3) at com.bumptech.glide.manager.SupportRequestManagerFragment.onAttach(SourceFile:5) at androidx.fragment.app.Fragment.performAttach(SourceFile:7) at androidx.fragment.app.w.c(SourceFile:15) at androidx.fragment.app.w.m(SourceFile:22) at androidx.fragment.app.y.t(SourceFile:3) at androidx.fragment.app.p.Q0(SourceFile:5) at androidx.fragment.app.p.Q(SourceFile:3) at androidx.fragment.app.p.z(SourceFile:4) at androidx.fragment.app.Fragment.restoreChildFragmentState(SourceFile:3) at androidx.fragment.app.Fragment.onCreate(SourceFile:2) at androidx.fragment.app.Fragment.performCreate(SourceFile:6) at androidx.fragment.app.w.e(SourceFile:5) at androidx.fragment.app.w.m(SourceFile:21) at androidx.fragment.app.y.t(SourceFile:3) at androidx.fragment.app.p.Q0(SourceFile:5) at androidx.fragment.app.p.Q(SourceFile:3) at androidx.fragment.app.p.z(SourceFile:4) at androidx.fragment.app.j.f(Unknown Source:4) at androidx.fragment.app.FragmentActivity.onCreate(SourceFile:3) at com.filemanager.common.base.BaseVMActivity.onCreate(SourceFile:1) at com.oplus.encrypt.EncryptActivity.onCreate(SourceFile:1) at android.app.Activity.performCreate(Activity.java:8757) at android.app.Activity.performCreate(Activity.java:8729) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1475) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3992) ... 12 more

Please add relevant labels


Bug Reporting

NA

Steps to Reproduce

Automation script runs out

Actual Results (include screenshots)

NullPointerException: Attempt to invoke virtual method 'com.bumptech.glide.manager.RequestManagerRetriever com.bumptech.glide.Glide.getRequestManagerRetriever()' on a null object reference

Expected Results (include screenshots)

No error reported

URL

OS details

Please add relevant labels

requestcaserobot commented 2 weeks ago

又增加一例:报错不同 tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE) signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000018 Cause: null pointer dereference x0 0000000000000030 x1 0000007aebfa92c0 x2 0000007aebe00000 x3 0000000000000003 x4 00000000000001a9 x5 0000000000000000 x6 0a1a0a0d474e5089 x7 0000007abebe4378 x8 2c8244ba344828c3 x9 2c8244ba344828c3 x10 00000000000001a9 x11 0000000000000001 x12 000000007fffffff x13 000000000004d146 x14 000000000004d146 x15 0000000000000000 x16 0000007cad9c70a0 x17 0000007cad9b5c48 x18 0000007abe008000 x19 0000007abebe4640 x20 0000007abebe4358 x21 0000007abebe4520 x22 0000000000000000 x23 0000000000000020 x24 b400007af23f55f0 x25 0000007abebe8000 x26 0000007abebe8000 x27 0000007ca96dd774 x28 0000000000000001 x29 0000007abebe42e0 lr 0000007ca96dd840 sp 0000007abebe41d0 pc 0000007ca96dd840 pst 0000000060000000

82 total frames backtrace:

00 pc 00000000002dd840 /system/lib64/libhwui.so (SkWebpCodec::MakeFromStream(std::__1::unique_ptr<SkStream, std::__1::default_delete >, SkCodec::Result*)+204) (BuildId: ea71177d9135c3053abae7e1c0783740)

  #01 pc 00000000002d16d8  /system/lib64/libhwui.so (SkCodec::MakeFromStream(std::__1::unique_ptr<SkStream, std::__1::default_delete<SkStream> >, SkCodec::Result*, SkPngChunkReader*, SkCodec::SelectionPolicy)+532) (BuildId: ea71177d9135c3053abae7e1c0783740)
  #02 pc 0000000000215fac  /system/lib64/libhwui.so (doDecode(_JNIEnv*, std::__1::unique_ptr<SkStreamRewindable, std::__1::default_delete<SkStreamRewindable> >, _jobject*, _jobject*, long, long) (.__uniq.26938061605105508016343812100800822394)+916) (BuildId: ea71177d9135c3053abae7e1c0783740)
  #03 pc 00000000002159a0  /system/lib64/libhwui.so (nativeDecodeFileDescriptor(_JNIEnv*, _jobject*, _jobject*, _jobject*, _jobject*, long, long) (.__uniq.26938061605105508016343812100800822394)+512) (BuildId: ea71177d9135c3053abae7e1c0783740)
  #04 pc 00000000003a56d0  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (art_jni_trampoline+160)
  #05 pc 000000000078a698  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (android.graphics.BitmapFactory.decodeFileDescriptor+840)
  #06 pc 00000000005b8b18  /apex/com.android.art/lib64/libart.so (nterp_helper+152) (BuildId: ddcc440d4609d2099db9d20895487a78)
  #07 pc 000000000027aae6  /product/app/FileManager/FileManager.apk (com.bumptech.glide.load.resource.bitmap.ImageReader$ParcelFileDescriptorImageReader.decodeBitmap+22)
  #08 pc 00000000005ba7f4  /apex/com.android.art/lib64/libart.so (nterp_helper+7540) (BuildId: ddcc440d4609d2099db9d20895487a78)
  #09 pc 0000000000279252  /product/app/FileManager/FileManager.apk (com.bumptech.glide.load.resource.bitmap.Downsampler.decodeStream+50)
  #10 pc 00000000005b8ab4  /apex/com.android.art/lib64/libart.so (nterp_helper+52) (BuildId: ddcc440d4609d2099db9d20895487a78)
  #11 pc 0000000000279686  /product/app/FileManager/FileManager.apk (com.bumptech.glide.load.resource.bitmap.Downsampler.getDimensions+6)
  #12 pc 00000000005b8ab4  /apex/com.android.art/lib64/libart.so (nterp_helper+52) (BuildId: ddcc440d4609d2099db9d20895487a78)
  #13 pc 0000000000278f00  /product/app/FileManager/FileManager.apk (com.bumptech.glide.load.resource.bitmap.Downsampler.decodeFromWrappedStreams+28)
  #14 pc 00000000005ba0d8  /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: ddcc440d4609d2099db9d20895487a78)
  #15 pc 0000000000279536  /product/app/FileManager/FileManager.apk (com.bumptech.glide.load.resource.bitmap.Downsampler.decode+190)
  #16 pc 00000000005ba0d8  /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: ddcc440d4609d2099db9d20895487a78)
  #17 pc 000000000027945e  /product/app/FileManager/FileManager.apk (com.bumptech.glide.load.resource.bitmap.Downsampler.decode+30)
  #18 pc 00000000005b99d4  /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: ddcc440d4609d2099db9d20895487a78)
  #19 pc 000000000027ae28  /product/app/FileManager/FileManager.apk (com.bumptech.glide.load.resource.bitmap.ParcelFileDescriptorBitmapDecoder.decode+4)
  #20 pc 00000000005b99d4  /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: ddcc440d4609d2099db9d20895487a78)
  #21 pc 000000000027ae48  /product/app/FileManager/FileManager.apk (com.bumptech.glide.load.resource.bitmap.ParcelFileDescriptorBitmapDecoder.decode+4)
  #22 pc 00000000005ba7f4  /apex/com.android.art/lib64/libart.so (nterp_helper+7540) (BuildId: ddcc440d4609d2099db9d20895487a78)
  #23 pc 000000000026a630  /product/app/FileManager/FileManager.apk (com.bumptech.glide.load.engine.DecodePath.decodeResourceWithList+64)
  #24 pc 00000000005ba0d8  /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: ddcc440d4609d2099db9d20895487a78)
  #25 pc 000000000026a5b0  /product/app/FileManager/FileManager.apk (com.bumptech.glide.load.engine.DecodePath.decodeResource+36)
  #26 pc 00000000005b99d4  /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: ddcc440d4609d2099db9d20895487a78)
  #27 pc 000000000026a55c  /product/app/FileManager/FileManager.apk (com.bumptech.glide.load.engine.DecodePath.decode+0)
  #28 pc 00000000005ba0d8  /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: ddcc440d4609d2099db9d20895487a78)
  #29 pc 000000000026ce3e  /product/app/FileManager/FileManager.apk (com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList+62)
  #30 pc 00000000005ba0d8  /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: ddcc440d4609d2099db9d20895487a78)
  #31 pc 000000000026cdc2  /product/app/FileManager/FileManager.apk (com.bumptech.glide.load.engine.LoadPath.load+38)
  #32 pc 00000000005ba0d8  /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: ddcc440d4609d2099db9d20895487a78)