{ "id": "165827", "key": "TIMOB-24381", "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": "2017-02-08T16:58:00.000+0000", "created": "2017-02-07T19:23:26.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-02-09T15:38:53.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Hello, When run \"ti build -p ios\" in studio terminal, The console log hangs on \"trying to connect on log server ....\". The app loads fine in the simulator but the console log stuck and never shows the\r\n\r\n-- Start simulator log -------------------------------------------------------\r\n\r\nand the rest of app activity in console. It just sits there. But the app works fine.\r\n\r\nEnvironment:\r\n\r\n{code}\r\nOperating System\r\nName = Mac OS X\r\nVersion = 10.12.3\r\nArchitecture = 64bit\r\n# CPUs = 4\r\nMemory = 8589934592\r\n\r\nNode.js\r\nNode.js Version = 4.7.0\r\nnpm Version = 2.15.11\r\n\r\nTitanium CLI\r\nCLI Version = 5.0.7\r\n\r\nTitanium SDK\r\nSDK Version = 6.0.1.GA\r\nTarget Platform = iphone, ipad\r\nXcode 8.2.1\r\niOS 10.2 simulators\r\n{code}\r\nSample code:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\nbackgroundColor : \"#fff\"\r\n});\r\n\r\nvar abutton = Ti.UI.createButton({\r\ntitle : \"click\"\r\n});\r\n\r\nwin.add(abutton);\r\n\r\nabutton.addEventListener('click', function(e) {\r\nTi.API.info(\"########### Info\");\r\nTi.API.warn(\"########### Warn\");\r\nTi.API.error(\"########### Error\");\r\n\r\n});\r\n\r\nwin.open();\r\n{code}\r\n\r\nThe console doesn't show anything clicking on the button. ", "attachment": [ { "id": "61468", "filename": "Screen+Shot+2017-02-06+at+17.32.47.png", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-02-07T19:21:01.000+0000", "size": 3013635, "mimeType": "image/png" } ], "flagged": false, "summary": "IOS: Console log hangs on trying to connect to log server.", "creator": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "environment": null, "comment": { "comments": [ { "id": "406573", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~sdarda] You couldn't reproduce the issue right? Maybe the port is used by some other application, but then the log-server should check for another one (which it would [here|https://github.com/appcelerator/ioslib/blob/master/lib/simulator.js#L1561] if the connection gets refused), but it doesn't.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-08T11:34:49.000+0000", "updated": "2017-02-08T11:37:25.000+0000" }, { "id": "406579", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~hansknoechel], Yes, I wasn't able to reproduce. For the customer it works on his another machine under same network connection. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-02-08T14:04:01.000+0000", "updated": "2017-02-08T14:04:01.000+0000" }, { "id": "406580", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thx! Oh, and I forgot: Can they try specifying an own port in the tiapp.xml to use? An example of the tiapp section:\r\n{code:xml}\r\n\r\n 29173\r\n\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-08T14:07:23.000+0000", "updated": "2017-02-08T14:07:23.000+0000" }, { "id": "406587", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I am unable to reproduce this with 6.0.1.GA, latest 6_0_X build (6.0.2), and latest master build (6.1.0).\r\n\r\nWaiting for QE to try before resolving this as cannot reproduce.\r\n\r\nYou should only have to set the {{}} if you are consistently having problems, but generally you just need to quit (or reset) the iOS Simulator.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-02-08T16:16:51.000+0000", "updated": "2017-02-08T16:16:51.000+0000" }, { "id": "406591", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I also am unable to reproduce this issue with 6.0.1.GA, 6.0.2, or 6.1.0 SDKs.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-02-08T16:53:31.000+0000", "updated": "2017-02-08T16:53:31.000+0000" }, { "id": "406593", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Thank you [~ewieber]! Resolving as cannot reproduce.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-02-08T16:58:00.000+0000", "updated": "2017-02-08T16:58:00.000+0000" }, { "id": "406596", "author": { "name": "qsheppard", "key": "qsheppard", "displayName": "Quinton Sheppard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It is unfortunate the issue can not be replicated your end.\r\n\r\nIf it makes any difference when I run xCode 7.3 with 5.5 GA the console logs work fine, however on xCode 8.2.1 with 6.0.1 GA it does not show any console logs or Ti.API.info messages. I have also created a stack overflow item under: http://stackoverflow.com/questions/42072477/ti-api-info-not-writing-to-console\r\n\r\nI am going to re-install the system from scratch, then I hope it will work. will just install Appcelerator and its dependancies and run a default Classic project with no other applications installed. then 'if' it works, will install application one after the other to see if there are any port issues arising - Can't see why as Appcelerator is supposed to be intelligent enough to use a different port if the current port is in use.\r\n\r\nThanks,\r\nQuinton", "updateAuthor": { "name": "qsheppard", "key": "qsheppard", "displayName": "Quinton Sheppard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-08T17:48:40.000+0000", "updated": "2017-02-08T17:50:06.000+0000" }, { "id": "406598", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~qsheppard] Actually, it is: https://github.com/appcelerator/titanium_mobile/blob/master/iphone/cli/commands/_build.js#L2373-L2431.\r\n\r\nAgain, reset the iOS Simulator and try again.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-02-08T17:52:25.000+0000", "updated": "2017-02-08T17:53:05.000+0000" }, { "id": "406600", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I'd also like to know if it always tries to connect to port 19920. If so, check which service is using this port ({{netstat -anp tcp | grep 19920}}). But if the port would be used, the log-sever would try another one. ", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-08T17:56:08.000+0000", "updated": "2017-02-08T17:56:08.000+0000" }, { "id": "406718", "author": { "name": "qsheppard", "key": "qsheppard", "displayName": "Quinton Sheppard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I did the above command in the terminal during the build running in the simulator and after I quite the simulator.\r\n\r\nDuring: tcp4 0 0 127.0.0.1.19920 *.* LISTEN\r\n\r\nand after came back with nothing.\r\n\r\nhowever I do get 19920 port coming up each time I run it.", "updateAuthor": { "name": "qsheppard", "key": "qsheppard", "displayName": "Quinton Sheppard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-09T09:54:28.000+0000", "updated": "2017-02-09T09:54:28.000+0000" }, { "id": "406732", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~qsheppard] Here's another idea, the following is a Node.js client that connects to the app and streams the logs:\r\n\r\n{code}\r\nrequire('net').connect(process.argv[2] || 10571)\r\n\t.on('data', data => process.stdout.write(data.toString()))\r\n\t.on('error', err => console.log('error!', err))\r\n\t.on('end', () => console.log('disconnected from server'));\r\n{code}\r\n\r\nSave that to {{client.js}} and run it {{node client.js 19920}}. I'd be curious if that works.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-02-09T14:59:32.000+0000", "updated": "2017-02-09T14:59:32.000+0000" }, { "id": "406736", "author": { "name": "qsheppard", "key": "qsheppard", "displayName": "Quinton Sheppard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks Chris for that, I get the following in response...\r\n\r\nARKDEV25:test_proj quintons_local$ node client.js 19920\r\nerror! { [Error: connect ECONNREFUSED ::1:19920]\r\n code: 'ECONNREFUSED',\r\n errno: 'ECONNREFUSED',\r\n syscall: 'connect',\r\n address: '::1',\r\n port: 19920 }\r\n\r\n", "updateAuthor": { "name": "qsheppard", "key": "qsheppard", "displayName": "Quinton Sheppard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-09T15:18:26.000+0000", "updated": "2017-02-09T15:18:26.000+0000" }, { "id": "406737", "author": { "name": "qsheppard", "key": "qsheppard", "displayName": "Quinton Sheppard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "and if the following helps...\r\n\r\nps aux | grep node\r\nquintons_local 48962 0.9 0.0 2432804 2028 s000 S+ 3:22pm 0:00.00 grep node\r\nquintons_local 1853 0.0 0.7 3158080 58516 ?? S 11:44am 0:01.56 /Applications/Utilities/Adobe Creative Cloud/CCLibrary/CCLibrary.app/Contents/MacOS/../libs/node /Applications/Utilities/Adobe Creative Cloud/CCLibrary/CCLibrary.app/Contents/MacOS/../js/server.js\r\nquintons_local 923 0.0 0.6 3124056 47832 ?? S 11:33am 0:01.79 /Applications/Utilities/Adobe Creative Cloud/CCXProcess/CCXProcess.app/Contents/MacOS/../libs/node /Applications/Utilities/Adobe Creative Cloud/CCXProcess/CCXProcess.app/Contents/MacOS/../js/main.js\r\nroot 104 0.0 0.1 2469688 5076 ?? Ss 11:30am 0:10.73 /System/Library/CoreServices/ionodecache -k /var/db/ionodecache.json", "updateAuthor": { "name": "qsheppard", "key": "qsheppard", "displayName": "Quinton Sheppard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-09T15:26:20.000+0000", "updated": "2017-02-09T15:26:20.000+0000" }, { "id": "406739", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "If you can't connect, then the app isn't running. You need to launch the app before trying to connect with the client.\r\n\r\nHave you tried resetting your iOS Simulator?", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-02-09T15:38:53.000+0000", "updated": "2017-02-09T15:38:53.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }