[OnePlus 6 Questions & Answers] sniperbr0:
Hi folks,

Since I updated to 9.0.4, my phone app dialer crashes whenever I click the green dialer button. The phone app opens normally, and I can make calls if I create a contact for the number I want to call, but I cannot open the dialer, as it crashes the phone app.

I used logcat to find the exception below. It seems the apk or the xml for the app layout is corrupt or improper for this version, as it cannot find the proper width to render. I am not sure how to fix this, as I already tried clearing the app storage and wipe all cache. Would replacing the apk by another one from someone that has it working fix it? If so, could someone please upload it? the package should be "package:/system/priv-app/Dialer/Dialer.apk=com.android.dialer"

Thanks in advance

03-03 10:24:56.367 16656 16656 E dialer_ui: showDialpadFragment from onClick

03-03 10:24:56.367 16656 16656 E dialer_ui: showDialpadFragment animate = true;isDialpadShown = false;stateSaved = false

03-03 10:24:56.369 16656 16656 D OPSwitchFloatingActionButton: fabDisappear1 mIsDisappear1:true

03-03 10:24:56.370 16656 16656 E dialer_ui: maybeEnterSearchUi from showDialpadFragment 11

03-03 10:24:56.370 16656 16656 E dialer_ui: isInSearchUi inDialpadSearch = false;inRegularSearch = false;inNewSearch = false

03-03 10:24:56.370 16656 16656 I Dialer : DialtactsActivity.enterSearchUi - smart dial: true

03-03 10:24:56.371 16656 16656 E dialer_ui: enterSearchUi smartDialSearch = true;animate = false

03-03 10:24:56.371 16656 16656 D OPSwitchFloatingActionButton: fabDisappear1 mIsDisappear1:true

03-03 10:24:56.378 16656 16656 I Dialer : DialerUiTaskFragment.create - creating new DialerUiTaskFragment for DialpadFragment.initPhoneNumberFormattingTextWatcher

03-03 10:24:56.408 16656 16656 E .android.diale: Invalid ID 0x00000000.

03-03 10:24:56.421 16656 16656 E .android.diale: Invalid ID 0x00000000.

03-03 10:24:56.427 16656 16656 D AndroidRuntime: Shutting down VM

03-03 10:22:35.446 16516 16516 E AndroidRuntime: FATAL EXCEPTION: main

03-03 10:22:35.446 16516 16516 E AndroidRuntime: Process: com.android.dialer, PID: 16516

03-03 10:22:35.446 16516 16516 E AndroidRuntime: android.view.InflateException: Binary XML file line #132: Binary XML file line #23: You must supply a layout_width attribute.

03-03 10:22:35.446 16516 16516 E AndroidRuntime: Caused by: java.lang.UnsupportedOperationException: Binary XML file line #23: You must supply a layout_width attribute.

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:798)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:7766)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.ViewGroup$MarginLayoutParams.<init>(ViewGroup.java:7958)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.widget.FrameLayout$LayoutParams.<init>(FrameLayout.java:439)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.widget.FrameLayout.generateLayoutParams(FrameLayout.java:370)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.widget.FrameLayout.generateLayoutParams(FrameLayout.java:56)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.LayoutInflater.rInflate(LayoutInflater.java:865)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.LayoutInflater.parseInclude(LayoutInflater.java:995)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.LayoutInflater.rInflate(LayoutInflater.java:859)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.LayoutInflater.parseInclude(LayoutInflater.java:995)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.LayoutInflater.rInflate(LayoutInflater.java:859)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.LayoutInflater.parseInclude(LayoutInflater.java:995)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.LayoutInflater.rInflate(LayoutInflater.java:859)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.LayoutInflater.parseInclude(LayoutInflater.java:963)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.LayoutInflater.rInflate(LayoutInflater.java:859)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.LayoutInflater.inflate(LayoutInflater.java:515)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.view.LayoutInflater.inflate(LayoutInflater.java:423)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at com.android.dialer.dialpadview.DialpadFragment.onCreateView(DialpadFragment.java:402)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.app.Fragment.performCreateView(Fragment.java:2522)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1298)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2426)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2205)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2161)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2062)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.app.FragmentManagerImpl$1.run(FragmentManager.java:738)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.os.Handler.handleCallback(Handler.java:873)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:99)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:193)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at android.app.ActivityThread.main(ActivityThread.java:6863)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)

