{ "id": "147336", "key": "AC-105", "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": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2015-11-10T06:06:09.000+0000", "created": "2015-04-28T08:23:13.000+0000", "labels": [ "ios", "regression" ], "versions": [], "issuelinks": [], "assignee": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "updated": "2015-11-10T06:06:09.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "[Link to Q&A|http://developer.appcelerator.com/question/182008/ios-simulator-close-because-not-valid-the-try--catch]\r\n\r\n have this try in my code:\r\n\r\n{code}\r\ntry {\r\n var checkPedidoColumn = db.execute('ALTER TABLE pedido_item ADD COLUMN "min_tamanho" NUMERIC');\r\n} catch(e) {\r\n Ti.API.info('the column min_tamanho exists in the table pedido_item');\r\n}\r\n{code}\r\n\r\nThis table and column exists and try this ok, until the iOS 8.3. Now the titanium return:\r\n\r\nA SQLite database error occurred on database '/Users/maicocardoso/Library/Developer/CoreSimulator/Devices/B7AFD1AF-767E-42CD-A370-C2D904417918/data/Containers/Data/Application/C1F57F5A-311C-48A1-8042-1C1FEEC20DED/Library/Private Documents/database3.sql': Error Domain=com.plausiblelabs.pldatabase Code=3 \"An error occured parsing the provided SQL statement.\" UserInfo=0x797aea90 {com.plausiblelabs.pldatabase.error.vendor.code=1, NSLocalizedDescription=An error occured parsing the provided SQL statement., com.plausiblelabs.pldatabase.error.query.string=ALTER TABLE pedido_item ADD COLUMN \"min_tamanho\" NUMERIC, com.plausiblelabs.pldatabase.error.vendor.string=duplicate column name: min_tamanho} (SQLite #1: duplicate column name: min_tamanho) (query: 'ALTER TABLE pedido_item ADD COLUMN \"min_tamanho\" NUMERIC')\r\n\r\nFalling back to SDK 3.4.1, try catch work again as expected.", "attachment": [], "flagged": false, "summary": "Try catch not working and cause crash", "creator": { "name": "yoannwyffels", "key": "yoannwyffels", "displayName": "Yoann WYFFELS", "active": true, "timeZone": "Europe/Paris" }, "subtasks": [], "reporter": { "name": "yoannwyffels", "key": "yoannwyffels", "displayName": "Yoann WYFFELS", "active": true, "timeZone": "Europe/Paris" }, "environment": "Ti SDK 3.5.x\r\niOS 8.3", "comment": { "comments": [ { "id": "351002", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "[~yoannwyffels] can you please add a test case that can reproduce this issue? Please attach it to this ticket\r\n\r\nBest", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2015-04-28T16:12:24.000+0000", "updated": "2015-04-28T16:12:24.000+0000" }, { "id": "351380", "author": { "name": "maicojc", "key": "maicojc", "displayName": "Maico Cardoso", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem is when building for iOS simulator iPad 2 and Retina if building for iOS iPad simulator Air or Resizable iPad does not occur any problem.", "updateAuthor": { "name": "maicojc", "key": "maicojc", "displayName": "Maico Cardoso", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-05-01T13:23:45.000+0000", "updated": "2015-05-01T13:23:45.000+0000" }, { "id": "352810", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "So, to confirm:\r\n\r\nBad:\r\n* iOS simulator iPad 2\r\n* Retina iPad 4?\r\n\r\nGood:\r\n* iOS iPad simulator Air\r\n* Resizable iPad \r\n\r\nWhat versions of iOS are you using? All 8.3?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-05-18T04:26:00.000+0000", "updated": "2015-05-18T04:26:00.000+0000" }, { "id": "364069", "author": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~maicojc], Are you still facing this issue in Appcelerator. Use Appcelerator Studio, build: 4.1.1.201507141126, and SDK 4.1.1.GA. Please reply. Thanks.", "updateAuthor": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2015-09-16T10:38:59.000+0000", "updated": "2015-09-16T10:38:59.000+0000" }, { "id": "364077", "author": { "name": "maicojc", "key": "maicojc", "displayName": "Maico Cardoso", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm using the ios version 8.4 and no longer the problem. Thank you.", "updateAuthor": { "name": "maicojc", "key": "maicojc", "displayName": "Maico Cardoso", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-09-16T13:22:31.000+0000", "updated": "2015-09-16T13:22:31.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }