{ "id": "123022", "key": "TIMOB-15843", "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": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-09-19T10:17:04.000+0000", "created": "2013-11-28T06:16:20.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "iOS" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-09-26T00:13: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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Run the following app.js in iOS simulator.\r\nThe app will close without a warning.\r\n\r\n{code:title=app.js}\r\nvar startDate = new Date(2012, 03, 10, 12, 0, 0);\r\nvar endDate = new Date(2012, 03, 19, 14, 0, 0);\r\n \r\n var out = [];\r\n var calendars = Ti.Calendar.allCalendars;\r\n Ti.API.info('-> '+JSON.stringify(calendars));\r\n for (var i=0; i < calendars.length; i++) {\r\n Ti.API.info('=> '+JSON.stringify(calendars[i]));\r\n var cal_events = calendars[i].getEventsBetweenDates(startDate,endDate);\r\n \r\n for (var j=0; j < cal_events.length; j++) {\r\n out.push(cal_events[j]);\r\n };\r\n };\r\n\r\n{code}\r\n\r\nh6.Console output\r\n[INFO] : -> [{},{}]\r\n[INFO] : => {}\r\n-- End simulator log ---------------------------------------------------------\r\n[ERROR] : An error occurred running the iOS Simulator\r\n[ERROR] : \r\n[ERROR] : Project failed to build after 28s 263ms\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: App closes without warning when getting the events between 2 dates", "creator": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio, build: 3.1.1.201306112235\r\nTitanium SDK version: 3.1.3.v20130908095038\r\nCLI version: 3.1.2\r\niOS SDK: 6.1\r\niOS iPhone Simulator: 6.1", "comment": { "comments": [ { "id": "324687", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue exist with 3.1.3 but can't reproduce on 3.4.0 \r\nAppcelerator Studio, build: 3.3.0.201407111535 \r\nTiSDK 3.4.0 \r\niOS : 6.1\r\nTitanium Command-Line Interface, CLI version 3.3.0", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-19T10:16:26.000+0000", "updated": "2014-09-19T10:16:26.000+0000" }, { "id": "325780", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix on:\r\n\r\nMac OSX 10.9.4\r\nAppcelerator Studio, build: 3.4.0.201409231834\r\nTitanium SDK build: 3.4.0.v20140925154326\r\nTitanium CLI, build: 3.4.0-rc4\r\nAlloy: 1.5.0-rc5\r\nXcode6.0.1\r\niPhone 6 (8.0), iPhone 6 Simulator (8.0), iPhone 5s Simulator (7.1)\r\n\r\nRan the code on the above platforms and the app no longer closes without warning.\r\n\r\nClosing ticket.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2014-09-26T00:13:34.000+0000", "updated": "2014-09-26T00:13:34.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }