Details

      Description

      PROBLEM DESCRIPTION

      Upon opening a window which includes a webView the following errors are seen in the console and the app crashes.

      LOG

      Log

      [DEBUG] objc[35284]: Method cache corrupted. This may be a message to an invalid object, or a memory error somewhere else.
      [DEBUG] objc[35284]: receiver 0xe592b10, SEL 0x43d3643, isa 0xf2f4a8, cache 0xf2f4b0, buckets 0xe9e74b, mask 0xb, occupied 0x0
      [DEBUG] objc[35284]: receiver 32 bytes, buckets 0 bytes
      [DEBUG] objc[35284]: selector 'release'
      [DEBUG] objc[35284]: isa ''
      [DEBUG] objc[35284]: Method cache corrupted.
      

      TESTCASE

      Here's the webview.js file

      webview

          var win = Ti.UI.createWindow();
       
          win.orientationModes= [Ti.UI.LANDSCAPE_LEFT,Ti.UI.LANDSCAPE_RIGHT,Ti.UI.PORTRAIT,Ti.UI.UPSIDE_PORTRAIT];
       
      	var web = Ti.UI.createWebView({
      		url: url,
      		width: Ti.UI.FILL,
      		height: Ti.UI.FILL,
      		top: 0,
      		left: 0
      	});
       
      		web.addEventListener('load', function() {
      			win.setTitle(web.evalJS('document.title'));
      		});
       
      		web.addEventListener('error', function(e) {
      			if(e.errorCode== -1003 || e.error == -1000 || e.error == -1006) al.add("That's one bad URL.");
      			else alert(e.message)
      		});
       
      	win.add(web);
       
          return win;
      

      The above is wrapped inside a module.exports. The calling window grabs the returned win object, and opens it as a child window in the active tab of a Tab Group.

        Attachments

          Activity

            People

            • Assignee:
              srahim Sabil Rahim
              Reporter:
              dezinezync Nikhil N
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code