{ "id": "154565", "key": "TIMOB-20425", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2016-11-06T21:16:39.000+0000", "created": "2016-01-28T20:23:12.000+0000", "epic": { "id": 155643, "key": "TIMOB-20555", "name": "iOS: Move codebase to main-thread", "summary": "iOS: Move codebase to main-thread", "color": { "key": "color_4" }, "done": false }, "priority": { "name": "Critical", "id": "1" }, "labels": [ "LiveView", "ios", "mainthread", "studio" ], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-31T21:58: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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When setting true and running the app in iOS emulator with LiveView turned on, it throws:\r\n\r\nundefined is not an object (evaluating 'Ti.Stream.pump') at app.js (line 231).\r\n\r\n[ERROR] : Script Error {\r\n[ERROR] : column = 16;\r\n[ERROR] : line = 231;\r\n[ERROR] : message = \"undefined is not an object (evaluating 'Ti.Stream.pump')\";\r\n[ERROR] : sourceURL = \"file:///Users/ophir/Library/Developer/CoreSimulator/Devices/046ECC44-60EC-4D29-B67E-A3370829EEE7/data/Containers/Bundle/Application/FC02DDCE-6E69-488E-BE43-BCFE5C27F7C3/Memoriez.app/app.js\";\r\n[ERROR] : }\r\n\r\n\r\nThese are my iOS settings:\r\n \r\n true\r\n true\r\n true\r\n true\r\n\r\n\r\nIf I just set run-on-main-thread to false then it will not show the error message and LiveView will work.", "attachment": [ { "id": "58099", "filename": "Screen Shot 2016-01-31 at 12.28.12 PM.png", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-01-31T06:36:30.000+0000", "size": 327777, "mimeType": "image/png" } ], "flagged": false, "summary": "Main Thread: Ti.Stream undefined when enabled and run via LiveView", "creator": { "name": "developer82", "key": "developer82", "displayName": "Ophir Oren", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "developer82", "key": "developer82", "displayName": "Ophir Oren", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK 5.2.0.v20160208101502\r\nLiveView 1.0.9\r\nStudio 4.4.0.201511241829", "comment": { "comments": [ { "id": "375550", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I tested the issue in iOS 9.1 with SDK 5.1.2.GA. I wasn't able to regenerate the issue. I have true set in my iOS section of tiapp.xml. With liveview enabled the app runs fine. See the attachment.\r\nh5. My environment\r\n{code}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.11.2\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 4.2.2\r\n npm Version = 2.14.7\r\nTitanium CLI\r\n CLI Version = 5.0.5\r\nTitanium SDK\r\n SDK Version = 5.1.2.GA\r\n Target Platform = ipad 2\r\n{code}\r\n\r\nThe problem seems to be in your javascript code, at app.js (line 231). Can you provide the sample test case which generate the issue. Thanks.\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-01-31T06:39:46.000+0000", "updated": "2016-01-31T06:39:46.000+0000" }, { "id": "375552", "author": { "name": "developer82", "key": "developer82", "displayName": "Ophir Oren", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi,\r\nI tested against SDK 5.2.0.v201xxxxxxxxx and 6.0.0.v201xxxxxxxxx (which ever one that was the latest at the time).\r\n", "updateAuthor": { "name": "developer82", "key": "developer82", "displayName": "Ophir Oren", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-31T06:54:20.000+0000", "updated": "2016-01-31T06:54:20.000+0000" }, { "id": "375579", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "The latest stable SDK version is 5.1.2.GA. Mobilesdk-6.0.0.v20160131201421 and Mobilesdk-5.2.0.v20160130151658 are master, beta release. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-02-01T06:48:10.000+0000", "updated": "2016-02-01T06:48:10.000+0000" }, { "id": "375589", "author": { "name": "developer82", "key": "developer82", "displayName": "Ophir Oren", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I know. But I'm testing future versions of the SDK (mainly because of Hyperloop). \r\nAre you not interested in knowing there are bugs in future versions of your product? You need to release a product with bugs in order for community members to report it? and only on next next version fix it? I think it's in Appcelerator's interest that members of the community test future products and report bugs...", "updateAuthor": { "name": "developer82", "key": "developer82", "displayName": "Ophir Oren", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-02-01T11:32:53.000+0000", "updated": "2016-02-01T11:32:53.000+0000" }, { "id": "375993", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Yes, We are interested in knowing about any bugs in future versions, That is why we release them as beta or test version. We get the community members reported issues in the beta version then we release a stable version after dealing with them. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-02-04T07:08:45.000+0000", "updated": "2016-02-04T07:08:45.000+0000" }, { "id": "376725", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "This is still in an issue in the latest SDK 5.2.0 nightlies so should be considered a blocker for the SDK 5.2.0 release [~cng]", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2016-02-12T12:31:22.000+0000", "updated": "2016-02-12T12:35:24.000+0000" }, { "id": "376728", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I've verified that:\r\n\r\n* Ti.Stream is an object when you disable LiveView and use it somewhere else in my app\r\n* The error still occurs even even when I use Ti.Stream elsewhere in my app\r\n\r\nSo it seems _not_ related to the late injection of the API into app.js by LiveView.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2016-02-12T13:34:56.000+0000", "updated": "2016-02-12T13:34:56.000+0000" }, { "id": "379554", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Just got the same error when developing with Hyperloop ( enabled, using Live View)", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-03-11T20:39:53.000+0000", "updated": "2016-03-11T20:39:53.000+0000" }, { "id": "380077", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "The related line is [here|https://github.com/appcelerator/liveview/blob/master/lib/platform/socket.js#L62], but I cannot find anything suspicious in both SDK and LiveView. Who is curating that project?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-03-18T11:47:57.000+0000", "updated": "2016-03-18T11:47:57.000+0000" }, { "id": "383525", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Do we have progress here? It blocks 5.4.0 / Hyperloop development.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-21T11:23:21.000+0000", "updated": "2016-04-21T11:23:21.000+0000" }, { "id": "385112", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I'm having problems trying to reproduce this error. Can someone help so i can work on this?\r\nMy environment:\r\nXcode 7.3\r\nnode 4.2.2\r\nappc cli 5.3.0-43\r\nappc npm 4.2.5-5\r\nTi SDK: 5.4.0.v20160508201414\r\n\r\nh4. Steps to reproduce\r\n1. In studio, new titanium project, default classic\r\n2. set liveview\r\n3. check to ensure run-on-main-thread is enabled in tiapp.xml (this should be enabled by default on the latest master)\r\n4. build app\r\n5. make some changes to app.js and save\r\n6. changes are shown with no error\r\n\r\n[~sdarda] can you please try to reproduce this?", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-05-09T07:46:50.000+0000", "updated": "2016-05-09T07:46:50.000+0000" }, { "id": "385113", "author": { "name": "rdperottoni", "key": "rdperottoni", "displayName": "Rodolfo Perottoni", "active": true, "timeZone": "Australia/Brisbane" }, "body": "Xcode 7.3\r\nNode 0.12.7\r\nappc cli 5.2.1\r\nTi SDK 5.2.2.GA\r\n\r\nLiveview: On\r\nRun on main thread: true\r\n\r\nOpen the app and...\r\n!http://i.imgur.com/ksGaGIh.png?1!", "updateAuthor": { "name": "rdperottoni", "key": "rdperottoni", "displayName": "Rodolfo Perottoni", "active": true, "timeZone": "Australia/Brisbane" }, "created": "2016-05-09T07:59:51.000+0000", "updated": "2016-05-09T07:59:51.000+0000" }, { "id": "385114", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~rdperottoni] That the issue occurs with 5.2.x is known, please test with 5.4.0 and edit your comment, thanks!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-05-09T08:04:11.000+0000", "updated": "2016-05-09T08:04:11.000+0000" }, { "id": "385363", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Ok so I am able to reproduce this in older versions of the SDK. \r\nBut the latest master 5.4.X is working fine for this. \r\n", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-05-11T04:25:16.000+0000", "updated": "2016-05-11T04:25:16.000+0000" }, { "id": "386014", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~sdarda][~developer82] if possible, can you verify with 5.4.X (latest master)?", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-05-18T06:53:26.000+0000", "updated": "2016-05-18T06:53:26.000+0000" }, { "id": "400470", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I can confirm that I cannot reproduce it with recent versions of our SDK anymore. Resolving!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-11-06T21:16:39.000+0000", "updated": "2016-11-06T21:16:39.000+0000" }, { "id": "416552", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced, with reference to the above comment.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-31T21:58:15.000+0000", "updated": "2017-03-31T21:58:15.000+0000" } ], "maxResults": 17, "total": 17, "startAt": 0 } } }