{ "id": "149322", "key": "TIMOB-19123", "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-07-01T18:40:02.000+0000", "created": "2015-07-01T08:39:02.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "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" } ], "issuelinks": [ { "id": "48251", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "149042", "key": "TIMOB-19065", "fields": { "summary": "Windows: AlertDialog.show() fails when buttonNames.length >= 3", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2015-07-06T21:46:02.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": "Both the test app in the Windows repo:\r\nhttps://github.com/appcelerator/titanium_mobile_windows/blob/master/test/app/optiondialog_test.js\r\n\r\nAnd the example in the docs:\r\nhttp://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.OptionDialog\r\n\r\nCrash with an unknown exception:\r\n\r\n{code}\r\n-- Start application log -----------------------------------------------------\r\n[INFO] Finished launching the application\r\n[INFO] Waiting for app to connect to log relay\r\n[ERROR] Application Error: \"Runtime Error during click event: unknown exception\"\r\n{code}", "attachment": [ { "id": "56029", "filename": "Screen Shot 2015-07-01 at 10.36.51.png", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-07-01T08:38:56.000+0000", "size": 39678, "mimeType": "image/png" } ], "flagged": false, "summary": "Ti.UI.OptionDialog crashes with unknown exception", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 4.1.0 beta (4.1.0.v20150626223333)\r\nWindows 8.1 Enterprise Build 9600\r\nappc -v 4.0.2", "closedSprints": [ { "id": 436, "state": "closed", "name": "2015 Sprint 13 Windows", "startDate": "2015-06-20T23:02:43.965Z", "endDate": "2015-07-04T23:02:00.000Z", "completeDate": "2015-07-06T14:03:22.174Z", "originBoardId": 144 } ], "comment": { "comments": [ { "id": "356552", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/343", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-07-01T14:15:02.000+0000", "updated": "2015-07-01T14:15:02.000+0000" }, { "id": "356557", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Turns out that this suffers from the same errors and limitations as AlertDialog. So the fix I posted is good, but the issue originally reported is effectively a duplicate of TIMOB-19065\r\n\r\nWindows just throws an exception when you try to open a message dialog with \"too many\" buttons. It appears that limit on the phone is effectively 2 buttons, any more and it throws a runtime exception.\r\n\r\nObviously that sucks. We may need to look into alternate implementations using some other UI widgets that allow for more options.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-07-01T15:58:25.000+0000", "updated": "2015-07-01T15:58:25.000+0000" }, { "id": "356558", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Could we proactively detect this situation and throw a friendlier error?", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2015-07-01T15:59:13.000+0000", "updated": "2015-07-01T15:59:13.000+0000" }, { "id": "357053", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix. \r\n\r\nInstead of an exception the list is truncates to 2.\r\nWe get this in the logs:\r\n{code}[ERROR] : Number of buttons exceeds platform maximum (2), list will be truncated.{code}\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio: 4.1.0.201507061234\r\nTi SDK: 4.1.0.v20150706111546\r\nTi CLI: 4.0.1\r\nAlloy: 1.6.2\r\nWindows: 8.1 Enterprise 64-bit\r\nAPPC NPM: 4.1.0-1\r\nAPPC CLI: 4.1.0-5 \r\nDevice: Nokia Lumia 928 - Windows Phone 8.1\r\nWindows emulator : 8.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-06T21:44:21.000+0000", "updated": "2015-07-06T21:44:21.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }