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

iOS8: DocumentViewer: Unbalanced calls to begin/end appearance transitions for QLRemotePreviewContentController

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 4.0.0, Release 4.1.0
    • Component/s: iOS
    • Labels:
    • Environment:

      Titanium SDK 3.5.1.GA & 4.0.0.v20150323131014
      iOS 8.2 (12D508) iPad Air Simulator

    • Story Points:
      5
    • Sprint:
      2015 Sprint 10 SDK

      Description

      Issue Description

      We get the following message when loading a pdf in the DocumentViewer component: "Unbalanced calls to begin/end appearance transitions for <QLRemotePreviewContentController: 0x173d4e00>". Getting this message is sometimes associated with the app freezing but generally app goes okay anyway.

      Sample Code

      var doc = "http://www.legis.state.ak.us/basis/iphonepages/IPV3get_documents.asp?session=29&docid=3324&minname=Agenda%5FLBA%5F17Mar15%5FLocation+Change%2Epdf";
      var win = Ti.UI.createWindow();
      win.open();
      var file = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'document.pdf'),
          client = Ti.Network.createHTTPClient({
      	onload : function() {
      		// Open a doc viewer.
      		var docViewer = Ti.UI.iOS.createDocumentViewer({
      			url : file.nativePath
      		});
      		docViewer.show({
      			animated : true
      		});
      	},
      	onerror : function(e) {
      		alert('Error: ' + e);
      	}
      });
      client.open('GET', doc);
      client.file = file;
      client.send(); 
      

      Console Output

      -- Start simulator log -------------------------------------------------------
      [INFO]  Application started
      [DEBUG] Reading stylesheet from: /Users/egomez/Library/Developer/CoreSimulator/Devices/D2DD3F81-EDBF-4C3B-A975-A41501FF3702/data/Containers/Bundle/Application/AE4C1686-4155-44A9-A3F5-AF463281A0F4/TableViewRepro.app/stylesheet.plist
      [DEBUG] 2015-03-23 16:01:38.614 TableViewRepro[10909:330239] You've implemented -[<UIApplicationDelegate> application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist.
      [DEBUG] 2015-03-23 16:01:38.615 TableViewRepro[10909:330239] You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
      [INFO]  TableViewRepro/1.0 (4.0.0.944c821)
      [DEBUG] Loading: /Users/egomez/Library/Developer/CoreSimulator/Devices/D2DD3F81-EDBF-4C3B-A975-A41501FF3702/data/Containers/Bundle/Application/AE4C1686-4155-44A9-A3F5-AF463281A0F4/TableViewRepro.app/app.js, Resource: app_js
      [DEBUG] Application booted in 415.318012 ms
      [DEBUG] 2015-03-23 16:01:40.414 TableViewRepro[10909:330239] Unbalanced calls to begin/end appearance transitions for <QLRemotePreviewContentController: 0x7fe105059000>.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                egomez Eduardo Gomez (Inactive)
                Reviewer:
                Pedro
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code