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

Startup crash on LG-P710 (android.content.res.Resources$NotFoundException) #2347

Closed
d4rken opened this Issue Mar 5, 2019 · 24 comments

Comments

Projects
None yet
2 participants
@d4rken
Copy link
Owner

d4rken commented Mar 5, 2019

Error in SD Maid

java.lang.RuntimeException in SDMMainActivity.java:111
Unable to start activity ComponentInfo{eu.thedarken.sdm/eu.thedarken.sdm.main.ui.SDMMainActivity}: android.view.InflateException: Binary XML file line #18: Error inflating class ImageView

View on Bugsnag

Stacktrace

ActivityThread.java:2205 - android.app.ActivityThread.performLaunchActivity

View full stacktrace

Created by Matthias Urhahn via Bugsnag

@d4rken d4rken added the bugsnag label Mar 5, 2019

@d4rken

This comment has been minimized.

Copy link
Owner Author

d4rken commented Mar 5, 2019

java.lang.RuntimeException: Unable to start activity ComponentInfo{eu.thedarken.sdm/eu.thedarken.sdm.main.ui.SDMMainActivity}: android.view.InflateException: Binary XML file line #18: Error inflating class ImageView
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2205)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2255)
        at android.app.ActivityThread.access$800(ActivityThread.java:142)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1203)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:136)
        at android.app.ActivityThread.main(ActivityThread.java:5118)
        at java.lang.reflect.Method.invokeNative(Method.java:-2)
        at java.lang.reflect.Method.invoke(Method.java:515)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:606)
        at dalvik.system.NativeStart.main(NativeStart.java:-2)
Caused by: android.view.InflateException: Binary XML file line #18: Error inflating class ImageView
        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:713)
        at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
        at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
        at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
        at android.support.v7.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:469)
        at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
        at eu.thedarken.sdm.main.ui.SDMMainActivity.onCreate(SDMMainActivity.java:111)
        at android.app.Activity.performCreate(Activity.java:5275)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2169)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2255)
        at android.app.ActivityThread.access$800(ActivityThread.java:142)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1203)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:136)
        at android.app.ActivityThread.main(ActivityThread.java:5118)
        at java.lang.reflect.Method.invokeNative(Method.java:-2)
        at java.lang.reflect.Method.invoke(Method.java:515)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:606)
        at dalvik.system.NativeStart.main(NativeStart.java:-2)
Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f0800a8 a=-1 r=0x7f0800a8}
        at android.content.res.Resources.loadDrawable(Resources.java:2108)
        at android.content.res.TypedArray.getDrawable(TypedArray.java:602)
        at android.widget.ImageView.<init>(ImageView.java:129)
        at android.support.v7.widget.AppCompatMultiAutoCompleteTextView.<init>(AppCompatImageView.java:72)
        at android.support.v7.widget.AppCompatMultiAutoCompleteTextView.<init>(AppCompatImageView.java:68)
        at android.support.v7.app.AppCompatViewInflater.createImageView(AppCompatViewInflater.java:182)
        at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:106)
        at android.support.v7.app.AppCompatDelegateImpl.createView(AppCompatDelegateImpl.java:1266)
        at android.support.v7.app.AppCompatDelegateImpl.onCreateView(AppCompatDelegateImpl.java:1316)
        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:684)
        at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
        at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
        at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
        at android.support.v7.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:469)
        at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
        at eu.thedarken.sdm.main.ui.SDMMainActivity.onCreate(SDMMainActivity.java:111)
        at android.app.Activity.performCreate(Activity.java:5275)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2169)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2255)
        at android.app.ActivityThread.access$800(ActivityThread.java:142)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1203)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:136)
        at android.app.ActivityThread.main(ActivityThread.java:5118)
        at java.lang.reflect.Method.invokeNative(Method.java:-2)
        at java.lang.reflect.Method.invoke(Method.java:515)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:606)
        at dalvik.system.NativeStart.main(NativeStart.java:-2)

@d4rken d4rken added this to the Next Tasks milestone Mar 5, 2019

@d4rken

This comment has been minimized.

Copy link
Owner Author

d4rken commented Mar 5, 2019

Two affected devices currently:

  • LGE LG-P710 @ 4.4.2
  • Sony E2115 @ 4.4.4
@d4rken

This comment has been minimized.

Copy link
Owner Author

d4rken commented Mar 5, 2019

Is the device rooted, has themes applied?

@d4rken

This comment has been minimized.

Copy link
Owner Author

d4rken commented Mar 5, 2019

Can't reproduce it on a 4.4.4 Emulator

@d4rken

This comment has been minimized.

Copy link
Owner Author

d4rken commented Mar 5, 2019

Hm

./sdmaid/build/intermediates/symbols/debug/R.txt:int drawable ic_instant_app_example 0x7f0800a8
./sdmaid/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r/eu/thedarken/sdm/R.java:    public static final int ic_instant_app_example=0x7f0800a8;
@d4rken

