{ "id": "93718", "key": "TIMOB-9735", "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": "14126", "description": "Sprint 2012-19 Core", "name": "Sprint 2012-19 Core", "archived": true, "released": true, "releaseDate": "2012-09-24" }, { "id": "14271", "description": "2012 Sprint 19", "name": "2012 Sprint 19", "archived": true, "released": true, "releaseDate": "2012-09-24" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-10-14T22:08:36.000+0000", "created": "2012-06-22T16:17:08.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "module_package", "parity", "triage" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "29362", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "115569", "key": "TIMOB-14135", "fields": { "summary": "Android: Allow customization for JS error popups", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-23T23:48:57.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h1. Parity Issue\r\nError dialogs are inconsistent across deploy types and platforms.\r\n\r\nh2. Android Behavior\r\nOn Android, [error dialogs always show up|https://github.com/appcelerator/titanium_mobile/blob/master/android/runtime/v8/src/native/V8Util.cpp#L127], even in production.\r\n\r\nh2. iOS Behavior\r\niOS only shows error dialogs [when the deploy type is not equal to production|https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/TiApp.m#L524].\r\n\r\nh2. Mobile Web Behavior\r\nMobile Web [shows errors|https://github.com/appcelerator/titanium_mobile/blob/master/mobileweb/titanium/Ti.js#L306] depending on the [config|https://github.com/appcelerator/titanium_mobile/blob/master/mobileweb/src/config.js#L36].\r\n\r\nh2. Reproduction\r\nThis will throw an error. The various platforms will handle it as they wish.\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: '#fff'\r\n});\r\nwin.add(fail);\r\nwin.open();\r\n{code}\r\n\r\nh2. Desired Behavior\r\nError dialogs are consistent across deployment types. Config values are also equally exposed on all platforms.", "attachment": [ { "id": "34259", "filename": "android_device.png", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-18T22:28:26.000+0000", "size": 126567, "mimeType": "image/png" }, { "id": "34260", "filename": "android_production.png", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-18T22:28:26.000+0000", "size": 247175, "mimeType": "image/png" }, { "id": "34256", "filename": "ios_device.png", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-18T22:28:26.000+0000", "size": 76664, "mimeType": "image/png" }, { "id": "34258", "filename": "ios_production.png", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-18T22:28:26.000+0000", "size": 585479, "mimeType": "image/png" }, { "id": "34257", "filename": "iOS Simulator Screen shot Dec 18, 2012 12.17.19 PM.png", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-18T22:28:26.000+0000", "size": 30051, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Error Dialog Platform Parity", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "199848", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Spurred from this Stack Overflow question, by the way: [http://stackoverflow.com/questions/10827463/disable-runtime-error-dialog-in-android-titanium/11165347#11165347]", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2012-06-22T16:24:42.000+0000", "updated": "2012-06-22T16:24:42.000+0000" }, { "id": "213113", "author": { "name": "knice", "key": "knice", "displayName": "Romain", "active": true, "timeZone": "Europe/Berlin" }, "body": "+1", "updateAuthor": { "name": "knice", "key": "knice", "displayName": "Romain", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-08-07T07:29:46.000+0000", "updated": "2012-08-07T07:29:46.000+0000" }, { "id": "221864", "author": { "name": "mbelkin", "key": "mbelkin", "displayName": "Michael Belkin", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Has this been merged into the master branch, or better yet, 2.1? I just published for production on both and I'm still seing these error dialogs.", "updateAuthor": { "name": "mbelkin", "key": "mbelkin", "displayName": "Michael Belkin", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-03T13:16:39.000+0000", "updated": "2012-10-03T13:16:39.000+0000" }, { "id": "230385", "author": { "name": "javi242", "key": "javi242", "displayName": "Javier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Still same issue. When are they going to solve it? It is very annoying", "updateAuthor": { "name": "javi242", "key": "javi242", "displayName": "Javier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-07T15:11:43.000+0000", "updated": "2012-12-07T15:11:43.000+0000" }, { "id": "233838", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening. I can reproduce the original issue.\r\nTested with:\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK, build: 3.0.0.GA\r\nDevices:\r\nGalaxyS3 4.0.4\r\nAndroid emulator 3.0\r\niphone 4s 5.0.1\r\niOS simulator 6.0", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-10T12:03:53.000+0000", "updated": "2013-01-10T12:31:46.000+0000" }, { "id": "236486", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Updated the links to the relevant source files, AFAIK. It looks like Android V8 only checks that we have an environment, then continues blissfully on its way.", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2013-01-29T20:08:33.000+0000", "updated": "2013-01-29T20:08:33.000+0000" }, { "id": "239165", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Ingo Muschenetz Please reassign to devs since the issue was reopened and original assignee was Opie Cyrus.", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-21T00:04:54.000+0000", "updated": "2013-02-21T00:04:54.000+0000" }, { "id": "256473", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\r\nAppcelerator Studio, build: 3.1.1.201306041845\r\nTitanium SDK, build: 3.1.1.v20130605141849\r\nMac osx 10.8.3 Mountail Lion\r\nCLI: 3.1.1-cr\r\nDevices:\r\nNexus 7 Android version 4.2\r\nGalaxyS4 Android version 4.2.2\r\niPhone 5 iOS 6.1.4\r\niPad mini iOS 6.0\r\n\r\nThere is no runtime error in production.", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-06T18:58:37.000+0000", "updated": "2013-06-06T18:59:12.000+0000" }, { "id": "260642", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Here's the merged PR from Opie, by the way: https://github.com/appcelerator/titanium_mobile/pull/2941", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2013-07-02T19:27:47.000+0000", "updated": "2013-07-02T19:27:47.000+0000" }, { "id": "273952", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Any updates here? The merges PR seems to work by checking the Ti.App.getDeployType().", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-06T11:18:31.000+0000", "updated": "2013-10-06T11:18:31.000+0000" }, { "id": "275062", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Just confirmed what olga said... there is no error dialog in production for android, which is the expected behavior. Resolving as fixed.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-14T22:08:36.000+0000", "updated": "2013-10-14T22:08:36.000+0000" }, { "id": "276504", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed.\n\nTiSDK 3.2.0.v20131023160426\nCLI 3.2.0\nTitanium Studio 3.2.0.201310230548\n\nClosing.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-23T23:48:28.000+0000", "updated": "2013-10-23T23:48:28.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }