java.lang.UnsupportedOperationException | 5 months ago
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Use hardwareAcceleration flag with Canvas.clipPath

    Stack Overflow | 6 years ago | Marcos Vasconcelos
  2. 0

    UnsupportedOperationException in custom view

    Stack Overflow | 5 years ago | schlingel
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Honeycomb introduced hardware acceleration which can be turned on with a setting in the <application> node of AndroidManifest.xml. When it's turned on, and a view has a borderRadius set (> 0), the app crashes because we use clipPath, which is not supported with hw accel. (cf Re-creation steps: * Create an app. * Make the tiapp.xml's <android> section so: {code:title=tiapp.xml} <android xmlns:android=""> <tool-api-level>11</tool-api-level> <manifest> <application android:hardwareAccelerated="true"/> </manifest> </android> {code} * Make the app.js so: {code:title=app.js} Titanium.UI.setBackgroundColor('#000'); var win = Titanium.UI.createWindow({ title:'Test', backgroundColor:'#000', exitOnClose: true }); win.add(Ti.UI.createView({ backgroundColor: "blue", borderColor: "red", borderWidth: 10, borderRadius: 5, left: "10dp", right: "10dp", top: "50dp", height: "200dp" }));; {code} * Run the app on the honeycomb device and it will crash. (When testing the fix, it should not crash of course.). Typical crash logcat entry looks like: {code} E/AndroidRuntime(26499): java.lang.UnsupportedOperationException E/AndroidRuntime(26499): at android.view.GLES20Canvas.clipPath( E/AndroidRuntime(26499): at org.appcelerator.titanium.view.TiBackgroundDrawable.draw( E/AndroidRuntime(26499): at android.view.View.draw( ... (etc) {code}

    Appcelerator JIRA | 6 years ago | Bill Dawson

    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

      No message provided

      at android.view.GLES20Canvas.clipPath()
    2. Android Platform
      1. android.view.GLES20Canvas.clipPath(
      1 frame
      2 frames
    4. Android Platform
      1. android.view.View.draw(
      1 frame