chrisjenx / Calligraphy

Custom fonts in Android the easy way...
Apache License 2.0
8.59k stars 1.09k forks source link

Inflation crash #402

Closed AhmedML closed 5 years ago

AhmedML commented 7 years ago

The following accident sometimes occurs

#0. Crashed: main: 0 0 0x0000000000000000
       at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
       at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.inflate(CalligraphyLayoutInflater.java:60)
       at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
       at com.test.core.agences.AgenceDetailFragment.onCreateView(AgenceDetailFragment.java:52)
       at android.support.v4.app.Fragment.performCreateView(Fragment.java:2184)
       at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1298)
       at android.support.v4.app.FragmentManagerImpl.moveFragmentsToInvisible(FragmentManager.java:2323)
       at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2136)
       at android.support.v4.app.FragmentManagerImpl.optimizeAndExecuteOps(FragmentManager.java:2092)
       at android.support.v4.app.FragmentManagerImpl.popBackStackImmediate(FragmentManager.java:822)
       at android.support.v4.app.FragmentManagerImpl.popBackStackImmediate(FragmentManager.java:775)
       at android.support.v4.app.FragmentActivity.onBackPressed(FragmentActivity.java:178)
       at com.test.base.BaseFragment$1.onClick(BaseFragment.java:50)
       at android.view.View.performClick(View.java:5265)
       at android.view.View$PerformClick.run(View.java:21534)
       at android.os.Handler.handleCallback(Handler.java:815)
       at android.os.Handler.dispatchMessage(Handler.java:104)
       at android.os.Looper.loop(Looper.java:207)
       at android.app.ActivityThread.main(ActivityThread.java:5728)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)

--

Fatal Exception: android.view.InflateException: Binary XML file line #95: Binary XML file line #95: Error inflating class fragment
       at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
       at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.inflate(CalligraphyLayoutInflater.java:60)
       at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
       at com.test.agences.AgenceDetailFragment.onCreateView(AgenceDetailFragment.java:52)
       at android.support.v4.app.Fragment.performCreateView(Fragment.java:2184)
       at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1298)
       at android.support.v4.app.FragmentManagerImpl.moveFragmentsToInvisible(FragmentManager.java:2323)
       at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2136)
       at android.support.v4.app.FragmentManagerImpl.optimizeAndExecuteOps(FragmentManager.java:2092)
       at android.support.v4.app.FragmentManagerImpl.popBackStackImmediate(FragmentManager.java:822)
       at android.support.v4.app.FragmentManagerImpl.popBackStackImmediate(FragmentManager.java:775)
       at android.support.v4.app.FragmentActivity.onBackPressed(FragmentActivity.java:178)
       at com.test.base.BaseFragment$1.onClick(BaseFragment.java:50)
       at android.view.View.performClick(View.java:5265)
       at android.view.View$PerformClick.run(View.java:21534)
       at android.os.Handler.handleCallback(Handler.java:815)
       at android.os.Handler.dispatchMessage(Handler.java:104)
       at android.os.Looper.loop(Looper.java:207)
       at android.app.ActivityThread.main(ActivityThread.java:5728)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
Caused by android.view.InflateException: Binary XML file line #95: Error inflating class fragment
       at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:782)
       at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
       at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
       at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
       at android.view.LayoutInflater.rInflate(LayoutInflater.java:838)
       at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
       at android.view.LayoutInflater.rInflate(LayoutInflater.java:838)
       at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
       at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
       at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.inflate(CalligraphyLayoutInflater.java:60)
       at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
       at com.test.core.agences.AgenceDetailFragment.onCreateView(AgenceDetailFragment.java:52)
       at android.support.v4.app.Fragment.performCreateView(Fragment.java:2184)
       at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1298)
       at android.support.v4.app.FragmentManagerImpl.moveFragmentsToInvisible(FragmentManager.java:2323)
       at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2136)
       at android.support.v4.app.FragmentManagerImpl.optimizeAndExecuteOps(FragmentManager.java:2092)
       at android.support.v4.app.FragmentManagerImpl.popBackStackImmediate(FragmentManager.java:822)
       at android.support.v4.app.FragmentManagerImpl.popBackStackImmediate(FragmentManager.java:775)
       at android.support.v4.app.FragmentActivity.onBackPressed(FragmentActivity.java:178)
       at com.test.base.BaseFragment$1.onClick(BaseFragment.java:50)
       at android.view.View.performClick(View.java:5265)
       at android.view.View$PerformClick.run(View.java:21534)
       at android.os.Handler.handleCallback(Handler.java:815)
       at android.os.Handler.dispatchMessage(Handler.java:104)
       at android.os.Looper.loop(Looper.java:207)
       at android.app.ActivityThread.main(ActivityThread.java:5728)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
Caused by java.lang.IllegalArgumentException: Binary XML file line #95: Duplicate id 0x7f0d00cc, tag null, or parent id 0x7f0d00cb with another fragment for com.google.android.gms.maps.SupportMapFragment
       at android.support.v4.app.FragmentManagerImpl.onCreateView(FragmentManager.java:3364)
       at android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:47)
       at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater$WrapperFactory2.onCreateView(CalligraphyLayoutInflater.java:280)
       at android.view.LayoutInflater$FactoryMerger.onCreateView(LayoutInflater.java:186)
       at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:746)
       at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
       at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
       at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
       at android.view.LayoutInflater.rInflate(LayoutInflater.java:838)
       at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
       at android.view.LayoutInflater.rInflate(LayoutInflater.java:838)
       at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
       at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
       at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.inflate(CalligraphyLayoutInflater.java:60)
       at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
       at com.test.core.agences.AgenceDetailFragment.onCreateView(AgenceDetailFragment.java:52)
       at android.support.v4.app.Fragment.performCreateView(Fragment.java:2184)
       at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1298)
       at android.support.v4.app.FragmentManagerImpl.moveFragmentsToInvisible(FragmentManager.java:2323)
       at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2136)
       at android.support.v4.app.FragmentManagerImpl.optimizeAndExecuteOps(FragmentManager.java:2092)
       at android.support.v4.app.FragmentManagerImpl.popBackStackImmediate(FragmentManager.java:822)
       at android.support.v4.app.FragmentManagerImpl.popBackStackImmediate(FragmentManager.java:775)
       at android.support.v4.app.FragmentActivity.onBackPressed(FragmentActivity.java:178)
       at com.test.base.BaseFragment$1.onClick(BaseFragment.java:50)
       at android.view.View.performClick(View.java:5265)
       at android.view.View$PerformClick.run(View.java:21534)
       at android.os.Handler.handleCallback(Handler.java:815)
       at android.os.Handler.dispatchMessage(Handler.java:104)
       at android.os.Looper.loop(Looper.java:207)
       at android.app.ActivityThread.main(ActivityThread.java:5728)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
capture d ecran 2017-07-11 a 11 23 15 a m
hadian90 commented 7 years ago

I'm getting the same error

slartus commented 6 years ago

+1

PHONE MODEL SM-G900F
ANDROID VERSION 6.0.1
AVAILABLE MEM SIZE 3887833088
STACK TRACE
chrisjenx commented 5 years ago

Update gradle and plugin.