{ "id": "145603", "key": "TIMOB-18674", "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": "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-03-17T21:25:30.000+0000", "created": "2015-03-10T18:13:36.000+0000", "epic": { "id": 139107, "key": "TIMOB-17966", "name": "Windows: Port Corporate Directory application to Windows Phone", "summary": "Windows: Port Corporate Directory application to Windows Phone", "color": { "key": "color_1" }, "done": false }, "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [ { "id": "46509", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "138517", "key": "TIMOB-17907", "fields": { "summary": "Windows: Implement Ti.Analytics", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T22:21:39.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Running the corporate directory app from the CLI, the app reliably crashes when it tries to send the app.feature event (after having sent an enroll event). Here's the output from the logs during launch:\r\n\r\n{code}\r\n[INFO] Connected to app\r\n-- Start application log -----------------------------------------------------\r\n[INFO] creating instance of Analytics class\r\n[INFO] checking if database exists\r\n[INFO] databaseExists\r\n[INFO] creating database\r\n[INFO] createDatabase\r\n[INFO] sendAppEnrollEvent\r\n[INFO] createAppEnrollEvent\r\n[INFO] createAnalyticsEvent\r\n[INFO] postAnalyticsEvent\r\n[INFO] needsEnrollEvent\r\n[INFO] getProps\r\n[INFO] addEvent\r\n[INFO] getProps\r\n[INFO] Sequence: 0\r\n[INFO] Inserting: {\"type\":\"ti.enroll\",\"timestamp\":\"2015-03-10T18:04:27.819Z\",\"m\r\nid\":\"\",\"sid\":\"{d13d8cb9-6d9e-4045-893c-fd6a87c0a0fd}\",\"appGUID\":\"__GUID__\",\"payl\r\noad\":\"{\\\"app_name\\\":\\\"__NAME__\\\",\\\"oscpu\\\":0,\\\"platform\\\":\\\"windows\\\",\\\"app_id\\\"\r\n:\\\"__ID__\\\",\\\"ostype\\\":\\\"x86\\\",\\\"osarch\\\":\\\"x86\\\",\\\"model\\\":\\\"Microsoft Virtual\\\r\n\",\\\"deploytype\\\":\\\"development\\\",\\\"app_version\\\":\\\"__VERSION__\\\",\\\"tz\\\":240,\\\"os\r\n\\\":\\\"windowsphone\\\",\\\"osver\\\":\\\"0.0\\\",\\\"sdkver\\\":\\\"__TITANIUM_VERSION__\\\",\\\"nett\r\nype\\\":\\\"LAN\\\"}\",\"expandPayload\":true}\r\n[INFO] updateProps\r\n[INFO] sendAnalytics\r\n[INFO] updateProps\r\n[INFO] featureEvent\r\n[INFO] createEvent\r\n[INFO] createAnalyticsEvent\r\n[INFO] postAnalyticsEvent\r\n[INFO] addEvent\r\n[INFO] getProps\r\n[INFO] Sequence: 1\r\n[INFO] Inserting: {\"type\":\"app.feature\",\"timestamp\":\"2015-03-10T18:04:27.820Z\",\r\n\"mid\":\"\",\"sid\":\"{d13d8cb9-6d9e-4045-893c-fd6a87c0a0fd}\",\"appGUID\":\"__GUID__\",\"pa\r\nyload\":\"{\\\"eventName\\\":\\\"windows.directory.viewed\\\"}\",\"expandPayload\":true}\r\n[INFO] updateProps\r\n[INFO] sendAnalytics\r\n[INFO] Disconnected from app\r\n-- End application log -------------------------------------------------------\r\n{code}", "attachment": [], "flagged": false, "summary": "Windows: Analytics is crashing during second invocation of sendAnalytics method", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "environment": null, "closedSprints": [ { "id": 351, "state": "closed", "name": "2015 Sprint 06 Windows", "startDate": "2015-03-14T13:58:11.366Z", "endDate": "2015-03-28T00:00:00.000Z", "completeDate": "2015-03-30T14:10:54.840Z", "originBoardId": 144 } ], "comment": { "comments": [ { "id": "345622", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "I should note that when we spit out \"[INFO] sendAnalytics\" to the log, right after that we fire a setTimeout(this.run.bind(this), delay); I _think_ the first invocation isn't firing and the second seems to cause the crash. This works fine under VS 2013 debugger, though.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-03-10T22:16:07.000+0000", "updated": "2015-03-10T22:16:07.000+0000" }, { "id": "346042", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I think I am able to reproduce this issue but I am not sure if I am doing it right. [~cwilliams] Can you provide more info about how to reproduce this please? I did like below. It did installs/launches app, and it crashes immediately after displaying splash screen for me.\r\n\r\n1. Install the Titanium CLI from the git master branch: npm install -g git://github.com/appcelerator/titanium.git#master\r\n2. Install latest Titanium SDK from master: ti sdk install -b master -d\r\n3. Run ti create -p windows and create a new app.\r\n4. cd into project directory\r\n5. Copy all corporate app files into Resources/ directory\r\n6. Run ti build -p windows -T wp-device --wp-publisher-guid 00000000-0000-1000-8000-000000000000\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-03-16T09:30:20.000+0000", "updated": "2015-03-16T09:30:20.000+0000" }, { "id": "346176", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I can not reproduce this issue when the device is connected to Internet. The corporate app runs fine on my device. But when I turn Airplane mode on, it did not run, it crashes immediately after splash screen. Now I suspect it crashes because it does not property catches exception on connection error. I'll look into more on that.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-03-17T06:06:08.000+0000", "updated": "2015-03-17T06:06:08.000+0000" }, { "id": "346186", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/169", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-03-17T09:27:07.000+0000", "updated": "2015-03-17T09:27:07.000+0000" }, { "id": "413322", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T22:21:39.000+0000", "updated": "2017-03-16T22:21:39.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }