-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[BUG] Adding widgets crashes the app #3317
Comments
Same happens with Samsung widgets
|
@qeterme It seems like it's failing to read the app package of the widget. (I assume) |
same issue here. posted it on discord |
@babyharpsea 😩 I'm dealing with this |
That's possible, I read on r/oneui that this issue happens with another launchers as well |
dealing with same issue here on one ui 5. 1 |
same happened to me on one ui 2.5 android 10, and then it got fixed by itself? im using 12.10 dev #1415 btw |
same happened to me on start phone, so why is there an exception? What better solution? 03-29 06:52:00.254 9953 9953 E AndroidRuntime: java.lang.RuntimeException: Unable to create service com.android.quickstep.TouchInteractionService: android.view.InflateException: Binary XML file line #24 in com.android.launcher3:layout/taskbar: Binary XML file line #24 in com.android.launcher3:layout/taskbar: Error inflating class com.android.launcher3.taskbar.TaskbarView |
This issue is stale because it has been open for 90 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stale for 7 days with no activity. |
Describe the bug
When adding a widget from any app, the app crashes.
When coming back to the app, the widget appears, but when I try to resize it (by long-clicking it), it crashes.
I assume that's the bug, when trying to display the resize line.
Thanks for reading!
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
The app not crashing and displaying the resize line.
Screenshots
No response
Device information
Additional context
Lawnchair bug report 8 feb. 2023 11:08:06
version: 12.1.0 Alpha 4 (12010005)
commit: b7ad08c
build.brand: Amazon
build.device: onyx
build.display: PS7326.3183N
build.fingerprint: Amazon/onyx/onyx:9/PS7326.3183N/0025602846464:user/amz-p,release-keys
build.hardware: mt8168
build.id: PS7326.3183N
build.manufacturer: Amazon
build.model: KFONWI
build.product: onyx
build.type: user
version.codename: REL
version.incremental: 0025602846596
version.release: 9
version.sdk_int: 28
display.density_dpi: 196
isRecentsEnabled: false
error: Uncaught exception
android.view.InflateException: Binary XML file line #28: Binary XML file line #28: Error inflating class
Caused by: android.view.InflateException: Binary XML file line #28: Error inflating class
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
at android.view.LayoutInflater.createView(LayoutInflater.java:647)
at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:720)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:788)
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.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at com.android.launcher3.AppWidgetResizeFrame.showForWidget(AppWidgetResizeFrame.java:5)
at com.android.launcher3.Launcher.completeAddAppWidget(Launcher.java:23)
at com.android.launcher3.Launcher$4.run(Launcher.java:1)
at com.android.launcher3.Workspace$6.run(Workspace.java:4)
at com.android.launcher3.anim.AnimatorListeners$1.onAnimationEnd(Unknown Source:2)
at android.animation.Animator$AnimatorListener.onAnimationEnd(Animator.java:552)
at android.animation.AnimatorSet.endAnimation(AnimatorSet.java:1294)
at android.animation.AnimatorSet.doAnimationFrame(AnimatorSet.java:1079)
at android.animation.AnimationHandler.doAnimationFrame(AnimationHandler.java:146)
at android.animation.AnimationHandler.access$100(AnimationHandler.java:37)
at android.animation.AnimationHandler$1.doFrame(AnimationHandler.java:54)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:959)
at android.view.Choreographer.doCallbacks(Choreographer.java:772)
at android.view.Choreographer.doFrame(Choreographer.java:703)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:947)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:211)
at android.app.ActivityThread.main(ActivityThread.java:6769)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: android.content.res.Resources$NotFoundException: Drawable app.lawnchair:drawable/widget_resize_frame with resource ID #0x7f08031a
Caused by: android.content.res.Resources$NotFoundException: File res/pe.xml from drawable resource ID #0x7f08031a
at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:847)
at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:631)
at android.content.res.Resources.loadDrawable(Resources.java:897)
at android.content.res.TypedArray.getDrawableForDensity(TypedArray.java:955)
at android.content.res.TypedArray.getDrawable(TypedArray.java:930)
at android.widget.ImageView.(ImageView.java:189)
at android.widget.ImageView.(ImageView.java:172)
at android.widget.ImageView.(ImageView.java:168)
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
at android.view.LayoutInflater.createView(LayoutInflater.java:647)
at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:720)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:788)
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.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at com.android.launcher3.AppWidgetResizeFrame.showForWidget(AppWidgetResizeFrame.java:5)
at com.android.launcher3.Launcher.completeAddAppWidget(Launcher.java:23)
at com.android.launcher3.Launcher$4.run(Launcher.java:1)
at com.android.launcher3.Workspace$6.run(Workspace.java:4)
at com.android.launcher3.anim.AnimatorListeners$1.onAnimationEnd(Unknown Source:2)
at android.animation.Animator$AnimatorListener.onAnimationEnd(Animator.java:552)
at android.animation.AnimatorSet.endAnimation(AnimatorSet.java:1294)
at android.animation.AnimatorSet.doAnimationFrame(AnimatorSet.java:1079)
at android.animation.AnimationHandler.doAnimationFrame(AnimationHandler.java:146)
at android.animation.AnimationHandler.access$100(AnimationHandler.java:37)
at android.animation.AnimationHandler$1.doFrame(AnimationHandler.java:54)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:959)
at android.view.Choreographer.doCallbacks(Choreographer.java:772)
at android.view.Choreographer.doFrame(Choreographer.java:703)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:947)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:211)
at android.app.ActivityThread.main(ActivityThread.java:6769)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: java.lang.UnsupportedOperationException: Can't convert value at index 0 to dimension: type=0x3
at android.content.res.TypedArray.getDimensionPixelSize(TypedArray.java:736)
at android.graphics.drawable.GradientDrawable.updateDrawableCorners(GradientDrawable.java:1477)
at android.graphics.drawable.GradientDrawable.inflateChildElements(GradientDrawable.java:1435)
at android.graphics.drawable.GradientDrawable.inflate(GradientDrawable.java:1244)
at android.graphics.drawable.DrawableInflater.inflateFromXmlForDensity(DrawableInflater.java:142)
at android.graphics.drawable.Drawable.createFromXmlInnerForDensity(Drawable.java:1332)
at android.graphics.drawable.Drawable.createFromXmlForDensity(Drawable.java:1291)
at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:833)
... 42 more
The text was updated successfully, but these errors were encountered: