{ "id": "163905", "key": "TIMOB-24311", "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": "18928", "name": "Release 6.0.2", "archived": false, "released": true, "releaseDate": "2017-02-27" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-08-16T18:53:52.000+0000", "created": "2016-10-12T17:20:00.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "log" ], "versions": [], "issuelinks": [ { "id": "53953", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "163407", "key": "TIMOB-23975", "fields": { "summary": "Android: Logging outputs tons of noisy, meaningless messages (Regression)", "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 } } } } ], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2019-08-16T18:53:57.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": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "Even with {{ti config cli.logLevel info}} I always see non-titanium related log messages like\r\n\r\n{noformat}\r\n[INFO] D/StatusBar.NetworkController( 5440): dumpIcon[(gone) stat_sys_5signal_3|null stat_sys_wifi_signal_connected_3 (gone) F]\r\n[INFO] D/StatusBar.NetworkController( 5440): dumpIcon[(gone) stat_sys_5signal_3|null stat_sys_wifi_signal_connected_3 (gone) F]\r\n{noformat}\r\n\r\nand everything else Android logcat will show. In previous CLI versions it would only show app related output. \r\n\r\n*Workaround:*\r\nCreate filters in Android Monitor to filter out non ti logs\r\n\r\n*Test environment*\r\n* Titanium 5.5.1, 6.0.0.v20161005072811\r\n* CLI 5.0.10\r\n* Android 6.0.1, Android 5\r\n\r\n[Stackoverflow question|http://stackoverflow.com/questions/39072895/titanium-sdk-5-4-0-ga-is-showing-too-many-logs-at-console-on-android-platform/] with the same problem\r\n", "attachment": [], "flagged": false, "summary": "Android: Log always shows non-titanium logs", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": "CLI Version: 5.0.10\r\nSDK: 6.0.0.v20161005072811", "closedSprints": [ { "id": 799, "state": "closed", "name": "2017 Sprint 02 Tooling", "startDate": "2017-01-15T00:01:57.583Z", "endDate": "2017-01-29T00:01:00.000Z", "completeDate": "2017-01-30T21:11:44.577Z", "originBoardId": 199 } ], "comment": { "comments": [ { "id": "404623", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Might have found the solution to this problem:\r\nhttps://github.com/appcelerator/titanium_mobile/pull/8022\r\nintroduced a regex that will check the non-ti logs again at:\r\nhttps://github.com/sgtcoolguy/titanium_mobile/blob/aae72758cc88b07aa48b7f384e3bccc7cdf1063b/android/cli/hooks/run.js#L239\r\nThis regex \r\n{noformat}\r\n/^\\w\\/\\w+\\s*\\(\\s*\\d+\\):/\r\n{noformat}\r\n will fail if the string before (pid) has a dot in it!\r\nchanging it to \r\n{noformat}\r\nnonTiLogRegexp = /^\\w\\/.+\\s*\\(\\s*\\d+\\):/\r\n{noformat}\r\n\r\nworked for me, so I only see Ti logs again on android!", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-15T13:51:10.000+0000", "updated": "2017-01-15T13:52:58.000+0000" }, { "id": "404624", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/8754", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-15T13:57:59.000+0000", "updated": "2017-01-15T13:57:59.000+0000" }, { "id": "404626", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Example:\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n title: title,\r\n backgroundColor: '#fff'\r\n});\r\n\r\nsetInterval(function() {\r\n console.log(\"test\");\r\n}, 1000)\r\n\r\nwin.open();\r\n{code}\r\n\r\n*Log before (HTC device):*\r\n\r\n{noformat}\r\n[INFO] I/[MirrorLinkServer]c(31148): Getting Application List Alone --Secondary Boot Process\r\n[INFO] I/[MirrorLinkServer]c(31148): Adding to ML Application List in filterMirrorlinkApps::com.htc.contacts\r\n[INFO] D/[MirrorLinkServer]c(31148): Processing Application::com.android.phone\r\n[INFO] D/[MirrorLinkServer]c(31148): com.android.phone is blacklisted.\r\n[INFO] I/[MirrorLinkServer]c(31148): Local DB updated, CertHandler pushed to Sleep Mode\r\n[INFO] I/[MirrorLinkServer]c(31148): appListReady()\r\n[INFO] I/[MirrorLinkServer]c(31148): Notified all other locked threads to execute\r\n[INFO] I/[MirrorLinkServer]c(31148): Lock notified\r\n[INFO] I/[MirrorLinkServer]c(31148): onApplicationUpdationCompleted, sending broadcast\r\n[INFO] I/[MirrorLinkServer]MirrorLinkServer(31148): Broadcast Received::Intent { act=com.htc.HTCMirrorLinkServer.PACKAGE_UPDATE_COMPLETED }\r\n[INFO] D/[MirrorLinkServer]MirrorLinkServer(31148): ML_PACKAGE_UPDATE_COMPLETED intent received\r\n[INFO] D/[MirrorLinkServer]MirrorLinkServer(31148): Counter : 0\r\n[INFO] I/[MirrorLinkServer]MirrorLinkConnectionReceiver(31148): checkAndStopMLSession\r\n[INFO] I/[MirrorLinkServer]MirrorLinkConnectionReceiver(31148): Stopping Service\r\n[INFO] I/[MirrorLinkServer]MirrorLinkServer(31148): onDestroy()\r\n[INFO] I/[MirrorLinkServer]MirrorLinkServer(31148): onMirrorLinkDeviceRemoved()\r\n[INFO] I/[MirrorLinkServer]MirrorLinkServer(31148): Unbind VNC Service failed. Service already unbound.\r\n[INFO] I/[MirrorLinkServer]MirrorLinkServer(31148): Unbind RTP Service failed. Service already unbound.\r\n[INFO] I/[MirrorLinkServer]MirrorLinkServer(31148): Unbind CDB Service failed. Service already unbound.\r\n[INFO] I/[MirrorLinkServer]MirrorLinkServer(31148): onDestroy() ::END\r\n[WARN] V8Object: (main) [619,667] Runtime disposed, cannot set property 'userAgent'\r\n[WARN] E/NetworkScheduler.SR(29732): Invalid parameter app\r\n[WARN] E/NetworkScheduler.SR(29732): Invalid package name : Perhaps you didn't include a PendingIntent in the extras?\r\n[INFO] TiApplication: (main) [78,745] Titanium Javascript runtime: v8\r\n[INFO] I/[PluginManager]RegisterService(30735): onHandleIntent, action: android.intent.action.PACKAGE_REPLACED, data: package:com.miga.tttt\r\n[INFO] I/[PluginManager]RegisterService(30735): handle notify Blinkfeed plugin client changed\r\n[INFO] I/[PluginManager]RegisterService(30012): onHandleIntent, action: android.intent.action.PACKAGE_REPLACED, data: package:com.miga.tttt\r\n[INFO] I/[PluginManager]RegisterService(30012): handle notify Blinkfeed plugin client changed\r\n[INFO] TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\n[INFO] D/StatusBar.NetworkController(28620): dumpIcon[(gone) stat_sys_5signal_3|null stat_sys_wifi_signal_inandout_3 (gone) F]\r\n[ERROR] SensorManager: uid = 10463\r\n[INFO] SensorManager: registerListenerImpl: listener = android.view.OrientationEventListener$SensorEventListenerImpl@79b577c, sensor = {Sensor name=\"Accelerometer Sensor\", vendor=\"hTC Corp.\", version=1, type=1, maxRange=39.2266, resolution=0.01, power=0.17, minDelay=10000}, delay = 200000, handler = null\r\n[INFO] TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.miga.tttt.TtttActivity@ce46416\r\n[ERROR] SensorManager: uid = 10463\r\n[INFO] SensorManager: registerListenerImpl: listener = android.view.OrientationEventListener$SensorEventListenerImpl@a4980e, sensor = {Sensor name=\"Accelerometer Sensor\", vendor=\"hTC Corp.\", version=1, type=1, maxRange=39.2266, resolution=0.01, power=0.17, minDelay=10000}, delay = 200000, handler = null\r\n[INFO] Adreno: QUALCOMM build : 91fcdf6, I982091f16d\r\n[INFO] Adreno: Build Date : 01/11/16\r\n[INFO] Adreno: OpenGL ES Shader Compiler Version: XE031.06.00.00\r\n[INFO] Adreno: Local Branch :\r\n[INFO] Adreno: Remote Branch : refs/tags/AU_LINUX_ANDROID_LA.BR.1.3.3_RB1.06.00.00.177.002\r\n[INFO] Adreno: Remote Branch : NONE\r\n[INFO] Adreno: Reconstruct Branch : NOTHING\r\n[INFO] W/Launcher.Model(30012): Nobody to tell about the new app. Launcher is probably loading.\r\n[INFO] D/NetworkController.WifiSignalController(28620): Change in state from: connected=true,enabled=true,level=3,inetCondition=1,iconGroup=IconGroup(Wi-Fi Icons),activityIn=true,activityOut=true,rssi=-58,lastModified=01-15 03:06:13,ssid=\"ddd\"\r\n[INFO] D/NetworkController.WifiSignalController(28620): to: connected=true,enabled=true,level=3,inetCondition=1,iconGroup=IconGroup(Wi-Fi Icons),activityIn=false,activityOut=false,rssi=-58,lastModified=01-15 03:06:13,ssid=\"ddd\"\r\n[INFO] D/StatusBar.NetworkController(28620): dumpIcon[(gone) stat_sys_5signal_3|null stat_sys_wifi_signal_connected_3 (gone) F]\r\n[INFO] test\r\n[INFO] test\r\n[INFO] D/NetworkController.WifiSignalController(28620): Change in state from: connected=true,enabled=true,level=3,inetCondition=1,iconGroup=IconGroup(Wi-Fi Icons),activityIn=false,activityOut=false,rssi=-58,lastModified=01-15 03:06:14,ssid=\"ddd\"\r\n[INFO] D/NetworkController.WifiSignalController(28620): to: connected=true,enabled=true,level=3,inetCondition=1,iconGroup=IconGroup(Wi-Fi Icons),activityIn=true,activityOut=true,rssi=-58,lastModified=01-15 03:06:14,ssid=\"ddd\"\r\n[INFO] D/StatusBar.NetworkController(28620): dumpIcon[(gone) stat_sys_5signal_3|null stat_sys_wifi_signal_inandout_3 (gone) F]\r\n[INFO] D/StatusBar.NetworkController(28620): dumpIcon[(gone) stat_sys_5signal_3|null stat_sys_wifi_signal_inandout_3 (gone) F]\r\n[INFO] test\r\n[INFO] test\r\n[INFO] D/NetworkController.WifiSignalController(28620): Change in state from: connected=true,enabled=true,level=3,inetCondition=1,iconGroup=IconGroup(Wi-Fi Icons),activityIn=true,activityOut=true,rssi=-58,lastModified=01-15 03:06:16,ssid=\"ddd\"\r\n[INFO] D/NetworkController.Wif\r\n...\r\n{noformat}\r\nmany non ti related logs will show up (they have a dot in the name)\r\n\r\n*Log after:*\r\n\r\n{noformat}\r\n-- Start application log -----------------------------------------------------\r\n[INFO] TiApplication: (main) [0,0] checkpoint, app created.\r\n[INFO] TiApplication: (main) [55,55] Titanium 6.1.0 (2017/01/15 14:45 undefined)\r\n[INFO] MultiDex: VM with version 2.1.0 has multidex support\r\n[INFO] MultiDex: install\r\n[INFO] MultiDex: VM has multidex support, MultiDex support library is disabled.\r\n[INFO] TiApplication: (main) [629,684] Titanium Javascript runtime: v8\r\n[INFO] TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\n[ERROR] SensorManager: uid = 10463\r\n[INFO] SensorManager: registerListenerImpl: listener = android.view.OrientationEventListener$SensorEventListenerImpl@7b43805, sensor = {Sensor name=\"Accelerometer Sensor\", vendor=\"hTC Corp.\", version=1, type=1, maxRange=39.2266, resolution=0.01, power=0.17, minDelay=10000}, delay = 200000, handler = null\r\n[INFO] TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.miga.tttt.TtttActivity@2c18197\r\n[ERROR] SensorManager: uid = 10463\r\n[INFO] SensorManager: registerListenerImpl: listener = android.view.OrientationEventListener$SensorEventListenerImpl@fb2e03c, sensor = {Sensor name=\"Accelerometer Sensor\", vendor=\"hTC Corp.\", version=1, type=1, maxRange=39.2266, resolution=0.01, power=0.17, minDelay=10000}, delay = 200000, handler = null\r\n[INFO] Adreno: QUALCOMM build : 91fcdf6, I982091f16d\r\n[INFO] Adreno: Build Date : 01/11/16\r\n[INFO] Adreno: OpenGL ES Shader Compiler Version: XE031.06.00.00\r\n[INFO] Adreno: Local Branch :\r\n[INFO] Adreno: Remote Branch : refs/tags/AU_LINUX_ANDROID_LA.BR.1.3.3_RB1.06.00.00.177.002\r\n[INFO] Adreno: Remote Branch : NONE\r\n[INFO] Adreno: Reconstruct Branch : NOTHING\r\n[INFO] test\r\n[INFO] test\r\n[INFO] test\r\n[INFO] test\r\n[INFO] test\r\n....\r\n-- End application log -------------------------------------------------------\r\n{noformat}\r\n\r\nonly test will come up", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-15T14:09:54.000+0000", "updated": "2017-01-15T14:11:53.000+0000" }, { "id": "404627", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I would even tend to remove all other system logs as well / move them to the debug level.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-15T15:14:16.000+0000", "updated": "2017-01-15T15:14:16.000+0000" }, { "id": "404628", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "As far as I understand the comment at https://github.com/appcelerator/titanium_mobile/pull/8022#discussion-diff-64847819 this one is needed for multi-line logs\r\nThats why the {{else}} part is needed there", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-15T15:20:28.000+0000", "updated": "2017-01-15T15:20:28.000+0000" }, { "id": "404707", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified improvement with test code provided above, log only shows information associated with titanium add the running application.\r\n\r\n{code:java}\r\n-- Start application log -----------------------------------------------------\r\n[INFO] : TiApplication: (main) [0,0] checkpoint, app created.\r\n[INFO] : TiApplication: (main) [45,45] Titanium 6.1.0 (2017/01/15 17:27 undefined)\r\n[INFO] : MultiDex: VM with version 2.1.0 has multidex support\r\n[INFO] : MultiDex: install\r\n[INFO] : MultiDex: VM has multidex support, MultiDex support library is disabled.\r\n[INFO] : TiApplication: (main) [231,276] Titanium Javascript runtime: v8\r\n[INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\n[INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.appc.Jan16v2017ctestv1.Jan16v2017ctestv1Activity@c0abf34\r\n[DEBUG] : Window: Checkpoint: postWindowCreated()\r\n[TRACE] : updating tiapp metadata with Appcelerator Platform...\r\n[INFO] : Adreno: QUALCOMM build : a5b4970, If5818605d9\r\n[INFO] : Adreno: Build Date : 10/12/16\r\n[INFO] : Adreno: OpenGL ES Shader Compiler Version: XE031.09.00.04\r\n[INFO] : Adreno: Local Branch : N24D\r\n[INFO] : Adreno: Remote Branch :\r\n[INFO] : Adreno: Remote Branch :\r\n[INFO] : Adreno: Reconstruct Branch :\r\n[INFO] : OpenGLRenderer: Initialized EGL, version 1.4\r\n[DEBUG] : OpenGLRenderer: Swap behavior 1\r\n[TRACE] : Uploaded tiapp metadata with Appcelerator Platform!\r\n[INFO] : test\r\n[INFO] : test\r\n[INFO] : test\r\n[INFO] : test\r\n[INFO] : test\r\n[INFO] : test\r\n[INFO] : test\r\n[INFO] : test\r\n[INFO] : test\r\n[INFO] : test\r\n[INFO] : test\r\n[INFO] : test\r\n[INFO] : test\r\n[INFO] : test\r\n[INFO] : test\r\n[INFO] : test\r\n[INFO] : test\r\n[INFO] : test\r\n[INFO] : test\r\n[INFO] : test\r\n[INFO] : test\r\n[INFO] : test\r\n[INFO] : test\r\n[INFO] : test\r\n{code}\r\n\r\n\r\n*Environment*\r\n{code:java}\r\nAppcelerator Command-Line Interface, version 6.1.0\r\nNexus 6p (Android 7.1)\r\nOperating System Name: Mac OS X El Capitan\r\nOperating System Version: 10.11.6\r\nNode.js Version: 4.6.0\r\nnpm: 4.2.8\r\nTitanium SDK Version: 6.1.0.v20170115172707\r\nXcode: 8.2\r\nAppcelerator Studio: 4.8.1.201612050850\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-17T17:47:55.000+0000", "updated": "2017-01-17T17:47:55.000+0000" }, { "id": "404809", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "While catching more with \r\n\r\n{noformat}\r\n ^\\w\\/.[^:]+\\s*(\\(\\s*\\d+\\))*:\r\n{noformat}\r\nsee: http://www.regexr.com/3f3fl\r\nIt's getting difficult to catch {{IInputConnectionWrapper: getExtractedText on inactive InputConnection}} because it will also remove TiAPI lines that get splited and start with {{something:}}\r\n", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-18T19:11:02.000+0000", "updated": "2017-01-18T19:11:02.000+0000" }, { "id": "405063", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (6_0_X): https://github.com/appcelerator/titanium_mobile/pull/8772", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-23T13:47:14.000+0000", "updated": "2017-01-23T13:47:14.000+0000" }, { "id": "405103", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified improvement for 6.0.2 backport, with the following test code; log now show more relevant logs.\r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n \r\nsetInterval(function() {\r\n console.log(\"test\");\r\n}, 1000);\r\n \r\nwin.open();\r\n{code}\r\n\r\n[^before.txt]\r\n[^after.txt]\r\n\r\n*Environment*\r\n{code:java}\r\n\r\nAppcelerator Command-Line Interface, version 6.1.0\r\nNexus 6p (Android 7.1)\r\nOperating System Name: Mac OS X El Capitan\r\nOperating System Version: 10.11.6\r\nNode.js Version: 4.6.0\r\nnpm: 4.2.8\r\nTitanium SDK Version: 6.0.2.v20170123062940\r\nXcode: 8.2\r\nAppcelerator Studio: 4.8.1.201612050850\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-23T21:37:49.000+0000", "updated": "2017-01-23T21:37:49.000+0000" }, { "id": "434860", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-24T13:55:28.000+0000", "updated": "2018-02-24T13:55:28.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }