{ "id": "115543", "key": "TIMOB-14124", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-05-02T20:39:30.000+0000", "created": "2013-06-05T19:21:38.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-02T20:39:30.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": "h6.Issue\r\nLooks like e.tab.title can be only read once.\r\n\r\nh6.Steps to reproduce\r\n1. Get Kitchen Sink app :)\r\n2. Install & Run\r\n3. Monitor output - a runtime exception is noticeable.\r\n\r\nh6.Offending code\r\n- https://github.com/appcelerator/KitchenSink/blob/master/Resources/ui/common/ApplicationTabGroup.js#L140\r\n\r\nIf you add a such line of code the Tab's title shows up:\r\n- Ti.API.info(' JSON.stringify(e.tab.title): '+ JSON.stringify(e.tab.title));\r\nOutput:\r\n- 06-05 11:54:19.297: I/TiAPI(11303): JSON.stringify(e.tab.title): \"Base UI\"\r\n\r\n\r\nThen you will eventually get (Device stack trace):\r\n{code}\r\n06-05 11:54:18.414: I/ActivityManager(512): Displayed com.appcelerator.kitchensink/org.appcelerator.titanium.TiActivity: +583ms (total +1s569ms)\r\n06-05 11:54:19.273: I/TiAPI(11303): FOCUS RECEIVED IN base_ui\r\n06-05 11:54:19.273: W/TitaniumModule(11303): (KrollRuntimeThread) [1000,1450] Coverage is not enabled, no coverage data will be generated\r\n06-05 11:54:19.281: I/gralloc(512): Allocated 0x660072 size 6488161\r\n06-05 11:54:19.289: I/TiAPI(11303): undefined\r\n06-05 11:54:19.297: I/TiAPI(11303): JSON.stringify(e.tab.title): \"Base UI\"\r\n06-05 11:54:19.351: I/TiAPI(11303): tab blur - new index undefined old index undefined\r\n06-05 11:54:19.508: I/AlarmManager(512): sending alarm Alarm{40b05618 type 0 com.android.vending}\r\n06-05 11:54:20.023: D/Finsky(1843): [1] 5.onFinished: Installation state replication succeeded.\r\n06-05 11:54:20.289: I/TiAPI(11303): FOCUS RECEIVED IN base_ui\r\n06-05 11:54:20.289: W/TitaniumModule(11303): (KrollRuntimeThread) [1011,2461] Coverage is not enabled, no coverage data will be generated\r\n06-05 11:54:20.289: I/TiAPI(11303): undefined\r\n06-05 11:54:20.312: I/TiAPI(11303): tab blur - new index undefined old index undefined\r\n06-05 11:54:20.367: E/TiExceptionHandler(11303): (main) [80,2541] ----- Titanium Javascript Runtime Error -----\r\n06-05 11:54:20.367: E/TiExceptionHandler(11303): (main) [0,2541] - In ui/common/ApplicationTabGroup.js:135,69\r\n06-05 11:54:20.367: E/TiExceptionHandler(11303): (main) [0,2541] - Message: Uncaught TypeError: Cannot read property 'title' of undefined\r\n06-05 11:54:20.367: E/TiExceptionHandler(11303): (main) [0,2541] - Source: \t\tTi.API.info(' JSON.stringify(e.tab.title): '+ JSON.stringify(e.tab.title));/\r\n06-05 11:54:20.406: E/V8Exception(11303): Exception occurred at ui/common/ApplicationTabGroup.js:135: Uncaught TypeError: Cannot read property 'title' of undefined\r\n{code}\r\n\r\nh6.Associated Q&A thread\r\nhttp://developer.appcelerator.com/question/150744/downloaded-kitchensink-210-now-working-on-my-android-device", "attachment": [], "flagged": false, "summary": "Android: V8Exception when getting Tab's title on KitchenSink", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Android 2.3.5 \r\nTiSDK 2.1.4.GA, 3.1.0.GA & 3.2.0.v20130509025642", "comment": { "comments": [], "maxResults": 1, "total": 1, "startAt": 0 } } }