03-03 10:22:35.446 16516 16516 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

03-03 10:24:56.429 16656 16656 E AndroidRuntime: FATAL EXCEPTION: main

03-03 10:24:56.429 16656 16656 E AndroidRuntime: Process: com.android.dialer, PID: 16656

03-03 10:24:56.429 16656 16656 E AndroidRuntime: android.view.InflateException: Binary XML file line #132: Binary XML file line #23: You must supply a layout_width attribute.

03-03 10:24:56.429 16656 16656 E AndroidRuntime: Caused by: java.lang.UnsupportedOperationException: Binary XML file line #23: You must supply a layout_width attribute.

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:798)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:7766)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.ViewGroup$MarginLayoutParams.<init>(ViewGroup.java:7958)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.widget.FrameLayout$LayoutParams.<init>(FrameLayout.java:439)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.widget.FrameLayout.generateLayoutParams(FrameLayout.java:370)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.widget.FrameLayout.generateLayoutParams(FrameLayout.java:56)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.LayoutInflater.rInflate(LayoutInflater.java:865)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.LayoutInflater.parseInclude(LayoutInflater.java:995)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.LayoutInflater.rInflate(LayoutInflater.java:859)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.LayoutInflater.parseInclude(LayoutInflater.java:995)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.LayoutInflater.rInflate(LayoutInflater.java:859)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.LayoutInflater.parseInclude(LayoutInflater.java:995)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.LayoutInflater.rInflate(LayoutInflater.java:859)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.LayoutInflater.parseInclude(LayoutInflater.java:963)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.LayoutInflater.rInflate(LayoutInflater.java:859)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.LayoutInflater.inflate(LayoutInflater.java:515)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.view.LayoutInflater.inflate(LayoutInflater.java:423)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at com.android.dialer.dialpadview.DialpadFragment.onCreateView(DialpadFragment.java:402)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.app.Fragment.performCreateView(Fragment.java:2522)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1298)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2426)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2205)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2161)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2062)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.app.FragmentManagerImpl$1.run(FragmentManager.java:738)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.os.Handler.handleCallback(Handler.java:873)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:99)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:193)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at android.app.ActivityThread.main(ActivityThread.java:6863)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)

03-03 10:24:56.429 16656 16656 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

03-03 10:24:56.438 16656 16656 E OPDiagnose: OPDiagnoseManager addIssueCount type = 31, count = 1

03-03 10:24:56.438 16656 16656 E : BpOPDiagnoseServer addIssueCount type = 31, count = 1

03-03 10:24:56.438 738 765 E : BnOPDiagnoseServer ADD_ISSUE_COUNT type = 31, count = 1

03-03 10:24:56.438 738 765 W OPDiagnoseService: OPDiagnoseService addIssueCount type = 31, count = 1

03-03 10:24:56.438 738 764 D OPDiagnoseService: OPDiagnoseService get issue item...31

03-03 10:24:56.439 16656 16715 D OSTracker: OS Event: system_app_crash

03-03 10:24:52.046 880 1129 D BatteryStatsService: ext-flush too soon, skip

03-03 10:24:56.441 880 7635 W ActivityManager: Force finishing activity com.android.dialer/com.oneplus.contacts.activities.OPDialtactsActivity

03-03 10:24:56.449 880 7635 D ActivityTrigger: ActivityTrigger activityPauseTrigger

03-03 10:24:56.464 880 1136 D RestartProcessManager: increase duration : 8007 for com.android.dialer