This comment has been minimized.

Copy link
Owner Author

d4rken commented Mar 5, 2019

Not sure why it would try to load that, the instant apps issue was fixed on Google's side some time ago.
Theoretically I could remove that code again and it might fix the issue but fixing something without understanding it sucks 😦

@Dratas

This comment has been minimized.

Copy link

Dratas commented Mar 5, 2019

phone is LG-P710 with 4.4.2 android,properly rooted,stock rom,earlier version before this worked just fine,where i can get version before this update?

@d4rken

This comment has been minimized.

Copy link
Owner Author

d4rken commented Mar 5, 2019

Previous production(v4.12.3) or beta (v4.13.1)?

Here is a link for 4.12.3:
https://www.dropbox.com/s/tfsvmgfkdo9ecgx/SD_Maid-v4.12.3%2841203%29-RELEASE-489700d43.apk?dl=0

@Dratas

This comment has been minimized.

Copy link

Dratas commented Mar 5, 2019

previuos stable release,beta versions never used ☺😃

@d4rken

This comment has been minimized.

Copy link
Owner Author

d4rken commented Mar 6, 2019

There is now also beta v4.13.3 available, please try that too.

@d4rken

This comment has been minimized.

Copy link
Owner Author

d4rken commented Mar 6, 2019

@Dratas

This comment has been minimized.

Copy link

Dratas commented Mar 6, 2019

little update beta version 4.13.3 working,4.12.3 stable working to,but 4.13.0 or wich version is between 4.13.3 beta 4.12.3 from google play just crash after start.

@d4rken d4rken added 3rd party and removed 0 needs info/repro labels Mar 6, 2019

@d4rken

This comment has been minimized.

Copy link
Owner Author

d4rken commented Mar 6, 2019

This more or less confirms my suspicions. This is a ROM bug and while the new update doesn't include a change specific to this, it contains some changes which is enough to alter the installing process slightly such that the bug doesn't occur. So theoretically it could break on the next update again and also just be fixed again on another update.

I would also guess that by doing stuff such as uninstalling/reinstalling other apps, v4.13.2 could suddenly work for you.

I'm closing this as there is not much more I can do here. You can keep using 4.13.3.

@d4rken d4rken closed this Mar 6, 2019

@d4rken

This comment has been minimized.

Copy link
Owner Author

d4rken commented Mar 6, 2019

An error linked to this issue has been reopened in Bugsnag
java.lang.RuntimeException in SDMMainActivity.java:111

@d4rken d4rken reopened this Mar 6, 2019

@Dratas

This comment has been minimized.

Copy link

Dratas commented Mar 22, 2019

looks like after last update to lastest version crashes back again :D this time even beta not helping,because from beta getting not 4.13.3 version :)

@d4rken

This comment has been minimized.

Copy link
Owner Author

d4rken commented Mar 22, 2019

So random ☹️. Do you have time to try something?

Uninstall SD Maid, uninstall 3-4 other random apps, reboot, install SD Maid see if crash, if it fails, reinstall other apps, try again.

@Dratas

This comment has been minimized.

Copy link

Dratas commented Mar 22, 2019

just random mind,could be a sd maid pro unlocker cause these issues ?

@d4rken

This comment has been minimized.

Copy link
Owner Author

d4rken commented Mar 22, 2019

Nope, the error says it tries to find a file that isn't there, in SD Maids APK. The thing is it's either in the apk or it isn't and it works on all other devicesm except for some LG devices with Android 4.4.

The only sane thing that I could think of was that I'm using some Android 4.4 incompatible code or code that triggers a bug on just this LG ROM, but it worked on v4.13.3 and doesn't work with v4.13.4 and I didn't make changes that affect this, so this is just random 😲 ?!

@d4rken

This comment has been minimized.

Copy link
Owner Author

d4rken commented Mar 22, 2019

@Dratas

This comment has been minimized.

Copy link

Dratas commented Mar 22, 2019

once i drop this chinese electronic piece into wall :D earlier 4.13.3 beta worked,now stable 4.13.3 not working :)

@d4rken

This comment has been minimized.

Copy link
Owner Author

d4rken commented Mar 22, 2019

It's the same file you got via beta the beta program 🤷‍♂️

@Dratas

This comment has been minimized.

Copy link

Dratas commented Mar 22, 2019

now working,what i did just installed older version and updated,but not from google play,via apkupdater app ☺

@d4rken

This comment has been minimized.

Copy link
Owner Author

d4rken commented Mar 23, 2019

Still random, the source update shouldn't make a difference because it all goes through the systems apk installer.

I'm closing this again as this is something I can't fix 😦 .

@d4rken d4rken closed this Mar 23, 2019

@d4rken d4rken added the Can't fix label Mar 23, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.