{ "id": "159713", "key": "TIMOB-23260", "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-05-27T03:35:37.000+0000", "created": "2016-04-20T07:08:19.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "17707", "name": "Release 5.3.0", "archived": false, "released": true, "releaseDate": "2016-06-04" } ], "issuelinks": [ { "id": "51495", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "149156", "key": "TIMOB-19077", "fields": { "summary": "Windows: Logging does not seem to work when using device", "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 } } } }, { "id": "51462", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "159706", "key": "TIMOB-23241", "fields": { "summary": "Windows: logging from native module doesn't work", "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": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-26T03:25:49.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Once index.js has been executed the following is shown in the log:\r\n\r\n[INFO] : Finished launching the application\r\n[INFO] : Waiting for app to connect to log relay\r\n-- End application log -------------------------------------------------------\r\n\r\nThis means that no asynchronous events in the code will be printed and debugging is quite hard to say the least.", "attachment": [ { "id": "59159", "filename": "setting.png", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-05-06T07:52:53.000+0000", "size": 75558, "mimeType": "image/png" } ], "flagged": false, "summary": "Windows: Logs don't appear from background/async threads", "creator": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "subtasks": [], "reporter": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "environment": "SDK 5.3.0.v20160418111755\r\n\r\nappc info:\r\nAppcelerator Command-Line Interface, version 5.2.2\r\nCopyright (c) 2014-2016, Appcelerator, Inc. All Rights Reserved.\r\n\r\nOperating System\r\n Name = Microsoft Windows 10 Pro\r\n Version = 10.0.10586\r\n Architecture = 32bit\r\n # CPUs = 2\r\n Memory = 4.0GB\r\n\r\nNode.js\r\n Node.js Version = 0.12.7\r\n npm Version = 2.11.3\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.4\r\n Core Package = 5.2.2\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.6\r\n node-appc Version = 0.2.31\r\n\r\nTitanium SDKs\r\n 5.4.0.v20160410215408\r\n Version = 5.4.0\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.4.0.v20160410215408\r\n Platforms = android, mobileweb, windows\r\n git Hash = 97fe3e2\r\n git Timestamp = 04/10/16 21:54\r\n node-appc Version = 0.2.35\r\n 5.4.0.v20160330202802\r\n Version = 5.4.0\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.4.0.v20160330202802\r\n Platforms = android, mobileweb, windows\r\n git Hash = 15320e5\r\n git Timestamp = 03/30/16 20:28\r\n node-appc Version = 0.2.35\r\n 5.4.0.v20160301084038\r\n Version = 5.4.0\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.4.0.v20160301084038\r\n Platforms = android, mobileweb, windows\r\n git Hash = 071c19c\r\n git Timestamp = 03/01/16 08:40\r\n node-appc Version = 0.2.35\r\n 5.3.0.v20160418111755\r\n Version = 5.3.0\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.3.0.v20160418111755\r\n Platforms = android, mobileweb, windows\r\n git Hash = 7c38ca5\r\n git Timestamp = 04/18/16 11:17\r\n node-appc Version = 0.2.33\r\n\r\nIntel® Hardware Accelerated Execution Manager (HAXM)\r\n Not installed\r\n\r\nJava Development Kit\r\n Not found\r\n\r\nGenymotion\r\n Path = not found\r\n Genymotion Executable = not found\r\n Genymotion Player = not found\r\n Home = not found\r\n\r\nVirtualBox\r\n Executable = not found\r\n Version = unknown\r\n\r\nAndroid SDK\r\n Android Executable = not found\r\n ADB Executable = not found\r\n SDK Path = not found\r\n\r\nAndroid NDK\r\n NDK Path = not found\r\n NDK Version = not found\r\n\r\nAndroid Platforms\r\n None\r\n\r\nAndroid Add-Ons\r\n None\r\n\r\nAndroid Emulators\r\n None\r\n\r\nGenymotion Emulators\r\n None\r\n\r\nConnected Android Devices\r\n None\r\n\r\nMicrosoft (R) Visual Studio\r\n 14.0 (selected)\r\n Path = C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\\r\n CLR Version = v4.0.30319\r\n MSBuild Version = v14.0.24730.2\r\n Windows Phone SDKs = not installed\r\n\r\nMicrosoft (R) Windows Phone SDK\r\n 10.0\r\n Path = C:\\Program Files (x86)\\Windows Kits\\10\\\r\n 8.1 (selected)\r\n Path = C:\\Program Files (x86)\\Microsoft SDKs\\Windows Phone\\v8.1\\\r\n\r\nWindows PowerShell\r\n Enabled = yes\r\n\r\nWindows Phone Emulators\r\n8.1\r\n Emulator 8.1 WVGA 4 inch 512MB\r\n UDID 8-1-1\r\n Emulator 8.1 WVGA 4 inch\r\n UDID 8-1-2\r\n Emulator 8.1 WXGA 4.5 inch\r\n UDID 8-1-3\r\n Emulator 8.1 720P 4.7 inch\r\n UDID 8-1-4\r\n Emulator 8.1 1080P 5.5 inch\r\n UDID 8-1-5\r\n Emulator 8.1 1080P 6 inch\r\n UDID 8-1-6\r\n10.0\r\n\r\nWindows Phone Devices\r\n Device\r\n UDID 0\r\n\r\nJava Development Kit Issues\r\n × JDK (Java Development Kit) not installed.\r\n If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly\r\n set.\r\n The JDK is required for must be manually downloaded and installed from\r\n http://appcelerator.com/jdk.\r\n\r\nAndroid Issues\r\n × JDK (Java Development Kit) not found.\r\n If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly\r\n set.\r\n The JDK can be downloaded and installed from http://appcelerator.com/jdk.", "comment": { "comments": [ { "id": "383300", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\nThanks for reporting. The phenomena that you described is not supposed to happen. It is possible to get error and debug log in the console for Windows Phone. Following is an example of console log that I get for an app on Windows Phone Emulator.\r\n{code}\r\n-- Start application log -----------------------------------------------------\r\n[INFO] : Finished launching the application\r\n[INFO] : Waiting for app to connect to log relay\r\n[ERROR] : Number of buttons exceeds platform maximum (2), list will be truncated.\r\n[INFO] : Disconnected from app\r\n-- End application log -------------------------------------------------------\r\n{code}\r\nPlease let us know the following things.\r\n1. If it is happening every time for any code.\r\n2. If your app is crashing.\r\n3. Your environment details.\r\n4. If it happening for some particular code in index.js please share it.\r\n\r\n \r\n*Environment*:\r\n\r\n*Device info:* Microsoft Lumia 640 \r\n*Node.js Version:* 0.12.7\r\n*npm Version:* 2.11.3\r\n*Titanium SDKs:* 5.2.2.GA and 5.2.1.GA\r\n*Java Development Kit Version:* 1.8.0_73\r\n*Titanium CLI Version:* 5.0.5\r\n*Appcelerator CLI Version:* 5.2.2\r\n*Appcelerator Studio:* 4.5.0", "updateAuthor": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-04-20T10:17:31.000+0000", "updated": "2016-04-20T10:17:31.000+0000" }, { "id": "383303", "author": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "body": "My environment is:\r\n\r\n\r\nSDK 5.3.0.v20160418111755\r\n\r\nappc info:\r\nAppcelerator Command-Line Interface, version 5.2.2\r\nCopyright (c) 2014-2016, Appcelerator, Inc. All Rights Reserved.\r\n\r\nOperating System\r\n Name = Microsoft Windows 10 Pro\r\n Version = 10.0.10586\r\n Architecture = 32bit\r\n # CPUs = 2\r\n Memory = 4.0GB\r\n\r\nNode.js\r\n Node.js Version = 0.12.7\r\n npm Version = 2.11.3\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.4\r\n Core Package = 5.2.2\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.6\r\n node-appc Version = 0.2.31\r\n\r\nTitanium SDKs\r\n 5.4.0.v20160410215408\r\n Version = 5.4.0\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.4.0.v20160410215408\r\n Platforms = android, mobileweb, windows\r\n git Hash = 97fe3e2\r\n git Timestamp = 04/10/16 21:54\r\n node-appc Version = 0.2.35\r\n 5.4.0.v20160330202802\r\n Version = 5.4.0\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.4.0.v20160330202802\r\n Platforms = android, mobileweb, windows\r\n git Hash = 15320e5\r\n git Timestamp = 03/30/16 20:28\r\n node-appc Version = 0.2.35\r\n 5.4.0.v20160301084038\r\n Version = 5.4.0\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.4.0.v20160301084038\r\n Platforms = android, mobileweb, windows\r\n git Hash = 071c19c\r\n git Timestamp = 03/01/16 08:40\r\n node-appc Version = 0.2.35\r\n 5.3.0.v20160418111755\r\n Version = 5.3.0\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.3.0.v20160418111755\r\n Platforms = android, mobileweb, windows\r\n git Hash = 7c38ca5\r\n git Timestamp = 04/18/16 11:17\r\n node-appc Version = 0.2.33\r\n\r\nIntel® Hardware Accelerated Execution Manager (HAXM)\r\n Not installed\r\n\r\nJava Development Kit\r\n Not found\r\n\r\nGenymotion\r\n Path = not found\r\n Genymotion Executable = not found\r\n Genymotion Player = not found\r\n Home = not found\r\n\r\nVirtualBox\r\n Executable = not found\r\n Version = unknown\r\n\r\nAndroid SDK\r\n Android Executable = not found\r\n ADB Executable = not found\r\n SDK Path = not found\r\n\r\nAndroid NDK\r\n NDK Path = not found\r\n NDK Version = not found\r\n\r\nAndroid Platforms\r\n None\r\n\r\nAndroid Add-Ons\r\n None\r\n\r\nAndroid Emulators\r\n None\r\n\r\nGenymotion Emulators\r\n None\r\n\r\nConnected Android Devices\r\n None\r\n\r\nMicrosoft (R) Visual Studio\r\n 14.0 (selected)\r\n Path = C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\\r\n CLR Version = v4.0.30319\r\n MSBuild Version = v14.0.24730.2\r\n Windows Phone SDKs = not installed\r\n\r\nMicrosoft (R) Windows Phone SDK\r\n 10.0\r\n Path = C:\\Program Files (x86)\\Windows Kits\\10\\\r\n 8.1 (selected)\r\n Path = C:\\Program Files (x86)\\Microsoft SDKs\\Windows Phone\\v8.1\\\r\n\r\nWindows PowerShell\r\n Enabled = yes\r\n\r\nWindows Phone Emulators\r\n8.1\r\n Emulator 8.1 WVGA 4 inch 512MB\r\n UDID 8-1-1\r\n Emulator 8.1 WVGA 4 inch\r\n UDID 8-1-2\r\n Emulator 8.1 WXGA 4.5 inch\r\n UDID 8-1-3\r\n Emulator 8.1 720P 4.7 inch\r\n UDID 8-1-4\r\n Emulator 8.1 1080P 5.5 inch\r\n UDID 8-1-5\r\n Emulator 8.1 1080P 6 inch\r\n UDID 8-1-6\r\n10.0\r\n\r\nWindows Phone Devices\r\n Device\r\n UDID 0\r\n\r\nJava Development Kit Issues\r\n × JDK (Java Development Kit) not installed.\r\n If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly\r\n set.\r\n The JDK is required for must be manually downloaded and installed from\r\n http://appcelerator.com/jdk.\r\n\r\nAndroid Issues\r\n × JDK (Java Development Kit) not found.\r\n If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly\r\n set.\r\n The JDK can be downloaded and installed from http://appcelerator.com/jdk.", "updateAuthor": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "created": "2016-04-20T11:30:33.000+0000", "updated": "2016-04-20T11:30:33.000+0000" }, { "id": "383304", "author": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "body": "1. If it is happening every time for any code. \r\n\r\nYes, it is 100% reproducible. My colleague who is working on the same project does not get this error however.\r\n\r\n2. If your app is crashing. \r\n\r\nNo, not that I'm aware of.\r\n\r\n3. Your environment details. \r\n\r\nSee comment above\r\n\r\n4. If it happening for some particular code in index.js please share it.\r\n\r\nI will try to isolate this in a minimal app and get back to you later with details.", "updateAuthor": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "created": "2016-04-20T11:32:58.000+0000", "updated": "2016-04-20T11:32:58.000+0000" }, { "id": "383314", "author": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "body": "I can reproduce this by creating a new default alloy app:\r\nindex.js:\r\n{code}\r\nfunction doClick(e) {\r\n Ti.API.info(\"Hi there\");\r\n alert($.label.text);\r\n}\r\n\r\n$.win.open();\r\n{code}\r\n\r\nindex.xml:\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nThe log says:\r\n\r\n-- Start application log -----------------------------------------------------\r\n[INFO] : Finished launching the application\r\n[INFO] : Waiting for app to connect to log relay\r\n[INFO] : ACS Login Results for environment `development`:\r\n[INFO] [object Object]\r\n-- End application log -------------------------------------------------------\r\n\r\nThe Ti.API.info(\"Hi there\"); is not printed when I click the label", "updateAuthor": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "created": "2016-04-20T11:52:16.000+0000", "updated": "2016-04-20T11:52:16.000+0000" }, { "id": "383636", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "Let me know if you need me to test anything in the backgournd service and the LOG marco you have there, that is the only problem I have on my host, but I know Win 10 seems more problematic...", "updateAuthor": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-22T07:14:36.000+0000", "updated": "2016-04-22T07:14:36.000+0000" }, { "id": "383637", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Tested {{5.3.0.v20160418111755}} on Windows 10 but I was not able to reproduce this. [~jonasbjurhult] Do you set something special on your {{tiapp.xml}}? For example native module or {{Capabilities}} etc. I also wonders if there's some kind of firewall program running in background that prevents logger from running. Note that Titanium CLI uses specific port to receive log (I think it's around {{8666}}.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-22T07:17:36.000+0000", "updated": "2016-04-22T07:17:36.000+0000" }, { "id": "383639", "author": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "body": "I run a default installation of Windows 10 Pro in Parallels, no programs added beside the dev tools needed for Titanium development.\r\nI tried disabling windows firewall but still get the same result.", "updateAuthor": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "created": "2016-04-22T07:26:59.000+0000", "updated": "2016-04-22T07:26:59.000+0000" }, { "id": "384311", "author": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "body": "This works when running windows 8.1 enterprise so it is probably a Windows 10 problem", "updateAuthor": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "created": "2016-04-29T08:51:49.000+0000", "updated": "2016-04-29T08:54:07.000+0000" }, { "id": "384972", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Just got Parallels for me. Titanium CLI logging worked for me on Windows 10 & Parallels on Mac. In order to logging work, I needed to change Parallels Networks sources to \"*Wi-Fi*\".\r\n\r\n!setting.png|thumbnail!\r\n\r\n As side note, I'm note sure if it's related but I enabled \"Enable nested virtualization\" according to [Installing the Windows Phone SDK|http://docs.appcelerator.com/platform/latest/#!/guide/Installing_the_Windows_Phone_SDK-section-43306274_InstallingtheWindowsPhoneSDK-RunningWindows8withParallels].", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-05-06T07:55:43.000+0000", "updated": "2016-05-06T07:55:43.000+0000" }, { "id": "385055", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I have also experienced that I actually needed to sign out my local account from Windows, that's needed because Windows requires re-sign-in (or restart) to update Windows Hyper-V related configuration. Without sign-out, logging disconnected for me just like this ticket describes. Just in case, hope this helps.\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-05-07T01:17:58.000+0000", "updated": "2016-05-07T01:17:58.000+0000" }, { "id": "385880", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~jonasbjurhult] This still doesn't work for you? I've tried *Wi-Fi* network and \"Enable nested virtualization\" and then re-sigin-in worked for me like described above, and I'm interested to see if it works for you.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-05-17T08:27:08.000+0000", "updated": "2016-05-17T08:27:08.000+0000" }, { "id": "386991", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I try to reproduce this using Windows 10 + Parallels on Mac but had no luck. we may need more info to reproduce this.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-05-27T03:35:37.000+0000", "updated": "2016-05-27T03:35:37.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }