Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24737

Android: Reading property "WebView.disableContextMenu" causes crash if never assigned

    Details

      Description

      Edit from Joshua Quick:
      The stack-trace indicates that this is actually a WebView bug, not a ListView bug. Please see my comment below this post.

      Original Post:
      Please check/test 6.1.0.Rc on Android with Listview error, console log attached with file.

      This error occurs when I use 6.1.0.RC with a listview in our production app.
      Switching back to 6.0.4.GA, the error goes away.

      Version I was testing with
      6.1.0.v20170524102117

      iOS does not seem to be affected. Only on Android.

      Cannot share full code as production code.

      Listview has a headerView.
      ListItem is...

      var listitem = {
      	template: 'template',
      	title: {text: item.title},
      	subtitle: {text: item.subtitle},
      	properties: {
      		accessoryType: Ti.UI.LIST_ACCESSORY_TYPE_DISCLOSURE,
      		itemId: item.itemId,
      		modname: item.modname,
      		resourcetype: item.template
      	}
      };
      

      Output:

      [WARN] :   W/System.err: java.lang.IllegalArgumentException: Unable to convert null to boolean.
      [WARN] :   W/System.err: 	at org.appcelerator.titanium.util.TiConvert.toBoolean(TiConvert.java:357)
      [WARN] :   W/System.err: 	at ti.modules.titanium.ui.WebViewProxy.getDisableContextMenu(WebViewProxy.java:354)
      [WARN] :   W/System.err: 	at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)
      [WARN] :   W/System.err: 	at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:62)
      [WARN] :   W/System.err: 	at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:872)
      [WARN] :   W/System.err: 	at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1095)
      [WARN] :   W/System.err: 	at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:360)
      [WARN] :   W/System.err: 	at ti.modules.titanium.ui.widget.listview.ListViewProxy.handleMessage(ListViewProxy.java:320)
      [WARN] :   W/System.err: 	at android.os.Handler.dispatchMessage(Handler.java:98)
      [WARN] :   W/System.err: 	at android.os.Looper.loop(Looper.java:148)
      [WARN] :   W/System.err: 	at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:118)
      [ERROR] :  TiExceptionHandler: (main) [103,25598] ----- Titanium Javascript Runtime Error -----
      [ERROR] :  TiExceptionHandler: (main) [0,25598] - In ti:/titanium.js:207,24
      [ERROR] :  TiExceptionHandler: (main) [0,25598] - Message: Uncaught Unable to convert null to boolean.
      [ERROR] :  TiExceptionHandler: (main) [0,25598] - Source: 			serialized[k] = this[k];
      [DEBUG] :  ViewRootImpl: #1 mView = com.android.internal.policy.PhoneWindow$DecorView{99b1dd3 V.E...... R.....I. 0,0-0,0}
      [ERROR] :  V8Exception: Exception occurred at ti:/titanium.js:207: Uncaught Unable to convert null to boolean.
      [ERROR] :  V8Exception: Unable to convert null to boolean.
      [WARN] :   TiBlob: (KrollRuntimeThread) [41,25639] getNativePath not supported for non-file blob types.
      [WARN] :   TiBlob: (KrollRuntimeThread) [0,25639] getFile not supported for non-file blob types.
      

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              threethirds Anthony Chung
              Reviewer:
              Joshua Quick
              Tester:
              Samir Mohammed
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-10723
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration