{ "id": "149156", "key": "TIMOB-19077", "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": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-07-28T17:32:16.000+0000", "created": "2015-06-26T01:06:21.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-4.1.0" ], "versions": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "issuelinks": [ { "id": "51495", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "159713", "key": "TIMOB-23260", "fields": { "summary": "Windows: Logs don't appear from background/async threads", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "51494", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "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 } } } }, { "id": "48453", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "149863", "key": "TIMOB-19248", "fields": { "summary": "Windows: Release/Debug build option for CLI", "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": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-05-06T07:58:35.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": "h5.Description\r\n\r\nWhen building to Windows Phone device I am unable to get logging to work. I have tried across multiple machines and devices when using the same wifi etc.\r\n\r\nLogging works fine when running in an emulator. \r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'red'});\r\n\r\nvar lbl = Ti.UI.createLabel({\r\n text: 'I log things!',\r\n color: 'black'\r\n});\r\n\r\nlbl.addEventListener('click', function(){\r\n Ti.API.info('Hello from info!');\r\n Ti.API.debug('Hello from debug!');\r\n Ti.API.error('Hello from error!');\r\n});\r\n\r\nwin.add(lbl);\r\nwin.open();\r\n{code}\r\n\r\nh5.Steps To Reproduce\r\n\r\n1. Add the above code to an app.js and build to device\r\n2. Build to emulator\r\n\r\nh5.Actual Result\r\n\r\n1. No logging\r\n2. Logging\r\n\r\nh5.Expected Result\r\n\r\nThere should be logging in both circumstances", "attachment": [], "flagged": false, "summary": "Windows: Logging does not seem to work when using device", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Windows 8.1 \r\nAppc CLI: 4.1.0-3\r\nTi SDK: 4.1.0.v20150625180021\r\nLumia 928: 8.1 ", "closedSprints": [ { "id": 453, "state": "closed", "name": "2015 Sprint 15 Windows", "startDate": "2015-07-20T04:01:11.596Z", "endDate": "2015-08-02T03:59:00.000Z", "completeDate": "2015-08-03T23:03:05.129Z", "originBoardId": 144 } ], "comment": { "comments": [ { "id": "356690", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Might require PowerTools to be installed on the device?\r\nhttps://msdn.microsoft.com/en-us/library/windows/apps/dn629255.aspx", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-07-02T08:08:17.000+0000", "updated": "2015-07-02T08:08:17.000+0000" }, { "id": "358178", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Started looking into this, hope Microsoft provides kind of helper tools for that.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-23T00:36:38.000+0000", "updated": "2015-07-23T00:36:38.000+0000" }, { "id": "358195", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I have confirmed that the logging mechanics itself ({{windowslib.LogRelay}}) is working even on device. But it seems it is disabled _on purpose_ when building for device through Titanium CLI during encryption process, which sounds reasonable for me. I think that the fundamental problem is that currently CLI builds Release app only and it doesn't provide target build option (Debug/Release). I think we need to implement the option before TIMOB-19077 because I think logging should be enabled only when it is built with Debug mode.\r\n\r\nWould you confirm above, dose this sounds reasonable for you guys [~cwilliams] [~dtoth]?", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-23T11:41:20.000+0000", "updated": "2015-07-23T11:41:20.000+0000" }, { "id": "358201", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "[~kota] Do you know where it's disabled exactly?\r\n\r\nI think we are mixing up Debug/Release builds of libs versus deploy type of production/development here. I think turning off logging for production deploy type makes sense, but should be on for development.\r\n\r\nDebug/Release libs is another issue and is useful for doing actual debugging of the stack in VS. We intentionally don't do Debug libs because of how large the SDK would bloat - and i'm not sure how much end users would need to be able to do debugging of the Titanium internals. It may be useful for _us_ SDK developers - or for module developers.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-07-23T16:29:30.000+0000", "updated": "2015-07-23T16:29:30.000+0000" }, { "id": "358202", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Just another note that we can't just do \"Debug\" build for the user's app because it behaves oddly/crashes when you build the user's app as Debug against Release versions of the SDK libs.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-07-23T16:31:10.000+0000", "updated": "2015-07-23T16:31:10.000+0000" }, { "id": "358235", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Yup I think I mixed up Debug/Release and production/development...Logging should be enabled for development deploy type even on device. Started looking into CLI.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-24T04:08:07.000+0000", "updated": "2015-07-24T04:08:07.000+0000" }, { "id": "358236", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/389", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-24T04:51:10.000+0000", "updated": "2015-07-24T04:51:10.000+0000" }, { "id": "358245", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I should note that in order to make logging work on device, you should enable wi-fi because your device needs network access to your computer.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-24T08:01:38.000+0000", "updated": "2015-07-24T08:01:38.000+0000" }, { "id": "359753", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix. \r\n\r\nLogging works on windows device.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio: 4.2.0.201508062204\r\nTi SDK: 4.2.0.v20150812110420 ( to be rename to 5.0)\r\nTi CLI: 4.1.4\r\nAlloy: 1.6.2\r\nWindows: 8.1 Enterprise 64-bit\r\nAPPC NPM: 4.2.0-1\r\nAPPC CLI: 4.2.0-44\r\nNode : v0.10.37\r\nDevice: Nokia Lumia 928 - Windows Phone 8.1\r\nWindows emulator : 8.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-13T00:07:08.000+0000", "updated": "2015-08-13T00:07:44.000+0000" }, { "id": "383885", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "Should we reopen this, or how did you exactly get that working? I cannot see any logs from device when I am running the app?\r\n\r\nThanks", "updateAuthor": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-26T07:14:43.000+0000", "updated": "2016-04-26T07:14:43.000+0000" }, { "id": "383896", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~buder] I guess you mean logging from native logs? We have a ticket for it: TIMOB-23241", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-26T08:29:53.000+0000", "updated": "2016-04-26T08:29:53.000+0000" }, { "id": "383898", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "-native logs- -> native modules ;)\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-26T08:31:17.000+0000", "updated": "2016-04-26T08:31:17.000+0000" }, { "id": "383904", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi Kota\r\n\r\nNo I do not mean from module, from module is not working yet for me and I will have a look at the ticket BUT I have never been able to collect logs from the device to the console in Studio or cmd\r\n\r\nYou have a ticket on this from way before but I cannot tell if this was resolved or not..\r\n\r\nThe basic thing is, there are no logs from device, any Ti.API.info is not output to the cmd our output console\r\nAt some point you have said that you are not able to do that from phone device unless you build in debug on device and that is not possible (why?) \r\n\r\nNot being able to see the legs on phone device is a HUGE problem from a development perspective. As in this very now I am trying to understand why I am getting a crash on the phone but I have no logs what so ever to investigate the problem.. \r\n\r\nDo you have a solution to this, in that case I need it now...\r\n\r\nI have not been able to do this ever, not since I started with Win phone dev in TI summer 2015\r\n\r\n:(", "updateAuthor": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-26T09:06:16.000+0000", "updated": "2016-04-26T09:06:16.000+0000" }, { "id": "383905", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "And is that ticket on the way into the latest builds? I mean the module loggs? I can find a pull but no win 8.1 builds... ", "updateAuthor": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-26T09:07:52.000+0000", "updated": "2016-04-26T09:07:52.000+0000" }, { "id": "383911", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I have tried 5.2, 5.3 and 5.4 builds and device logging worked for all of them. (not so latest build, tested on 5.4.0.v20160421173335, 5.3.0.v20160415121959 and 5.2.3.v20160404160237). [~buder] Do you enable wi-fi access on your device? Can the device access to your PC through wi-fi? In order to make logging work, your device and PC need wi-fi connection because Ti CLI establishes connection between device and PC to communicate messages.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-26T11:11:05.000+0000", "updated": "2016-04-26T11:11:05.000+0000" }, { "id": "383912", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "Ok, so I have always been running latest from nightly builds, are you saying that the logging do not work on the latest builds? \r\n\r\nIn that case that is one reason, then I have to recheck the wifi but yes I believe I do have them on same wifi, I will try with one of the stable versions you mention and get back to you..\r\n\r\n", "updateAuthor": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-26T11:15:47.000+0000", "updated": "2016-04-26T11:15:47.000+0000" }, { "id": "383913", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "and we are both talking about Windows phone device here ??", "updateAuthor": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-26T11:16:14.000+0000", "updated": "2016-04-26T11:16:14.000+0000" }, { "id": "383914", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "and when you say same \"wifi\" you mean same network? Not necessarily wifi.. can be one wifi (phone) and one cable or wifi on the host", "updateAuthor": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-26T11:17:16.000+0000", "updated": "2016-04-26T11:17:16.000+0000" }, { "id": "383918", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{quote}\r\n Ok, so I have always been running latest from nightly builds, are you saying that the logging do not work on the latest builds? \r\n{quote}\r\n\r\nNo, I'm not saying that. I said I tested 5.2, 5.3 and 5.4 and logging worked for all of them. On the device. Windows Phone 8.1.\r\n\r\n{quote}\r\nand when you say same \"wifi\" you mean same network? \r\n{quote}\r\n\r\nYes, it should be on the same network because\r\n\r\n{quote}\r\nTi CLI establishes connection between device and PC to communicate messages.\r\n{quote}\r\n\r\nPS I have tested on the very latest 5.4 (5.4.0.v20160426000033) and logging worked too.\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-26T12:02:02.000+0000", "updated": "2016-04-26T12:02:02.000+0000" }, { "id": "383919", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "I have been running that exact same latest build on my device here 1 hours ago and I get nothing. :(\r\n\r\nThere must be something more needed than same network :(\r\n\r\nIs there any more settings needed in the phone? Do note that I run the app on the phone fine, but no loggs..\r\n\r\n/Jörgen", "updateAuthor": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-26T12:20:20.000+0000", "updated": "2016-04-26T12:20:20.000+0000" }, { "id": "383920", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "Are you running a dedicated window host or are you running Parallels?\r\n\r\nI checked my parallels network and I have perfect network connection so there is nothing stopping it, I have also disabled all firewall settings...\r\n\r\nI have access to the network", "updateAuthor": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-26T12:21:41.000+0000", "updated": "2016-04-26T12:21:41.000+0000" }, { "id": "383922", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I'm running a dedicated window host. I see, it sounds it's related to TIMOB-23260. Maybe there's something to do with Parallels...\r\n\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-26T12:31:14.000+0000", "updated": "2016-04-26T12:31:14.000+0000" }, { "id": "384164", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "I do not think that is related... :)", "updateAuthor": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-28T08:25:27.000+0000", "updated": "2016-04-28T08:25:27.000+0000" }, { "id": "384974", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Just got Parallels for me and I was able to make it work by enabling \"*Wi-Fi*\" in Parallels preference. See comments in TIMOB-23260 for details.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-05-06T07:58:35.000+0000", "updated": "2016-05-06T07:58:35.000+0000" } ], "maxResults": 24, "total": 24, "startAt": 0 } } }