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

UCropActivity.setupViews android.content.res.Resources$NotFoundException - Unable to find resource ID #<address> #875

Open
pkariuki opened this issue Feb 12, 2023 · 4 comments

Comments

@pkariuki
Copy link

Do you want to request a feature or report a bug?
bug

What is the current behavior?
Caused by android.content.res.Resources$NotFoundException: Unable to find resource ID #0x7f08021a

What is the expected behavior?
No exception

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
Not sure how to reproduce. The cause is from user device is from Crashlytics

Please attach any image files, URL and stack trace that can be used to reproduce the bug.
Caused by android.content.res.Resources$NotFoundException: Unable to find resource ID #0x7f08021a at android.content.res.ResourcesImpl.getResourceName(ResourcesImpl.java:253) at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:760) at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:630) at android.content.res.Resources.loadDrawable(Resources.java:886) at android.content.res.TypedArray.getDrawableForDensity(TypedArray.java:953) at android.content.res.TypedArray.getDrawable(TypedArray.java:928) at android.content.res.XResources$XTypedArray.getDrawable(XResources.java:1363) at android.widget.ImageView.<init>(ImageView.java:188) at android.widget.ImageView.<init>(ImageView.java:171) at androidx.appcompat.widget.AppCompatImageView.<init>(AppCompatImageView.java:3) at androidx.appcompat.widget.AppCompatImageView.<init>(AppCompatImageView.java:1) at androidx.appcompat.app.AppCompatViewInflater.createImageView(AppCompatViewInflater.java:8) at androidx.appcompat.app.AppCompatDelegateImpl.createView(AppCompatDelegateImpl.java:8) at androidx.appcompat.app.AppCompatDelegateImpl.onCreateView(AppCompatDelegateImpl.java:8) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:772) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730) at android.view.LayoutInflater.rInflate(LayoutInflater.java:863) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824) at android.view.LayoutInflater.rInflate(LayoutInflater.java:866) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824) at android.view.LayoutInflater.parseInclude(LayoutInflater.java:995) at android.view.LayoutInflater.rInflate(LayoutInflater.java:859) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824) at android.view.LayoutInflater.rInflate(LayoutInflater.java:866) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824) at android.view.LayoutInflater.inflate(LayoutInflater.java:515) at android.view.LayoutInflater.inflate(LayoutInflater.java:423) at com.yalantis.ucrop.UCropActivity.setupViews(UCropActivity.java:174) at com.yalantis.ucrop.UCropActivity.onCreate(UCropActivity.java:12) at android.app.Activity.performCreate(Activity.java:7009) at android.app.Activity.performCreate(Activity.java:7000) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6494) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

Which versions of uCrop, and which Android API versions are affected by this issue? Did this work in previous versions of uCrop?
Lib version: 2.2.6
Android version: 8; 90% and 10; 10%
Device: Nexus 5X

@jens-muenker
Copy link

I am sorry, but I can't find the code which causes the crash. Can you upgrade to a newer lib version or explain more detailed what you have done before?

Independently of this error, I guess nobody with write access updates this library anymore. (#651 (comment))

I made a fork which is working well for Android 13. In addition to the small updates, I translated most of the code to kotlin.

@PrudhviBanki
Copy link

UCropActivity.setupViews
android.content.res.Resources$NotFoundException - Unable to find resource ID #

Model:Nexus 5X
Orientation:Portrait
RAM free: 1.28 GB
Disk free: 353.04 MB

@PrudhviBanki
Copy link

is this repo live or not?

@Vamsi-doraswamy
Copy link

UCropActivity.setupViews
android.content.res.Resources$NotFoundException - Unable to find resource ID #


Device
Brand:Samsung
Model:Galaxy F14 5G
Orientation:Portrait
RAM free: 1.34 GB
Disk free: 88.28 GB
Operating System
Version:Android 14
Orientation:Portrait
Rooted:No

This crash occurred only once and don't know whether it'll be reproduced. I am using the uCrop latest version 2.2.8. Any ideas to solve this issue?

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

4 participants