{ "id": "80772", "key": "AC-2887", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-11-21T00:21:10.000+0000", "created": "2011-09-30T12:38:56.000+0000", "labels": [ "admob", "crash", "module", "pdf", "quicklook" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:47:51.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": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I tried some Ti Plus modules and found that they often crash my iOS apps.\r\n\r\nSample 1 with QuickLook module:\r\n\r\nMy iPad app has two pages, the main page is a tableview listing the files I'd like to show (pdf or jpg files). And when user clicks on a row, it goes to the second page which using QuickLook to display the file.\r\n\r\nThe pdf or jpg render is good, but the app automatically exits each time when it goes back to the main page. I attached the sample pages here.\r\n\r\nSample 2 with AdMob module:\r\n\r\nIt's an iPhone/iPad app. The app structure is similar with the 1st one. The main page is a category listing, the 2nd page is article listing, and the 3rd page is article detail. The app worked perfect itself. But once I added the ti.admob module to the 2nd and 3rd pages, the app crashes MUCH MUCH MORE frequently than before, on both simulator and devices.\r\n\r\nCrush logs:\r\nUnfortunately there seems no crash logs such as exceptions produced in the console. The app just locked up and then crashed. The following is what I can get from the console:\r\n\r\n[DEBUG] App Spec: specified by path /Users/legogreen/Documents/Titanium/Titanium Studio Workspace/QuickLookTest/build/iphone/build/Debug-iphonesimulator/QuickLookTest.app\r\n[DEBUG] SDK Root: path=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk version=4.3 name=Simulator - iOS 4.3\r\n[DEBUG] using device family ipad\r\n[DEBUG] Session started\r\n[DEBUG] Session did end with error Error Domain=DTiPhoneSimulatorErrorDomain Code=1 UserInfo=0x100303770 \"The simulated application quit.\"\r\n[INFO] Application has exited from Simulator\r\n\r\nThanks,\r\nNicole", "attachment": [ { "id": "23113", "filename": "app.js", "author": { "name": "nicole", "key": "nicole", "displayName": "Nicole", "active": true, "timeZone": "America/Havana" }, "created": "2011-09-30T12:38:56.000+0000", "size": 1162, "mimeType": "application/x-javascript" }, { "id": "23114", "filename": "quicklook.js", "author": { "name": "nicole", "key": "nicole", "displayName": "Nicole", "active": true, "timeZone": "America/Havana" }, "created": "2011-09-30T12:38:56.000+0000", "size": 223, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "Ti Plus modules often crash my iOS apps", "creator": { "name": "nicole", "key": "nicole", "displayName": "Nicole", "active": true, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "nicole", "key": "nicole", "displayName": "Nicole", "active": true, "timeZone": "America/Havana" }, "environment": "iPhone SDK version: 4.3\r\nTitanium SDK version: 1.7.2\r\nti.quicklook: 1.0\r\nti.admob: 1.0", "comment": { "comments": [ { "id": "168045", "author": { "name": "nicole", "key": "nicole", "displayName": "Nicole", "active": true, "timeZone": "America/Havana" }, "body": "I just canceled my Indie subscription because those modules can't be used for production. Hope this problem can be fixed soon and I'd like to subscribe again. Thanks.", "updateAuthor": { "name": "nicole", "key": "nicole", "displayName": "Nicole", "active": true, "timeZone": "America/Havana" }, "created": "2011-10-05T12:05:55.000+0000", "updated": "2011-10-05T12:05:55.000+0000" }, { "id": "169831", "author": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Nicole,\r\n\r\nTwo things, first being that the AdMob module is free and available as open source.\r\n\r\nThe second being that to diagnose or fix these issues we will need crash logs from the console to be able to fix them.\r\nAs soon as you can get that to us, please re-open the ticket and edit the description to contain that new info.\r\n\r\nAgain, I am very sorry for the inconvenience.\r\n\r\nBest regards,\r\nMatt", "updateAuthor": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-20T09:57:20.000+0000", "updated": "2011-10-20T09:57:20.000+0000" }, { "id": "169905", "author": { "name": "nicole", "key": "nicole", "displayName": "Nicole", "active": true, "timeZone": "America/Havana" }, "body": "Sorry Matthew, I don't know how to re-open this ticket. I just added the information I got from the console when the app crashed. Could you help to re-open it? Thanks a lot!", "updateAuthor": { "name": "nicole", "key": "nicole", "displayName": "Nicole", "active": true, "timeZone": "America/Havana" }, "created": "2011-10-20T13:22:55.000+0000", "updated": "2011-10-20T13:22:55.000+0000" }, { "id": "191822", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Hi Nicole,\r\n\r\nI want to apologize for the long delay in responses.\r\n\r\nFirst, regarding AdMob. I have recently fixed an issue where the AdMob module would cause a crash when navigating between JavaScript contexts. Version 1.3 of the module contains my fixes for this. 1.3 is available here: https://github.com/appcelerator/titanium_modules/tree/master/admob/mobile/ios If you are interested, the changes I made to remedy the situation are available here: https://github.com/appcelerator/titanium_modules/pull/28\r\n\r\nSecond, regarding Quicklook. I have not been able to reproduce the issue you are seeing. I have placed your example code in an app and used it on an iPhone 4S, and in the iPhone 5.1 Simulator. I can click each of the rows, see the quicklook preview, and then return to the list. The app never exits or crashes. What version of Titanium Mobile are you using? Can you try 2.0.1? Also, please don't store the Quicklook module in the Titanium namespace. The correct way is now the following:\r\n\r\n{code:title=app.js}\r\nvar Quicklook = require('ti.quicklook');\r\n{code}\r\n\r\nI know that you are doing what the original example showed (Titanium.Quicklook = Ti.Quicklook = req...), but that way has been proven to cause crashes and memory issues. So please make that simple change and correct your references to Ti.Quicklook.\r\n\r\nRegards,\r\nDawson", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2012-04-19T09:39:16.000+0000", "updated": "2012-04-19T09:39:16.000+0000" }, { "id": "228114", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "No activity since April, I'm assuming this has been resolved. If not, let us know and we'll re-open once again. Thanks.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-21T00:21:10.000+0000", "updated": "2012-11-21T00:21:10.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }