{ "id": "116360", "key": "TIMOB-14350", "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": "15111", "description": "2013 Sprint 13", "name": "2013 Sprint 13", "archived": true, "released": true, "releaseDate": "2013-07-01" }, { "id": "15564", "description": "2013 Sprint 15 API", "name": "2013 Sprint 15 API", "archived": true, "released": true, "releaseDate": "2013-07-29" }, { "id": "15567", "description": "2013 Sprint 15", "name": "2013 Sprint 15", "archived": true, "released": true, "releaseDate": "2013-07-29" }, { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" }, { "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-07-26T01:32:49.000+0000", "created": "2013-06-22T00:34:00.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "blackberry", "module_view", "qe-3.1.2", "qe-nfc", "qe-testadded", "sdk-bb" ], "versions": [], "issuelinks": [], "assignee": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:15.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "Description:\r\n==============\r\n1. Create an app with the following code:\r\n{code}\r\nvar win = Ti.UI.createWindow({});\r\n \r\nvar view = Ti.UI.createView({\r\n\tbackgroundColor:'green',\r\n height:200,\r\n width:200,\r\n layout:'horizontal'\r\n \r\n});\r\n\r\n\r\nfunction MyView(){\r\n\tvar view = Ti.UI.createLabel({\r\n\t\tbackgroundColor:color,\r\n\t\theight:40,\r\n\t\ttop:10,\r\n\t\tleft:5,\r\n\t\twidth:Ti.UI.SIZE\r\n\t});\r\n\t\r\n\tvar lbl = Ti.UI.createLabel({\r\n\ttext:'view for test'\r\n\t//height:Ti.UI.SIZE,\r\n\t//width:Ti.UI.SIZE\r\n\r\n\t});\r\n\t\r\n\tview.add(lbl);\r\n\t\r\n return view;\r\n \r\n}\r\n\r\nfor(i=0;i<20;i++){\r\nview.add(MyView(red));\r\n}\r\n\t\r\n\r\n\r\nwin.add(view);\r\n\t \r\nwin.open();\r\n{code}\r\n\r\n2. Build & run on BB device/simulator.\r\n3. Observe the app when it starts\r\n\r\nActual Result:\r\n================\r\n1. The app exits immediately after start\r\n\r\nExpected Result:\r\n=================\r\n1. The app should not exit", "attachment": [ { "id": "41049", "filename": "JSSyntaxError.tiff", "author": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-26T01:32:40.000+0000", "size": 74974, "mimeType": "image/tiff" } ], "flagged": false, "summary": "BlackBerry : Adding number of views beyond than which can be seen on horizontal layout makes tha app exit", "creator": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Environment:\r\nTi Studio : 3.1.1.201306112235\r\nTi BB SDK : 3.1.2.v20130619101604\r\nMac OSX : 10.8.4\r\nAlloy : 1.1.3\r\nCLI - 3.1.1\r\nwin 7 \r\nWin 8 \r\nZ10 BB simulator : 10.0.10.822\r\nZ10 device running 10.0.10.88", "comment": { "comments": [ { "id": "259679", "author": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This should be fixed now that multiple buttons and labels work on horizontal layout.", "updateAuthor": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-27T05:52:55.000+0000", "updated": "2013-06-27T05:52:55.000+0000" }, { "id": "262424", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening.\r\nAs the app still crashes with when number of views are added beyond which can be seen on horizontal layout.\r\n\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({});\r\nvar mainview = Ti.UI.createView({\r\n\tbackgroundColor:'green',\r\n height:Ti.UI.FILL,\r\n width:Ti.UI.FILL,\r\n layout:'horizontal'\r\n \r\n});\r\n\r\nfunction MyView(){\r\n var view = Ti.UI.createView({\r\n backgroundColor:'red',\r\n height:40,\r\n top:10,\r\n left:5,\r\n width:60,\r\n borderColor:'black',\r\n borderWidth:5\r\n });\r\n \r\n return view; \r\n}\r\nfor(i=0;i<20;i++){\r\nmainview.add(MyView());\r\n}\r\nwin.add(mainview);\t \r\nwin.open();\r\n\r\n{code}\r\nVerified with Environment:\r\n\r\nStudio: 3.1.2.201307171817\r\nTitanium SDK:3.1.2.v20130718094558\r\nacs:1.0.3\r\nalloy:1.1.3\r\nnpm:1.3.2\r\ntitanium:3.1.1\r\ntitanium-code-processor:1.0.1\r\nOS: OSX 10.8\r\nDevice:Blackberry-Z10(v 10.0.10.261),ios Simulator(v6.0),Galaxy Nexus(v4.0.4)\r\nXcode: 4.5.1\r\nblackberry SDK: 10.1.0.1020\r\n\r\nStudio Console log:\r\n\r\nProcess 38097102 (TIMOB-14350) terminated SIGSEGV code=1 fltno=11 ip=015669d8(/usr/lib/ldqnx.so.2@__generic_memcpy+0x50) mapaddr=000669d8. ref=00000010 bdslot=1\r\n/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:181\r\n throw e;\r\n ^\r\nTypeError: Cannot read property 'value' of undefined\r\n at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:185:23\r\n at iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:108:13)\r\n at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:119:25\r\n at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:187:17\r\n at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:491:34\r\n at /usr/local/lib/node_modules/titanium/lib/cli.js:112:8\r\n at /Users/global/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.v20130718094558/blackberry/cli/common/blackberryndk.js:195:4\r\n at /Users/global/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.v20130718094558/blackberry/cli/common/blackberryndk.js:62:3\r\n at exithandler (child_process.js:635:7)\r\n---------------------------------------------\r\n at exports.execFile (child_process.js:691:9)\r\n at exports.exec (child_process.js:578:18)\r\n at runCommandFromArray (/Users/global/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.v20130718094558/blackberry/cli/common/blackberryndk.js:60:2)\r\n at getAppLog (/Users/global/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.v20130718094558/blackberry/cli/common/blackberryndk.js:168:2)\r\n at wrapper (timers.js:252:14)\r\n at listOnTimeout (timers.js:110:15)\r\n\r\n\r\n", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-19T07:23:01.000+0000", "updated": "2013-07-19T07:23:01.000+0000" }, { "id": "265773", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix & the app does not exit anymore. Thus closing.\r\n\r\nEnvironment:\r\nAppcel Studio : 3.1.2.201308082014\r\nTi SDK : 3.1.2.v20130808180613\r\nMac OSX : 10.8.4\r\nAlloy : 1.2.0-alpha6\r\nCLI - 3.1.2-alpha\r\nwin 7 \r\nWin 8 \r\nZ10 BB simulator : 10.0.10.822\r\nZ10 device running 10.0.10.88", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-08-09T20:42:42.000+0000", "updated": "2013-08-09T20:42:42.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }