{"action":"created","issue":{"url":"https://api.github.com/repos/Neamar/KISS/issues/426","repository_url":"https://api.github.com/repos/Neamar/KISS","labels_url":"https://api.github.com/repos/Neamar/KISS/issues/426/labels{/name}","comments_url":"https://api.github.com/repos/Neamar/KISS/issues/426/comments","events_url":"https://api.github.com/repos/Neamar/KISS/issues/426/events","html_url":"https://github.com/Neamar/KISS/issues/426","id":140361173,"number":426,"title":"CPU Usage","user":{"login":"robberer","id":6204883,"avatar_url":"https://avatars.githubusercontent.com/u/6204883?v=3","gravatar_id":"","url":"https://api.github.com/users/robberer","html_url":"https://github.com/robberer","followers_url":"https://api.github.com/users/robberer/followers","following_url":"https://api.github.com/users/robberer/following{/other_user}","gists_url":"https://api.github.com/users/robberer/gists{/gist_id}","starred_url":"https://api.github.com/users/robberer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robberer/subscriptions","organizations_url":"https://api.github.com/users/robberer/orgs","repos_url":"https://api.github.com/users/robberer/repos","events_url":"https://api.github.com/users/robberer/events{/privacy}","received_events_url":"https://api.github.com/users/robberer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-12T07:55:41Z","updated_at":"2016-04-01T04:59:32Z","closed_at":null,"body":"While I viewed the application logcat I noticed some constant error showing up.\r\n\r\nThe errors appear 2 times per second and are putting KISS up to 10% CPU load. Take a look at the screenshots. Anyone getting this ?\r\n\r\nhttp://postimg.org/gallery/1zh3t7rhg/97a6a1b7/\r\n\r\nimage `cpulow` after a fresh start of kiss\r\nimage `cpuhigh` after pressing back button of navigation bar or homebutton.\r\n\r\nThe error will never stop after this point.\r\n\r\n```\r\n03-12 08:48:58.169 9883-9883/fr.neamar.kiss D/ColorDrawable: Color = -13619152canvas = android.view.GLES20RecordingCanvas@1bbd7302mTintMode = SRC_INmTint = nullColorDrawable = android.graphics.drawable.ColorDrawable@346545d5\r\n03-12 08:48:58.675 9883-9883/fr.neamar.kiss D/ColorDrawable: Color = -13619152canvas = android.view.GLES20RecordingCanvas@1bbd7302mTintMode = SRC_INmTint = nullColorDrawable = android.graphics.drawable.ColorDrawable@346545d5\r\n03-12 08:48:59.163 9883-9883/fr.neamar.kiss D/ColorDrawable: Color = -13619152canvas = android.view.GLES20RecordingCanvas@1bbd7302mTintMode = SRC_INmTint = nullColorDrawable = android.graphics.drawable.ColorDrawable@346545d5\r\n03-12 08:48:59.668 9883-9883/fr.neamar.kiss D/ColorDrawable: Color = -13619152canvas = android.view.GLES20RecordingCanvas@1bbd7302mTintMode = SRC_INmTint = nullColorDrawable = android.graphics.drawable.ColorDrawable@346545d5\r\n03-12 08:49:00.173 9883-9883/fr.neamar.kiss D/ColorDrawable: Color = -13619152canvas = android.view.GLES20RecordingCanvas@1bbd7302mTintMode = SRC_INmTint = nullColorDrawable = android.graphics.drawable.ColorDrawable@346545d5\r\n03-12 08:49:00.678 9883-9883/fr.neamar.kiss D/ColorDrawable: Color = -13619152canvas = android.view.GLES20RecordingCanvas@1bbd7302mTintMode = SRC_INmTint = nullColorDrawable = android.graphics.drawable.ColorDrawable@346545d5\r\n03-12 08:49:01.183 9883-9883/fr.neamar.kiss D/ColorDrawable: Color = -13619152canvas = android.view.GLES20RecordingCanvas@1bbd7302mTintMode = SRC_INmTint = nullColorDrawable = android.graphics.drawable.ColorDrawable@346545d5\r\n```"},"comment":{"url":"https://api.github.com/repos/Neamar/KISS/issues/comments/204249671","html_url":"https://github.com/Neamar/KISS/issues/426#issuecomment-204249671","issue_url":"https://api.github.com/repos/Neamar/KISS/issues/426","id":204249671,"user":{"login":"robberer","id":6204883,"avatar_url":"https://avatars.githubusercontent.com/u/6204883?v=3","gravatar_id":"","url":"https://api.github.com/users/robberer","html_url":"https://github.com/robberer","followers_url":"https://api.github.com/users/robberer/followers","following_url":"https://api.github.com/users/robberer/following{/other_user}","gists_url":"https://api.github.com/users/robberer/gists{/gist_id}","starred_url":"https://api.github.com/users/robberer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robberer/subscriptions","organizations_url":"https://api.github.com/users/robberer/orgs","repos_url":"https://api.github.com/users/robberer/repos","events_url":"https://api.github.com/users/robberer/events{/privacy}","received_events_url":"https://api.github.com/users/robberer/received_events","type":"User","site_admin":false},"created_at":"2016-04-01T04:59:32Z","updated_at":"2016-04-01T04:59:32Z","body":"I have news on this issue (CPU load).\r\n\r\nI had to buy a new phone (Z3) because my MX4 has been broken. The new phone has another OS too. I've installed CM12.1 and even with KISS as very first app I have the same constant load of ~5 %.\r\n\r\nNow that my new OS is more \"open\" i was able to install some linux in a chroot. I attached `strace` to the PID of KISS with `strace -p $KISS_PID -f -tt -T -s 500` which traces child processes.\r\n\r\nI discovered that KISS ist constantly opening and closing threads. See the following gist which is the result of only a few seconds: https://gist.github.com/robberer/6b5c95fe4dd8942a76ae\r\n\r\nAny idea which part of the code could cause this ?"}}