Status Update
Comments
xa...@android.com <xa...@android.com> #2
This is really critical. Every time I disconnect via "cast" my app crashes (or if I start casting with another app) my app crashes in the background because this is used by the cast API.
java.lang.NullPointerException: Attempt to write to field 'java.lang.ref.WeakReference android.support.v4.media.session.MediaSessionCompat$Callback.mSessionImpl' on a null object reference
at android.support.v4.media.session.MediaSessionCompat$MediaSessionImplApi21.setCallback(MediaSessionCompat.java:2305)
at android.support.v4.media.session.MediaSessionCompat.setCallback(MediaSessionCompat.java:267)
at android.support.v4.media.session.MediaSessionCompat.setCallback(MediaSessionCompat.java:255)
at com.google.android.gms.internal.zzxe.zzcb(Unknown Source)
at com.google.android.gms.cast.framework.CastSession.zzbV(Unknown Source)
at com.google.android.gms.cast.framework.CastSession.zza(Unknown Source)
at com.google.android.gms.cast.framework.CastSession$zzb.zzbV(Unknown Source)
java.lang.NullPointerException: Attempt to write to field 'java.lang.ref.WeakReference android.support.v4.media.session.MediaSessionCompat$Callback.mSessionImpl' on a null object reference
at android.support.v4.media.session.MediaSessionCompat$MediaSessionImplApi21.setCallback(MediaSessionCompat.java:2305)
at android.support.v4.media.session.MediaSessionCompat.setCallback(MediaSessionCompat.java:267)
at android.support.v4.media.session.MediaSessionCompat.setCallback(MediaSessionCompat.java:255)
at com.google.android.gms.internal.zzxe.zzcb(Unknown Source)
at com.google.android.gms.cast.framework.CastSession.zzbV(Unknown Source)
at com.google.android.gms.cast.framework.CastSession.zza(Unknown Source)
at com.google.android.gms.cast.framework.CastSession$zzb.zzbV(Unknown Source)
tn...@google.com <tn...@google.com> #3
Hi,
Request you to provide below information
Please attach your sample android project which reproduces the issue, zip it and share(just to avoid the confusion between your sample code and the one we create to replicate the issue,sample code is requested here).
Explain expected and observed behavior? Attach screen shots for more clarity.
Explain the steps to reproduce the issue with your apk. Provide all necessary information to reproduce the issue.
Note: Please upload the attachments to google drive and share the folder to android-bugreport@google.com, then share the link here.
Request you to provide below information
Please attach your sample android project which reproduces the issue, zip it and share(just to avoid the confusion between your sample code and the one we create to replicate the issue,sample code is requested here).
Explain expected and observed behavior? Attach screen shots for more clarity.
Explain the steps to reproduce the issue with your apk. Provide all necessary information to reproduce the issue.
Note: Please upload the attachments to google drive and share the folder to android-bugreport@google.com, then share the link here.
on...@gmail.com <on...@gmail.com> #4
here you go
https://drive.google.com/drive/folders/0B4FfLhYv65yoVmJKd2c1QkdxMGs?usp=sharing
Expected behavior: don't crash.
Observed: NullPointerException
To reproduce, just run the application on Android API 23+
Expected behavior: don't crash.
Observed: NullPointerException
To reproduce, just run the application on Android API 23+
on...@gmail.com <on...@gmail.com> #5
You can also reproduce the "Cast" issue using the UAMP sample which is found here:
https://github.com/googlesamples/android-UniversalMusicPlayer
Just update mobile/build.gradle to use 25.1.0 and the compile/target to 25. You just then need to start casting and then disconnect from cast. You don't even have to play content.
Just update mobile/build.gradle to use 25.1.0 and the compile/target to 25. You just then need to start casting and then disconnect from cast. You don't even have to play content.
go...@gmail.com <go...@gmail.com> #6
I am seeing the same on disconnect on Lollipop. This issue was introduced in v25.1.0--it is not an issue in v25.0.1.
12-14 11:39:27.742: E/UncaughtExceptionHandler(2212): Uncaught exception: java.lang.NullPointerException: Attempt to write to field 'java.lang.ref.WeakReference android.support.v4.media.session.MediaSessionCompat$Callback.mSessionImpl' on a null object reference
12-14 11:39:27.774: E/AndroidRuntime(2212): FATAL EXCEPTION: main
12-14 11:39:27.774: E/AndroidRuntime(2212): java.lang.NullPointerException: Attempt to write to field 'java.lang.ref.WeakReference android.support.v4.media.session.MediaSessionCompat$Callback.mSessionImpl' on a null object reference
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.support.v4.media.session.MediaSessionCompat$MediaSessionImplApi21.setCallback(MediaSessionCompat.java:2305)
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.support.v4.media.session.MediaSessionCompat.setCallback(MediaSessionCompat.java:267)
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.support.v4.media.session.MediaSessionCompat.setCallback(MediaSessionCompat.java:255)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.google.android.gms.internal.zzxe.zzcb(Unknown Source)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.google.android.gms.cast.framework.CastSession.zzbV(Unknown Source)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.google.android.gms.cast.framework.CastSession.zza(Unknown Source)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.google.android.gms.cast.framework.CastSession$zzb.zzbV(Unknown Source)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.google.android.gms.cast.framework.zzf$zza.onTransact(Unknown Source)
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.os.Binder.transact(Binder.java:499)
12-14 11:39:27.774: E/AndroidRuntime(2212): at zt.a(:com.google.android.gms.DynamiteModulesC:199)
12-14 11:39:27.774: E/AndroidRuntime(2212): at zj.a(:com.google.android.gms.DynamiteModulesC:128)
12-14 11:39:27.774: E/AndroidRuntime(2212): at zy.onTransact(:com.google.android.gms.DynamiteModulesC:122)
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.os.Binder.transact(Binder.java:499)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.google.android.gms.cast.framework.zzh$zza$zza.zzb(Unknown Source)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.google.android.gms.cast.framework.CastSession.end(Unknown Source)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.google.android.gms.cast.framework.Session$zza.end(Unknown Source)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.google.android.gms.cast.framework.zzq$zza.onTransact(Unknown Source)
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.os.Binder.transact(Binder.java:499)
12-14 11:39:27.774: E/AndroidRuntime(2212): at aba.a(:com.google.android.gms.DynamiteModulesC:216)
12-14 11:39:27.774: E/AndroidRuntime(2212): at abi.a(:com.google.android.gms.DynamiteModulesC:305)
12-14 11:39:27.774: E/AndroidRuntime(2212): at ace.a(:com.google.android.gms.DynamiteModulesC:61)
12-14 11:39:27.774: E/AndroidRuntime(2212): at acb.onTransact(:com.google.android.gms.DynamiteModulesC:144)
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.os.Binder.transact(Binder.java:499)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.google.android.gms.internal.zzwv$zza$zza.zza(Unknown Source)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.google.android.gms.internal.zzwy.onRouteUnselected(Unknown Source)
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.support.v7.media.MediaRouter$GlobalMediaRouter$CallbackHandler.invokeCallback(MediaRouter.java:2999)
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.support.v7.media.MediaRouter$GlobalMediaRouter$CallbackHandler.handleMessage(MediaRouter.java:2946)
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.os.Handler.dispatchMessage(Handler.java:102)
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.os.Looper.loop(Looper.java:154)
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.app.ActivityThread.main(ActivityThread.java:6119)
12-14 11:39:27.774: E/AndroidRuntime(2212): at java.lang.reflect.Method.invoke(Native Method)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
12-14 11:39:27.742: E/UncaughtExceptionHandler(2212): Uncaught exception: java.lang.NullPointerException: Attempt to write to field 'java.lang.ref.WeakReference android.support.v4.media.session.MediaSessionCompat$Callback.mSessionImpl' on a null object reference
12-14 11:39:27.774: E/AndroidRuntime(2212): FATAL EXCEPTION: main
12-14 11:39:27.774: E/AndroidRuntime(2212): java.lang.NullPointerException: Attempt to write to field 'java.lang.ref.WeakReference android.support.v4.media.session.MediaSessionCompat$Callback.mSessionImpl' on a null object reference
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.support.v4.media.session.MediaSessionCompat$MediaSessionImplApi21.setCallback(MediaSessionCompat.java:2305)
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.support.v4.media.session.MediaSessionCompat.setCallback(MediaSessionCompat.java:267)
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.support.v4.media.session.MediaSessionCompat.setCallback(MediaSessionCompat.java:255)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.google.android.gms.internal.zzxe.zzcb(Unknown Source)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.google.android.gms.cast.framework.CastSession.zzbV(Unknown Source)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.google.android.gms.cast.framework.CastSession.zza(Unknown Source)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.google.android.gms.cast.framework.CastSession$zzb.zzbV(Unknown Source)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.google.android.gms.cast.framework.zzf$zza.onTransact(Unknown Source)
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.os.Binder.transact(Binder.java:499)
12-14 11:39:27.774: E/AndroidRuntime(2212): at zt.a(:com.google.android.gms.DynamiteModulesC:199)
12-14 11:39:27.774: E/AndroidRuntime(2212): at zj.a(:com.google.android.gms.DynamiteModulesC:128)
12-14 11:39:27.774: E/AndroidRuntime(2212): at zy.onTransact(:com.google.android.gms.DynamiteModulesC:122)
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.os.Binder.transact(Binder.java:499)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.google.android.gms.cast.framework.zzh$zza$zza.zzb(Unknown Source)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.google.android.gms.cast.framework.CastSession.end(Unknown Source)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.google.android.gms.cast.framework.Session$zza.end(Unknown Source)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.google.android.gms.cast.framework.zzq$zza.onTransact(Unknown Source)
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.os.Binder.transact(Binder.java:499)
12-14 11:39:27.774: E/AndroidRuntime(2212): at aba.a(:com.google.android.gms.DynamiteModulesC:216)
12-14 11:39:27.774: E/AndroidRuntime(2212): at abi.a(:com.google.android.gms.DynamiteModulesC:305)
12-14 11:39:27.774: E/AndroidRuntime(2212): at ace.a(:com.google.android.gms.DynamiteModulesC:61)
12-14 11:39:27.774: E/AndroidRuntime(2212): at acb.onTransact(:com.google.android.gms.DynamiteModulesC:144)
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.os.Binder.transact(Binder.java:499)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.google.android.gms.internal.zzwv$zza$zza.zza(Unknown Source)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.google.android.gms.internal.zzwy.onRouteUnselected(Unknown Source)
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.support.v7.media.MediaRouter$GlobalMediaRouter$CallbackHandler.invokeCallback(MediaRouter.java:2999)
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.support.v7.media.MediaRouter$GlobalMediaRouter$CallbackHandler.handleMessage(MediaRouter.java:2946)
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.os.Handler.dispatchMessage(Handler.java:102)
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.os.Looper.loop(Looper.java:154)
12-14 11:39:27.774: E/AndroidRuntime(2212): at android.app.ActivityThread.main(ActivityThread.java:6119)
12-14 11:39:27.774: E/AndroidRuntime(2212): at java.lang.reflect.Method.invoke(Native Method)
12-14 11:39:27.774: E/AndroidRuntime(2212): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
go...@gmail.com <go...@gmail.com> #7
The defect can be found at `android.support.v4.media.session.MediaSessionCompat.MediaSessionImplApi21#setCallback(Callback, Handler)` in the v25.1.0 of the support libraries.
The `android.support.v4.media.session.MediaSessionCompat#setCallback(Callback, Handler)` method indicates that a null value for the Callback parameter is valid, yet the `MediaSessionImplApi21` implementation attempts to write to a member variable to it.
The `android.support.v4.media.session.MediaSessionCompat#setCallback(Callback, Handler)` method indicates that a null value for the Callback parameter is valid, yet the `MediaSessionImplApi21` implementation attempts to write to a member variable to it.
al...@gmail.com <al...@gmail.com> #8
I also reproduced this issue, who can tell me how to fix it?
ad...@gmail.com <ad...@gmail.com> #9
The fix was already merged. The next release of support lib will have the fix.
su...@gmail.com <su...@gmail.com> #10
Is there a work-around for this issue until the next version of the support library is released? As far as I can tell using any version of mediarouter-v7:25.x.x causes this crash.
mw...@gmail.com <mw...@gmail.com> #11
com.android.support:mediarouter-v7:25.0.1 is working for me. Try that version again.
sl...@gmail.com <sl...@gmail.com> #12
01-15 09:52:56.838 21662-21662/com.clients.mobile.gen.next.iqueue.provider E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.clients.mobile.gen.next.iqueue.provider, PID: 21662
java.lang.NullPointerException: Attempt to write to field 'java.lang.ref.WeakReference android.support.v4.media.session.MediaSessionCompat$Callback.mSessionImpl' on a null object reference
at android.support.v4.media.session.MediaSessionCompat$MediaSessionImplApi21.setCallback(MediaSessionCompat.java:2305)
at android.support.v4.media.session.MediaSessionCompat.setCallback(MediaSessionCompat.java:267)
at android.support.v4.media.session.MediaSessionCompat.setCallback(MediaSessionCompat.java:255)
at com.google.android.gms.internal.zzxe.zzcb(Unknown Source)
at com.google.android.gms.cast.framework.CastSession.zzbV(Unknown Source)
at com.google.android.gms.cast.framework.CastSession.zza(Unknown Source)
at com.google.android.gms.cast.framework.CastSession$zzb.zzbV(Unknown Source)
at com.google.android.gms.cast.framework.zzf$zza.onTransact(Unknown Source)
at android.os.Binder.transact(Binder.java:499)
at zt.a(:com.google.android.gms.DynamiteModulesC:199)
at zj.a(:com.google.android.gms.DynamiteModulesC:128)
at zy.onTransact(:com.google.android.gms.DynamiteModulesC:122)
at android.os.Binder.transact(Binder.java:499)
at com.google.android.gms.cast.framework.zzh$zza$zza.zzb(Unknown Source)
at com.google.android.gms.cast.framework.CastSession.end(Unknown Source)
at com.google.android.gms.cast.framework.Session$zza.end(Unknown Source)
at com.google.android.gms.cast.framework.zzq$zza.onTransact(Unknown Source)
at android.os.Binder.transact(Binder.java:499)
at aba.a(:com.google.android.gms.DynamiteModulesC:216)
at abi.a(:com.google.android.gms.DynamiteModulesC:305)
at ace.a(:com.google.android.gms.DynamiteModulesC:61)
at acb.onTransact(:com.google.android.gms.DynamiteModulesC:144)
at android.os.Binder.transact(Binder.java:499)
at com.google.android.gms.internal.zzwv$zza$zza.zza(Unknown Source)
at com.google.android.gms.internal.zzwy.onRouteUnselected(Unknown Source)
at android.support.v7.media.MediaRouter$GlobalMediaRouter$CallbackHandler.invokeCallback(MediaRouter.java:2900)
at android.support.v7.media.MediaRouter$GlobalMediaRouter$CallbackHandler.handleMessage(MediaRouter.java:2847)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
Process: com.clients.mobile.gen.next.iqueue.provider, PID: 21662
java.lang.NullPointerException: Attempt to write to field 'java.lang.ref.WeakReference android.support.v4.media.session.MediaSessionCompat$Callback.mSessionImpl' on a null object reference
at android.support.v4.media.session.MediaSessionCompat$MediaSessionImplApi21.setCallback(MediaSessionCompat.java:2305)
at android.support.v4.media.session.MediaSessionCompat.setCallback(MediaSessionCompat.java:267)
at android.support.v4.media.session.MediaSessionCompat.setCallback(MediaSessionCompat.java:255)
at com.google.android.gms.internal.zzxe.zzcb(Unknown Source)
at com.google.android.gms.cast.framework.CastSession.zzbV(Unknown Source)
at com.google.android.gms.cast.framework.CastSession.zza(Unknown Source)
at com.google.android.gms.cast.framework.CastSession$zzb.zzbV(Unknown Source)
at com.google.android.gms.cast.framework.zzf$zza.onTransact(Unknown Source)
at android.os.Binder.transact(Binder.java:499)
at zt.a(:com.google.android.gms.DynamiteModulesC:199)
at zj.a(:com.google.android.gms.DynamiteModulesC:128)
at zy.onTransact(:com.google.android.gms.DynamiteModulesC:122)
at android.os.Binder.transact(Binder.java:499)
at com.google.android.gms.cast.framework.zzh$zza$zza.zzb(Unknown Source)
at com.google.android.gms.cast.framework.CastSession.end(Unknown Source)
at com.google.android.gms.cast.framework.Session$zza.end(Unknown Source)
at com.google.android.gms.cast.framework.zzq$zza.onTransact(Unknown Source)
at android.os.Binder.transact(Binder.java:499)
at aba.a(:com.google.android.gms.DynamiteModulesC:216)
at abi.a(:com.google.android.gms.DynamiteModulesC:305)
at ace.a(:com.google.android.gms.DynamiteModulesC:61)
at acb.onTransact(:com.google.android.gms.DynamiteModulesC:144)
at android.os.Binder.transact(Binder.java:499)
at com.google.android.gms.internal.zzwv$zza$zza.zza(Unknown Source)
at com.google.android.gms.internal.zzwy.onRouteUnselected(Unknown Source)
at android.support.v7.media.MediaRouter$GlobalMediaRouter$CallbackHandler.invokeCallback(MediaRouter.java:2900)
at android.support.v7.media.MediaRouter$GlobalMediaRouter$CallbackHandler.handleMessage(MediaRouter.java:2847)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
sl...@gmail.com <sl...@gmail.com> #13
I have tried com.android.support:mediarouter-v7:25.0.1 and com.android.support:mediarouter-v7:25.1.0 both are crashing
su...@gmail.com <su...@gmail.com> #14
I am using compile 'com.android.support:mediarouter-v7:25.1.0'
compile 'com.google.android.gms:play-services-cast-framework:10.0.1' and still crashing
compile 'com.google.android.gms:play-services-cast-framework:10.0.1' and still crashing
da...@gmail.com <da...@gmail.com> #15
Is there a work-around for this issue until the next version of the support library is released?
al...@alexblack.ca <al...@alexblack.ca> #16
I'm seeing users crash with this too: http://crashes.to/s/d3af06cc168
I'm using Android Gradle plugin 1.3.0, Android Studio 1.3.1, gradle 2.5
I'm using Android Gradle plugin 1.3.0, Android Studio 1.3.1, gradle 2.5
al...@alexblack.ca <al...@alexblack.ca> #17
I've built the support library with the fix myself, works fine
fi...@gmail.com <fi...@gmail.com> #18
In addition to reverting mediarouter back to 25.0.1, I also needed to revert appcompat-v7:25.0.1
The crash has gone away now.
The crash has gone away now.
tn...@google.com <tn...@google.com> #20
What is the solution for the interim? This is really annoying!
mt...@gmail.com <mt...@gmail.com> #21
[Comment deleted]
tn...@google.com <tn...@google.com> #22
[Comment deleted]
rt...@gmail.com <rt...@gmail.com> #23
[Comment deleted]
ta...@gmail.com <ta...@gmail.com> #24
[Comment deleted]
ma...@gmail.com <ma...@gmail.com> #25
"+1 Me too!"
ne...@gmail.com <ne...@gmail.com> #26
Is this fixed? Although we can't reproduce this consistently, we still encountered this on Gradle version 1.5.0.
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2655)
... 10 more
Caused by: android.content.res.Resources$NotFoundException: File res/drawable-xxhdpi-v4/logo_rmw.png from drawable resource ID #0x7f0200f5
android.content.res.Resources.loadDrawableForCookie(Resources.java:3735)
android.content.res.Resources.loadDrawable(Resources.java:3603)
android.content.res.TypedArray.getDrawable(TypedArray.java:762)
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2655)
... 10 more
Caused by: android.content.res.Resources$NotFoundException: File res/drawable-xxhdpi-v4/logo_rmw.png from drawable resource ID #0x7f0200f5
android.content.res.Resources.loadDrawableForCookie(Resources.java:3735)
android.content.res.Resources.loadDrawable(Resources.java:3603)
android.content.res.TypedArray.getDrawable(TypedArray.java:762)
ni...@gmail.com <ni...@gmail.com> #27
This issue still persists on Android Studio 2.3 Beta2 / gradle:2.3.0-beta2, I strongly suspect it is related to AppCompat theme.
hz...@gmail.com <hz...@gmail.com> #28
Still happening.
Android 4.4
Device Galaxy S5 (kltespr)
Android 4.4
Device Galaxy S5 (kltespr)
hu...@gmail.com <hu...@gmail.com> #29
Still happening: Galaxy J7, android 6.0.1
yu...@gmail.com <yu...@gmail.com> #30
Still collected in the crash logs. Oppo 5.1
[Deleted User] <[Deleted User]> #31
i have the same issue on device VIVO Y51,how to solved??
su...@gmail.com <su...@gmail.com> #32
Still happening,Still collected in the crash logs,xiaomi Mi10 ,API 29
sa...@gmail.com <sa...@gmail.com> #33
My project minSdkVersion is 21 but the problem still happen in crash report on device android version 8.1, 9, 10. That is crazy issue that no solution. Notes: my project doesn't even enable proguard nor shrink resources.
ap...@gmail.com <ap...@gmail.com> #34
8 years later, still happens for me on Samsung devices.
ri...@google.com <ri...@google.com> #35
re #34
Can you tell what version of AGP you are experiencing this with?
And can you share a reproduction of this?
Can you tell what version of AGP you are experiencing this with?
And can you share a reproduction of this?
ah...@gmail.com <ah...@gmail.com> #36
Gradle configuration:
classpath 'com.android.tools.build:gradle:7.2.0'
gradle-wrapper.properties:
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
I have few users experiencing this crash (also it looks that this crash occured not only on samsung devices):
Galaxy A73 5G, android 12:
Fatal Exception: android.content.res.Resources$NotFoundException
Resource ID #0x7f0700dd
LGE Nexus 5X, android 8.1.0
Unable to start activity ComponentInfo{iw.israelit.puff/com.israelit.puff.application.MainActivity}: android.content.res.Resources$NotFoundException: Drawable iw.israelit.puff:drawable/compat_splash_screen_no_icon_background with resource ID #0x7f07007f
Unable to start activity ComponentInfo{iw.israelit.puff/com.google.android.gms.tagmanager.TagManagerPreviewActivity}: android.content.res.Resources$NotFoundException: Drawable iw.israelit.puff:drawable/compat_splash_screen_no_icon_background with resource ID #0x7f07007f.
All resources, referenced in stack trace exists when debugging (When trying to repro 1st crash I downloaded apks from last app bundle from play store configuration used precisely for this device, checked resources.arsc files of 3 apks, and checked all mapping files for 0x7f0700d0 .. 0x7f0700df files, all mappings defined in one of 3 apks, and contains referenced files)
classpath 'com.android.tools.build:gradle:7.2.0'
gradle-wrapper.properties:
distributionUrl=https\://
I have few users experiencing this crash (also it looks that this crash occured not only on samsung devices):
Galaxy A73 5G, android 12:
Fatal Exception: android.content.res.Resources$NotFoundException
Resource ID #0x7f0700dd
LGE Nexus 5X, android 8.1.0
Unable to start activity ComponentInfo{iw.israelit.puff/com.israelit.puff.application.MainActivity}: android.content.res.Resources$NotFoundException: Drawable iw.israelit.puff:drawable/compat_splash_screen_no_icon_background with resource ID #0x7f07007f
Unable to start activity ComponentInfo{iw.israelit.puff/com.google.android.gms.tagmanager.TagManagerPreviewActivity}: android.content.res.Resources$NotFoundException: Drawable iw.israelit.puff:drawable/compat_splash_screen_no_icon_background with resource ID #0x7f07007f.
All resources, referenced in stack trace exists when debugging (When trying to repro 1st crash I downloaded apks from last app bundle from play store configuration used precisely for this device, checked resources.arsc files of 3 apks, and checked all mapping files for 0x7f0700d0 .. 0x7f0700df files, all mappings defined in one of 3 apks, and contains referenced files)
ma...@gmail.com <ma...@gmail.com> #37
happening for me also with the error
- Caused by android.content.res.Resources$NotFoundException: Drawable com.deck:color/primary_color_20_percent with resource ID #0x7f060423
I am having
- classpath 'com.android.tools.build:gradle:8.1.0'
- distributionUrl=https://services.gradle.org/distributions/gradle-8.0-all.zip
In release build type
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- signingConfig signingConfigs.release
- minifyEnabled true
- shrinkResources true
- debuggable false
li...@nextop.asia <li...@nextop.asia> #38
This issue still exists , Android 15, Pixel 7
ri...@google.com <ri...@google.com> #39
re #38: Can you file a new bug with this?
If you are using AGP 8.9 or later, can you share a compiledump, see
Please include your full stack trace of the runtime failure as well
Description
STEPS TO REPRODUCE:
1. Create a dummy app that uses appcompat (so there are resources to be removed)
2. In build.grade set 'minifyEnabled true' and 'shrinkResource true'
3. Create the APK where unused resources are removed
EXPECTED RESULTS:
Application should start normally.
OBSERVED RESULTS:
Application crashes with following stacktrace:
android.content.res.Resources$NotFoundException: File res/drawable-xxhdpi-v4/abc_list_pressed_holo_light.9.png from drawable resource ID #0x7f020020
at android.content.res.Resources$CRunnable_openmp.doOpenMP(Resources.java:1111)
at android.content.res.Resources$__ompClass0.__doWork(Resources.java:1043)
at com.samsung.javaomp.runtime.__OMPThread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: res/drawable-xxhdpi-v4/abc_list_pressed_holo_light.9.png
at android.content.res.AssetManager.openNonAssetNative(Native Method)
at android.content.res.AssetManager.openNonAsset(AssetManager.java:408)
at android.content.res.Resources$CRunnable_openmp.doOpenMP(Resources.java:1106)
... 2 more
java.io.FileNotFoundException: res/drawable-xxhdpi-v4/abc_list_pressed_holo_light.9.png
at android.content.res.AssetManager.openNonAssetNative(Native Method)
at android.content.res.AssetManager.openNonAsset(AssetManager.java:408)
at android.content.res.Resources$CRunnable_openmp.doOpenMP(Resources.java:1106)
at android.content.res.Resources$__ompClass0.__doWork(Resources.java:1043)
at com.samsung.javaomp.runtime.__OMPThread.run(Unknown Source)
It seems to happen only in some Samsung devices (e.g. we've seen it in GT-i9506 4.4.2).
We've the impression that Samsung is eagerly loading all resources found in our R files even though they're not used in the app.
Could/should the automatic resource shrinking remove the references also from the generated R files?