java.lang.UnsupportedOperationException: setLayerType

JIRA | Tang, Shaofeng | 1 year ago
  1. 0

    In XWalkActivity When try to invoke 'setLayerType(View.LAYER_TYPE_SOFTWARE, null)' in dispatchDraw method of a subclass of XWalkView. An exception is thrown: java.lang.UnsupportedOperationException: setLayerType at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:57) at org.xwalk.core.XWalkView.setLayerType(XWalkView.java:596) at com.intel.otc.xwalk.xwalkembed.MyXWalkView.dispatchDraw(MyXWalkView.java:58) It seems this method is not supported yet. In XWalkInitializer, The error message is little different. No exception is thrown. But a logcat is recorded as below 09-10 18:04:01.757 7133-7133/org.xwalk.embedded.api.asyncsample I/SetLayerTypeXWalkView﹕ +++++++++++++++Canvas Hardware accelerated: true 09-10 18:04:01.757 7133-7133/org.xwalk.embedded.api.asyncsample W/XWalkViewInternal﹕ LAYER_TYPE_SOFTWARE is not supported by XwalkView 09-10 18:04:01.757 7133-7133/org.xwalk.embedded.api.asyncsample I/SetLayerTypeXWalkView﹕ ------------------------------------DispatchDraw is completed with Hardware accelerated 09-10 18:04:01.857 7133-7133/org.xwalk.embedded.api.asyncsample I/SetLayerTypeXWalkView﹕ +++++++++++++++Canvas Hardware accelerated: true 09-10 18:04:01.857 7133-7133/org.xwalk.embedded.api.asyncsample W/XWalkViewInternal﹕ LAYER_TYPE_SOFTWARE is not supported by XwalkView 09-10 18:04:01.857 7133-7133/org.xwalk.embedded.api.asyncsample I/SetLayerTypeXWalkView﹕ ------------------------------------DispatchDraw is completed with Hardware accelerated 09-10 18:04:01.947 7133-7133/org.xwalk.embedded.api.asyncsample I/SetLayerTypeXWalkView﹕ +++++++++++++++Canvas Hardware accelerated: true 09-10 18:04:01.947 7133-7133/org.xwalk.embedded.api.asyncsample W/XWalkViewInternal﹕ LAYER_TYPE_SOFTWARE is not supported by XwalkView

    JIRA | 1 year ago | Tang, Shaofeng
    java.lang.UnsupportedOperationException: setLayerType
  2. 0

    In XWalkActivity When try to invoke 'setLayerType(View.LAYER_TYPE_SOFTWARE, null)' in dispatchDraw method of a subclass of XWalkView. An exception is thrown: java.lang.UnsupportedOperationException: setLayerType at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:57) at org.xwalk.core.XWalkView.setLayerType(XWalkView.java:596) at com.intel.otc.xwalk.xwalkembed.MyXWalkView.dispatchDraw(MyXWalkView.java:58) It seems this method is not supported yet. In XWalkInitializer, The error message is little different. No exception is thrown. But a logcat is recorded as below 09-10 18:04:01.757 7133-7133/org.xwalk.embedded.api.asyncsample I/SetLayerTypeXWalkView﹕ +++++++++++++++Canvas Hardware accelerated: true 09-10 18:04:01.757 7133-7133/org.xwalk.embedded.api.asyncsample W/XWalkViewInternal﹕ LAYER_TYPE_SOFTWARE is not supported by XwalkView 09-10 18:04:01.757 7133-7133/org.xwalk.embedded.api.asyncsample I/SetLayerTypeXWalkView﹕ ------------------------------------DispatchDraw is completed with Hardware accelerated 09-10 18:04:01.857 7133-7133/org.xwalk.embedded.api.asyncsample I/SetLayerTypeXWalkView﹕ +++++++++++++++Canvas Hardware accelerated: true 09-10 18:04:01.857 7133-7133/org.xwalk.embedded.api.asyncsample W/XWalkViewInternal﹕ LAYER_TYPE_SOFTWARE is not supported by XwalkView 09-10 18:04:01.857 7133-7133/org.xwalk.embedded.api.asyncsample I/SetLayerTypeXWalkView﹕ ------------------------------------DispatchDraw is completed with Hardware accelerated 09-10 18:04:01.947 7133-7133/org.xwalk.embedded.api.asyncsample I/SetLayerTypeXWalkView﹕ +++++++++++++++Canvas Hardware accelerated: true 09-10 18:04:01.947 7133-7133/org.xwalk.embedded.api.asyncsample W/XWalkViewInternal﹕ LAYER_TYPE_SOFTWARE is not supported by XwalkView

    JIRA | 1 year ago | Tang, Shaofeng
    java.lang.UnsupportedOperationException: setLayerType
  3. 0

    crosswalk crash again

    GitHub | 1 year ago | scottsut
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.guohuaigroup.GuoHuaiDevApp/com.guohuaigroup.GuoHuaiDevApp.MainActivity}: java.lang.UnsupportedOperationException: setLayerType
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    App crashes on start on older devices with crosswalk 14+

    GitHub | 1 year ago | RobinsonAndrew
    java.lang.RuntimeException: Unable to start activity ComponentInfo{co.yavi.dev/co.yavi.dev.MainActivity}: java.lang.UnsupportedOperationException: setLayerType
  6. 0

    GitHub comment 74#150980837

    GitHub | 1 year ago | Titoine
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp.toto/com.myapp.toto.MainActivity}: java.lang.UnsupportedOperationException: setLayerType

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      setLayerType

      at org.xwalk.core.ReflectMethod.invoke()
    2. org.xwalk.core
      XWalkView.setLayerType
      1. org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:57)
      2. org.xwalk.core.XWalkView.setLayerType(XWalkView.java:596)
      2 frames
    3. com.intel.otc
      MyXWalkView.dispatchDraw
      1. com.intel.otc.xwalk.xwalkembed.MyXWalkView.dispatchDraw(MyXWalkView.java:58)
      1 frame