{ "id": "146136", "key": "TIMOB-18730", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" }, { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-05-14T17:38:31.000+0000", "created": "2015-03-23T22:18:06.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "triage" ], "versions": [], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T21:49:25.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h6.Issue Description\r\nWe get the following message when loading a pdf in the DocumentViewer component: \"Unbalanced calls to begin/end appearance transitions for \". Getting this message is sometimes associated with the app freezing but generally app goes okay anyway. \r\n\r\nh6.Sample Code\r\n{code}\r\nvar doc = \"http://www.legis.state.ak.us/basis/iphonepages/IPV3get_documents.asp?session=29&docid=3324&minname=Agenda%5FLBA%5F17Mar15%5FLocation+Change%2Epdf\";\r\nvar win = Ti.UI.createWindow();\r\nwin.open();\r\nvar file = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'document.pdf'),\r\n client = Ti.Network.createHTTPClient({\r\n\tonload : function() {\r\n\t\t// Open a doc viewer.\r\n\t\tvar docViewer = Ti.UI.iOS.createDocumentViewer({\r\n\t\t\turl : file.nativePath\r\n\t\t});\r\n\t\tdocViewer.show({\r\n\t\t\tanimated : true\r\n\t\t});\r\n\t},\r\n\tonerror : function(e) {\r\n\t\talert('Error: ' + e);\r\n\t}\r\n});\r\nclient.open('GET', doc);\r\nclient.file = file;\r\nclient.send(); \r\n{code}\r\n\r\nh6.Console Output\r\n{code}\r\n-- Start simulator log -------------------------------------------------------\r\n[INFO] Application started\r\n[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\r\n[DEBUG] 2015-03-23 16:01:38.614 TableViewRepro[10909:330239] You've implemented -[ application:performFetchWithCompletionHandler:], but you still need to add \"fetch\" to the list of your supported UIBackgroundModes in your Info.plist.\r\n[DEBUG] 2015-03-23 16:01:38.615 TableViewRepro[10909:330239] You've implemented -[ application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add \"remote-notification\" to the list of your supported UIBackgroundModes in your Info.plist.\r\n[INFO] TableViewRepro/1.0 (4.0.0.944c821)\r\n[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\r\n[DEBUG] Application booted in 415.318012 ms\r\n[DEBUG] 2015-03-23 16:01:40.414 TableViewRepro[10909:330239] Unbalanced calls to begin/end appearance transitions for .\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS8: DocumentViewer: Unbalanced calls to begin/end appearance transitions for QLRemotePreviewContentController", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 3.5.1.GA & 4.0.0.v20150323131014\r\niOS 8.2 (12D508) iPad Air Simulator", "closedSprints": [ { "id": 404, "state": "closed", "name": "2015 Sprint 10 SDK", "startDate": "2015-05-09T00:00:53.391Z", "endDate": "2015-05-23T00:00:00.000Z", "completeDate": "2015-05-25T14:55:16.386Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "350506", "author": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "body": "I'm geting this error too on iPhone 6 with 8.3 and SDK 3.5.1.GA\r\n\r\nOpening a PDF works random. And sometimes it crashes with this error.\r\n\r\nHope, this will be fixed soon.", "updateAuthor": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-04-23T07:17:24.000+0000", "updated": "2015-04-23T07:17:24.000+0000" }, { "id": "352292", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This might very much be an Apple bug.\r\nEssentially the View controller that is presenting the Document Viewer is in the process of disappearing while the preview is coming up. This is root cause of the warning about Unbalanced calls to begin/end appearance transitions. Not much we can do about it.\r\n\r\nUnrelated to this there are a couple of bugs in the Document Viewer. Test case here\r\n{code}\r\nvar doc = \"http://www.legis.state.ak.us/basis/iphonepages/IPV3get_documents.asp?session=29&docid=3324&minname=Agenda%5FLBA%5F17Mar15%5FLocation+Change%2Epdf\";\r\nvar win = Ti.UI.createWindow({backgroundColor:'blue'});\r\nvar win2 = Ti.UI.createWindow({backgroundColor:'yellow'});\r\nvar file = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'document.pdf');\r\n\r\nvar client = Ti.Network.createHTTPClient({\r\n\tonload : function() {\r\n\t\t// Open a doc viewer.\r\n\t\tvar docViewer = Ti.UI.iOS.createDocumentViewer({\r\n\t\t\turl : file.nativePath\r\n\t\t});\r\n\t\tdocViewer.show({\r\n\t\t\tanimated : true\r\n\t\t});\r\n\t},\r\n\tonerror : function(e) {\r\n\t\talert('Error: ' + e);\r\n\t}\r\n});\r\n\r\nvar presentViewer = true;\r\n\r\nfunction presentDocument(){\r\n\tif(presentViewer) {\r\n\t\tpresentViewer = false;\r\n\t\tclient.open('GET', doc);\r\n\t\tclient.file = file;\r\n\t\tclient.send(); \r\n\t} else {\r\n\t\twin2.close();\r\n\t}\r\n}\r\n\r\nwin2.addEventListener('focus',function(){\r\n\tpresentDocument();\r\n})\r\n\r\nwin.addEventListener('focus',function(){\r\n\tif(presentViewer) {\r\n\t\twin2.open({modal:true});\r\n\t}\r\n});\r\nwin.open();\r\n{code} ", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-05-12T16:04:54.000+0000", "updated": "2015-05-12T16:04:54.000+0000" }, { "id": "352293", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pulls pending\r\nmaster - https://github.com/appcelerator/titanium_mobile/pull/6839\r\n4_0_X - https://github.com/appcelerator/titanium_mobile/pull/6840", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-05-12T16:05:26.000+0000", "updated": "2015-05-12T16:05:26.000+0000" }, { "id": "352305", "author": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "body": "I solved it with a timeout of 300 ms", "updateAuthor": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-05-12T17:26:33.000+0000", "updated": "2015-05-12T17:26:33.000+0000" }, { "id": "413181", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue has been fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T21:49:25.000+0000", "updated": "2017-03-16T21:49:25.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }