{ "id": "152452", "key": "TIMOB-19821", "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": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" }, { "id": "17072", "name": "Release 5.1.2", "archived": false, "released": true, "releaseDate": "2016-01-12" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-11-24T20:10:45.000+0000", "created": "2015-10-29T00:36:37.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "log" ], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "issuelinks": [ { "id": "49712", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "151987", "key": "AC-1424", "fields": { "summary": "Titanium studio won't show Android 6.0M application log ", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "49524", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "152184", "key": "TIMOB-19744", "fields": { "summary": "Android : Geolocation callback is not being called on android 6.0", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "49525", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "152309", "key": "TIMOB-19782", "fields": { "summary": "Android: eventListeners don't fire on android 6.0", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2016-04-27T02:19:55.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Checked with latest 5.0.3 & 5.0.2.GA & did not see any logs from android 6.0 in studio.*\r\n\r\nh5.Steps To Reproduce:\r\n1. Use the code below in your app.js:\r\n{code}\r\nvar win = Ti.UI.createWindow({ \r\n title: \"Test\" \r\n}); \r\nvar button = Titanium.UI.createButton({ \r\n title: 'Hello', \r\n top: 10 \r\n}); \r\n\r\nbutton.addEventListener('click',function(e){ \r\n Ti.API.info(\"This is info log\"); \r\n Ti.API.debug(\"This is debug log\");\r\n Ti.API.error(\"This is error log\");\r\n Ti.API.trace(\"This is trace log\"); \r\n}); \r\n \r\nwin.add(button); \r\n \r\nwin.open(); \r\n{code}\r\n2. Build for android 6.0 device/emulator.\r\n3. After the app launches tap on the button & the window & check if you see logs in the studio console.\r\n\r\nh5.Actual Results:\r\n1. No logs are seen on studio console from android 6.0 device/emulator.\r\n*Note: The logs appear fine on android logcat.*\r\n\r\nh5.Expected Results:\r\n1. We should see logs from android 6.0 device/emulator on studio console.\r\n", "attachment": [], "flagged": false, "summary": "Android 6.0: Device & emulator logs don't show up in studio console", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Environment:\r\nAppc Studio : 4.4.0.201510280736\r\nTi SDK : 5.1.0.v20151028143628 \r\nTi CLI : 5.0.5\r\nAlloy : 1.7.18\r\nMAC Yosemite : 10.10.5\r\nAppc NPM : 4.2.1-6\r\nAppc CLI : 5.1.0-38\r\nNode: v0.10.37\r\nNexus 5 - Android 6.0\r\nAndroid emulator : Android 6.0", "closedSprints": [ { "id": 534, "state": "closed", "name": "2015 Sprint 24 Tooling", "startDate": "2015-11-23T20:23:31.316Z", "endDate": "2015-12-05T02:23:00.000Z", "completeDate": "2015-12-07T18:44:25.555Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "369711", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Do you see the log output when you build the app from the CLI?", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-11-11T08:42:17.000+0000", "updated": "2015-11-11T08:42:17.000+0000" }, { "id": "369744", "author": { "name": "adampax", "key": "adampax", "displayName": "Adam Paxton", "active": true, "timeZone": "America/New_York" }, "body": "[~cbarber] tested via CLI and do not see logs when building to a 6.0 device. Same build to a 4.4.4 device and I do see the logs. Both device's logs appear in logcat.\r\n\r\n{noformat}\r\n Name = Mac OS X\r\n Version = 10.10.5\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\n\r\nNode.js\r\n Node.js Version = 0.10.40\r\n npm Version = 2.14.3\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.5\r\n\r\nTitanium SDK\r\n SDK Version = 5.1.0.v20151104190037\r\n SDK Path = /Users/adam/Library/Application Support/Titanium/mobilesdk/osx/5.1.0.v20151104190037\r\n Target Platform = android\r\n{noformat}", "updateAuthor": { "name": "adampax", "key": "adampax", "displayName": "Adam Paxton", "active": true, "timeZone": "America/New_York" }, "created": "2015-11-11T14:13:31.000+0000", "updated": "2015-11-11T14:17:04.000+0000" }, { "id": "369781", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "The log filtering is regex-based. It's possible that the log format has changed. I'll have to investigate.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-11-11T19:04:36.000+0000", "updated": "2015-11-11T19:04:36.000+0000" }, { "id": "370485", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Ran `adb logcat` on an Android 4.X vs an Android 6.0\r\n\r\nOn Android 4.X\r\n{code}\r\nI/TiAPI (25694): This is info log\r\nD/TiAPI (25694): This is debug log\r\nE/TiAPI (25694): This is error log\r\nV/TiAPI (25694): This is trace log\r\n{code}\r\n\r\nOn Android 6.0\r\n{code}\r\n11-17 00:28:55.383 13438 13471 I TiAPI : This is info log\r\n11-17 00:28:55.384 13438 13471 D TiAPI : This is debug log\r\n11-17 00:28:55.384 13438 13471 E TiAPI : This is error log\r\n11-17 00:28:55.384 13438 13471 V TiAPI : This is trace log\r\n{code}\r\n\r\n[~cbarber] Yup. Your guess is correct. Log format changed in 6.0.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-11-17T05:35:27.000+0000", "updated": "2015-11-17T05:35:27.000+0000" }, { "id": "370486", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Android ticket mentioning Logcat changes in M aka Android 6.0 https://code.google.com/p/android/issues/detail?id=75694", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-11-17T05:41:29.000+0000", "updated": "2015-11-17T05:41:29.000+0000" }, { "id": "370492", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Would running using `adb logcat -B` which is to output the log in Binary and then filtering that make it future proof? ", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-11-17T08:03:57.000+0000", "updated": "2015-11-17T08:03:57.000+0000" }, { "id": "370529", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~msamah] We already use the `-b` flag. https://github.com/appcelerator/titanium_mobile/blob/master/node_modules/titanium-sdk/lib/adb.js#L683\r\n\r\nI'll take a look at the regex and figure out a regex that works with both output.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-11-17T16:46:27.000+0000", "updated": "2015-11-17T16:46:27.000+0000" }, { "id": "370626", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Ok!\r\n\r\nOn a side note, the `-b` and `-B` flag do different things. At least according to when I use `-h`\r\n(Assuming you want to use/try `-B`, the output will no longer be plain text.)\r\n{code}\r\n -b Request alternate ring buffer, 'main', 'system', 'radio',\r\n 'events', 'crash' or 'all'. Multiple -b parameters are\r\n allowed and results are interleaved. The default is\r\n -b main -b system -b crash.\r\n -B output the log in binary.\r\n{code}", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-11-18T02:16:11.000+0000", "updated": "2015-11-18T02:20:05.000+0000" }, { "id": "370689", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "NodeJS module to read binary logical:\r\nhttps://github.com/openstf/adbkit-logcat", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-11-18T13:38:58.000+0000", "updated": "2015-11-18T13:38:58.000+0000" }, { "id": "371153", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Found the source of our woes: They changed the default format used from \"brief\" to \"threadtime\", so we're trying to parse a brief output format but getting another. We can probably just fix this by explicitly specifying we want the brief format in our command line args.\r\n\r\nhttps://android.googlesource.com/platform/system/core/+/649fc605f8094c06a38251466ccb15a722e8a91f%5E%21/\r\n\r\nAnd just for completeness, here's how they spit out threadtime formatted logs: https://github.com/android/platform_system_core/blob/master/liblog/logprint.c#L1346\r\n\r\nLooks to be: time, pid, threadid, loglevel, tag, message", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-11-23T15:14:43.000+0000", "updated": "2015-11-23T15:14:43.000+0000" }, { "id": "371204", "author": { "name": "andersdp", "key": "andersdp", "displayName": "Anders Dahl Pape", "active": true, "timeZone": "Europe/Berlin" }, "body": "@cwilliams Is it possible to make some changes locally to make it work untill a fix is released? I quite badly need to debug some errors on Android 6.0.", "updateAuthor": { "name": "andersdp", "key": "andersdp", "displayName": "Anders Dahl Pape", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-23T19:28:23.000+0000", "updated": "2015-11-23T19:28:23.000+0000" }, { "id": "371229", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "[~andersdp] yes, basically open your SDK (say ~/Library/Application Support/Titanium/mobilesdk/osx/5.1.0.GA/), go into the node_modules/titanium-sdk/lib/adb.js file and apply the fix I did in this commit: \r\nhttps://github.com/sgtcoolguy/titanium_mobile/commit/949b636eaf7ae7c699c9395840f41184e849c9e4\r\n\r\nline 683 becomes:\r\n{code:javascript}\r\nvar child = spawn(results.sdk.executables.adb, ['-s', deviceId, 'logcat', '-v', 'brief', '-b', 'main']); //, '-s', '*:d,*,TiAPI:V']);\r\n{code}", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-11-23T21:26:57.000+0000", "updated": "2015-11-23T21:26:57.000+0000" }, { "id": "371323", "author": { "name": "andersdp", "key": "andersdp", "displayName": "Anders Dahl Pape", "active": true, "timeZone": "Europe/Berlin" }, "body": "@cwilliams It works. Thanks :)", "updateAuthor": { "name": "andersdp", "key": "andersdp", "displayName": "Anders Dahl Pape", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-24T07:49:42.000+0000", "updated": "2015-11-24T07:50:49.000+0000" }, { "id": "371489", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nWe see logs in studio from android 6.0 device & emulator.\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.4.0.201511241829\r\nTi SDK : 5.2.0.v20151125112632\r\nTi CLI : 5.0.5\r\nAlloy : 1.7.26\r\nMAC Yosemite : 10.10.5\r\nAppc NPM : 4.2.2\r\nAppc CLI : 5.1.0\r\nNode: v0.12.27\r\nNexus 6 - Android 6.0\r\nEmulator - Android 6.0", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-11-25T23:08:03.000+0000", "updated": "2015-11-25T23:08:03.000+0000" }, { "id": "371511", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "To Note: This ticket is marked 5.1.2 but PR was merged in 5.1.1GA", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-26T03:49:42.000+0000", "updated": "2015-11-26T03:49:42.000+0000" }, { "id": "383995", "author": { "name": "bearus", "key": "bearus", "displayName": "Be Rushton", "active": true, "timeZone": "Australia/Brisbane" }, "body": "I still don't see logs in CLI, was this fixed for CLI or just studio?", "updateAuthor": { "name": "bearus", "key": "bearus", "displayName": "Be Rushton", "active": true, "timeZone": "Australia/Brisbane" }, "created": "2016-04-26T23:49:54.000+0000", "updated": "2016-04-26T23:49:54.000+0000" }, { "id": "383997", "author": { "name": "abdielou", "key": "abdielou", "displayName": "Abdiel Aviles", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Same thing still happens to me. I still rollback to using `adb`.", "updateAuthor": { "name": "abdielou", "key": "abdielou", "displayName": "Abdiel Aviles", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-26T23:54:49.000+0000", "updated": "2016-04-26T23:54:49.000+0000" }, { "id": "383998", "author": { "name": "abdielou", "key": "abdielou", "displayName": "Abdiel Aviles", "active": true, "timeZone": "America/Los_Angeles" }, "body": "And I use the Studio, so yes, still affects Studio.", "updateAuthor": { "name": "abdielou", "key": "abdielou", "displayName": "Abdiel Aviles", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-26T23:55:23.000+0000", "updated": "2016-04-26T23:55:23.000+0000" }, { "id": "384001", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~bearus] and [~abdielou] Could you provide more information on when and how this is happening. Also how it can easily be reproduced. Eg, Device, Android version etc etc.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-04-27T01:40:57.000+0000", "updated": "2016-04-27T01:40:57.000+0000" }, { "id": "384003", "author": { "name": "abdielou", "key": "abdielou", "displayName": "Abdiel Aviles", "active": true, "timeZone": "America/Los_Angeles" }, "body": "LG G4, Android 6.0, OS X 10.11.4, latest Ti, Studio and SDK.\r\n\r\nIt also used to happen on a Nexus 5 device with Android 6.0. But I don't have that device anymore.", "updateAuthor": { "name": "abdielou", "key": "abdielou", "displayName": "Abdiel Aviles", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-27T01:56:30.000+0000", "updated": "2016-04-27T01:56:30.000+0000" }, { "id": "384004", "author": { "name": "abdielou", "key": "abdielou", "displayName": "Abdiel Aviles", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Oh, and about easily reproducing... I'm afraid that's the not so easy part.", "updateAuthor": { "name": "abdielou", "key": "abdielou", "displayName": "Abdiel Aviles", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-27T01:57:39.000+0000", "updated": "2016-04-27T01:57:39.000+0000" }, { "id": "384005", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "So, it's something that doesn't happen often?", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-04-27T02:01:58.000+0000", "updated": "2016-04-27T02:01:58.000+0000" }, { "id": "384006", "author": { "name": "abdielou", "key": "abdielou", "displayName": "Abdiel Aviles", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It does happen often. It would log normally and after a code error it would stop logging. Other times it just stops logging after a LiveView reload. But what I meant is, that in order to give you a reproducible example, I would have to download one of your sample apps and start testing to see if it happens. And that will take me more time that I have now. So again, not so easily reproducible.\r\n\r\nI'm also afraid that this is particular to the app I'm maintaining. It is a poorly written app (a fairly complex app), which I did not wrote btw, and with many issues that I've been fixing along the way. And the reason, why I say that I'm afraid it might only happen to my app, is that this app also fails to stop at breakpoints. I was also asked on another ticket to give a reproducible example but the debugger runs fine on the sample apps and I can't simply share this damm code. So yet again, not so easily reproducible.", "updateAuthor": { "name": "abdielou", "key": "abdielou", "displayName": "Abdiel Aviles", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-27T02:14:33.000+0000", "updated": "2016-04-27T02:14:33.000+0000" }, { "id": "384007", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "I now understand what you mean by `not so easily reproducible`. If you happen to be able to easily reproduce it, do update this ticket.\r\n\r\n[~bearus] Any additional information on your end?", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-04-27T02:19:55.000+0000", "updated": "2016-04-27T02:19:55.000+0000" } ], "maxResults": 28, "total": 28, "startAt": 0 } } }