java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Impacted Cases ============== Crash in Android API >= 24 API. Reproduce Test Steps ==================== Opening class extends XWalkActivityAppCompat in the first time work fine. Then press back and opening again - crash. Crash shows this line in xml: http://prntscr.com/e9dxm8 Log: 02-16 08:43:39.942 2937-2937/ru.initium.directorix E/AndroidRuntime: FATAL EXCEPTION: main Process: ru.initium.directorix, PID: 2937 java.lang.RuntimeException: Unable to start activity ComponentInfo{ru.initium.directorix/ru.initium.directorix.views.activities.MapActivity}: android.view.InflateException: Binary XML file line #48: Binary XML file line #48: Error inflating class <unknown> at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6119) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) Caused by: android.view.InflateException: Binary XML file line #48: Binary XML file line #48: Error inflating class <unknown> Caused by: android.view.InflateException: Binary XML file line #48: Error inflating class <unknown> Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:430) at android.view.LayoutInflater.createView(LayoutInflater.java:645) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:787) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727) at android.view.LayoutInflater.rInflate(LayoutInflater.java:858) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821) at android.view.LayoutInflater.rInflate(LayoutInflater.java:861) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821) at android.view.LayoutInflater.inflate(LayoutInflater.java:518) at android.view.LayoutInflater.inflate(LayoutInflater.java:426) at android.view.LayoutInflater.inflate(LayoutInflater.java:377) at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:288) at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) at ru.initium.directorix.views.activities.MapActivity.onCreate(MapActivity.java:140) at android.app.Activity.performCreate(Activity.java:6679) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6119) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) Caused by: java.lang.RuntimeException: java.lang.UnsupportedOperationException: TextureView doesn't support displaying a background drawable at org.xwalk.core.ReflectConstructor.newInstance(ReflectConstructor.java:54) at org.xwalk.core.XWalkView.reflectionInit(XWalkView.java:2082) at org.xwalk.core.XWalkView.<init>(XWalkView.java:299) at java.lang.reflect.Constructor.newInstance0(Native Method)  at java.lang.reflect.Constructor.newInstance(Constructor.java:430)  at android.view.LayoutInflater.createView(LayoutInflater.java:645)  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:787)  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)  at android.view.LayoutInflater.rInflate(LayoutInflater.java:858)  at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)  at android.view.LayoutInflater.rInflate(LayoutInflater.java:861)  at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)  at android.view.LayoutInflater.inflate(LayoutInflater.java:518)  at android.view.LayoutInflater.inflate(LayoutInflater.java:426)  at android.view.LayoutInflater.inflate(LayoutInflater.java:377)  at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:288)  at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)  at ru.initium.directorix.views.activities.MapActivity.onCreate(MapActivity.java:140)  at android.app.Activity.performCreate(Activity.java:6679)  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)  at android.app.ActivityThread.-wrap12(ActivityThread.java)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:154)  at android.app.ActivityThread.main(ActivityThread.java:6119)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)  Caused by: java.lang.UnsupportedOperationException: TextureView doesn't support displaying a background drawable at android.view.TextureView.setBackgroundDrawable(TextureView.java:316) at android.view.View.setBackground(View.java:18247) at android.view.View.setBackgroundColor(View.java:18209) at org.chromium.content.browser.ContentViewRenderView.initTextureView(ContentViewRenderView.java:68) at org.chromium.content.browser.ContentViewRenderView.<init>(ContentViewRenderView.java:145) 02-16 08:43:39.942 2937-2937/ru.initium.directorix E/AndroidRuntime: at org.xwalk.core.internal.XWalkContent$2.<init>(XWalkContent.java:191) at org.xwalk.core.internal.XWalkContent.setNativeContent(XWalkContent.java:191) at org.xwalk.core.internal.XWalkContent.<init>(XWalkContent.java:151) at org.xwalk.core.internal.XWalkViewInternal.initXWalkContent(XWalkViewInternal.java:383) at org.xwalk.core.internal.XWalkViewBridge.<init>(XWalkViewBridge.java:72) at java.lang.reflect.Constructor.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:430) at org.xwalk.core.ReflectConstructor.newInstance(ReflectConstructor.java:48) ... 29 more Expected Outcome ================ No crash. Actual Outcome ============== Test Case Source Code ===================== Test Builds =========== Issue Analysis ==============
    via by Vladimir Rybalka,
  • Crash with 1.3.0
    via GitHub by emartynov
    ,
  • Android Studio InflateException
    via Stack Overflow by Zoheb Satta
    ,
    • java.lang.RuntimeException: Unable to start activity ComponentInfo{ru.initium.directorix/ru.initium.directorix.views.activities.MapActivity}: android.view.InflateException: Binary XML file line #48: Binary XML file line #48: Error inflating class <unknown> at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)

    Users with the same issue

    filipebatistafilipebatista
    1 times, last one,
    Agócs TamásAgócs Tamás
    1 times, last one,
    ReichReich
    63 times, last one,
    Alexandru PopaAlexandru Popa
    16 times, last one,
    Aria PahlavanAria Pahlavan
    1045 times, last one,
    101 more bugmates