{"action":"created","issue":{"url":"https://api.github.com/repos/syncthing/syncthing-android/issues/1120","repository_url":"https://api.github.com/repos/syncthing/syncthing-android","labels_url":"https://api.github.com/repos/syncthing/syncthing-android/issues/1120/labels{/name}","comments_url":"https://api.github.com/repos/syncthing/syncthing-android/issues/1120/comments","events_url":"https://api.github.com/repos/syncthing/syncthing-android/issues/1120/events","html_url":"https://github.com/syncthing/syncthing-android/issues/1120","id":329137764,"node_id":"MDU6SXNzdWUzMjkxMzc3NjQ=","number":1120,"title":"DeviceStateHolder leaks Receivers not unregistered","user":{"login":"Catfriend1","id":16361913,"node_id":"MDQ6VXNlcjE2MzYxOTEz","avatar_url":"https://avatars1.githubusercontent.com/u/16361913?v=4","gravatar_id":"","url":"https://api.github.com/users/Catfriend1","html_url":"https://github.com/Catfriend1","followers_url":"https://api.github.com/users/Catfriend1/followers","following_url":"https://api.github.com/users/Catfriend1/following{/other_user}","gists_url":"https://api.github.com/users/Catfriend1/gists{/gist_id}","starred_url":"https://api.github.com/users/Catfriend1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Catfriend1/subscriptions","organizations_url":"https://api.github.com/users/Catfriend1/orgs","repos_url":"https://api.github.com/users/Catfriend1/repos","events_url":"https://api.github.com/users/Catfriend1/events{/privacy}","received_events_url":"https://api.github.com/users/Catfriend1/received_events","type":"User","site_admin":false},"labels":[{"id":82100195,"node_id":"MDU6TGFiZWw4MjEwMDE5NQ==","url":"https://api.github.com/repos/syncthing/syncthing-android/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"Catfriend1","id":16361913,"node_id":"MDQ6VXNlcjE2MzYxOTEz","avatar_url":"https://avatars1.githubusercontent.com/u/16361913?v=4","gravatar_id":"","url":"https://api.github.com/users/Catfriend1","html_url":"https://github.com/Catfriend1","followers_url":"https://api.github.com/users/Catfriend1/followers","following_url":"https://api.github.com/users/Catfriend1/following{/other_user}","gists_url":"https://api.github.com/users/Catfriend1/gists{/gist_id}","starred_url":"https://api.github.com/users/Catfriend1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Catfriend1/subscriptions","organizations_url":"https://api.github.com/users/Catfriend1/orgs","repos_url":"https://api.github.com/users/Catfriend1/repos","events_url":"https://api.github.com/users/Catfriend1/events{/privacy}","received_events_url":"https://api.github.com/users/Catfriend1/received_events","type":"User","site_admin":false},"assignees":[{"login":"Catfriend1","id":16361913,"node_id":"MDQ6VXNlcjE2MzYxOTEz","avatar_url":"https://avatars1.githubusercontent.com/u/16361913?v=4","gravatar_id":"","url":"https://api.github.com/users/Catfriend1","html_url":"https://github.com/Catfriend1","followers_url":"https://api.github.com/users/Catfriend1/followers","following_url":"https://api.github.com/users/Catfriend1/following{/other_user}","gists_url":"https://api.github.com/users/Catfriend1/gists{/gist_id}","starred_url":"https://api.github.com/users/Catfriend1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Catfriend1/subscriptions","organizations_url":"https://api.github.com/users/Catfriend1/orgs","repos_url":"https://api.github.com/users/Catfriend1/repos","events_url":"https://api.github.com/users/Catfriend1/events{/privacy}","received_events_url":"https://api.github.com/users/Catfriend1/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-06-04T16:53:59Z","updated_at":"2018-06-04T18:27:05Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Reproducer\r\nOpen Syncthing app\r\ngo to settings\r\nenable always run syncthing on background\r\nenable run on wifi\r\ndisable run on wifi\r\ngo back to home screen\r\npress back button\r\nfrom home screen press syncthing is running notification\r\ngo to settings\r\ndisable always run syncthing on background\r\ngo to MainActivity\r\nexit syncthing app\r\n\r\n![image](https://user-images.githubusercontent.com/16361913/40930670-98b23f5a-6828-11e8-8d66-c2887d9384b9.png)\r\n\r\n\r\n    Report valid for: https://github.com/syncthing/syncthing-android/commit/165c136beae31514d701791c9f654b2568338f46\r\n    App Version: 0.10.10+\r\n    Syncthing Version: v0.14.47\r\n    Android Version: Android 7.1.2\r\n"},"comment":{"url":"https://api.github.com/repos/syncthing/syncthing-android/issues/comments/394452341","html_url":"https://github.com/syncthing/syncthing-android/issues/1120#issuecomment-394452341","issue_url":"https://api.github.com/repos/syncthing/syncthing-android/issues/1120","id":394452341,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDQ1MjM0MQ==","user":{"login":"Catfriend1","id":16361913,"node_id":"MDQ6VXNlcjE2MzYxOTEz","avatar_url":"https://avatars1.githubusercontent.com/u/16361913?v=4","gravatar_id":"","url":"https://api.github.com/users/Catfriend1","html_url":"https://github.com/Catfriend1","followers_url":"https://api.github.com/users/Catfriend1/followers","following_url":"https://api.github.com/users/Catfriend1/following{/other_user}","gists_url":"https://api.github.com/users/Catfriend1/gists{/gist_id}","starred_url":"https://api.github.com/users/Catfriend1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Catfriend1/subscriptions","organizations_url":"https://api.github.com/users/Catfriend1/orgs","repos_url":"https://api.github.com/users/Catfriend1/repos","events_url":"https://api.github.com/users/Catfriend1/events{/privacy}","received_events_url":"https://api.github.com/users/Catfriend1/received_events","type":"User","site_admin":false},"created_at":"2018-06-04T18:27:05Z","updated_at":"2018-06-04T18:27:05Z","author_association":"CONTRIBUTOR","body":"Also related before the problem got fixed with PR #1119 \r\n\r\n06-03 12:28:43.068 V/SyncthingService(27728): onDestroy\r\n06-03 12:28:43.069 I/SyncthingService(27728): Shutting down syncthing binary immediately\r\n06-03 12:28:43.069 I/SyncthingService(27728): Shutting down background service\r\n06-03 12:28:43.069 D/EventProcessor(27728): Shutdown event processor.\r\n06-03 12:28:43.072 V/LASTMESSAGEg(5506): Received last update Datenschutz aktiv - Syncthing hat keinen Zugriff auf persönliche Daten\r\n06-03 12:28:43.084 V/DeviceStateHolder(27728): Shutting down\r\n06-03 12:28:43.099 V/LASTMESSAGEg(5506): Received last update Syncthing läuft - \r\n06-03 12:28:43.127 V/SyncthingRunnable(27728): getSyncthingPIDs: Found process PID [27794]\r\n06-03 12:28:43.141 I/SyncthingNativeCode(27728): [EI7WS] INFO: Exiting\r\n06-03 12:28:43.145 E/ActivityThread(27728): Service com.nutomic.syncthingandroid.service.SyncthingService has leaked IntentReceiver com.nutomic.syncthingandroid.receiver.PowerSaveModeChangedReceiver@b53030 that was originally registered here. Are you missing a call to unregisterReceiver()?\r\n06-03 12:28:43.145 E/ActivityThread(27728): android.app.IntentReceiverLeaked: Service com.nutomic.syncthingandroid.service.SyncthingService has leaked IntentReceiver com.nutomic.syncthingandroid.receiver.PowerSaveModeChangedReceiver@b53030 that was originally registered here. Are you missing a call to unregisterReceiver()?\r\n06-03 12:28:43.145 E/ActivityThread(27728): \tat android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:1159)\r\n06-03 12:28:43.145 E/ActivityThread(27728): \tat android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:946)\r\n06-03 12:28:43.145 E/ActivityThread(27728): \tat android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1302)\r\n06-03 12:28:43.145 E/ActivityThread(27728): \tat android.app.ContextImpl.registerReceiver(ContextImpl.java:1282)\r\n06-03 12:28:43.145 E/ActivityThread(27728): \tat android.app.ContextImpl.registerReceiver(ContextImpl.java:1276)\r\n06-03 12:28:43.145 E/ActivityThread(27728): \tat android.content.ContextWrapper.registerReceiver(ContextWrapper.java:586)\r\n06-03 12:28:43.145 E/ActivityThread(27728): \tat com.nutomic.syncthingandroid.service.DeviceStateHolder.updateReceivers(DeviceStateHolder.java:153)\r\n06-03 12:28:43.145 E/ActivityThread(27728): \tat com.nutomic.syncthingandroid.service.DeviceStateHolder.<init>(DeviceStateHolder.java:99)\r\n06-03 12:28:43.145 E/ActivityThread(27728): \tat com.nutomic.syncthingandroid.service.SyncthingService.onStartCommand(SyncthingService.java:162)\r\n06-03 12:28:43.145 E/ActivityThread(27728): \tat android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3351)\r\n06-03 12:28:43.145 E/ActivityThread(27728): \tat android.app.ActivityThread.-wrap21(ActivityThread.java)\r\n06-03 12:28:43.145 E/ActivityThread(27728): \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1601)\r\n06-03 12:28:43.145 E/ActivityThread(27728): \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n06-03 12:28:43.145 E/ActivityThread(27728): \tat android.os.Looper.loop(Looper.java:154)\r\n06-03 12:28:43.145 E/ActivityThread(27728): \tat android.app.ActivityThread.main(ActivityThread.java:6186)\r\n06-03 12:28:43.145 E/ActivityThread(27728): \tat java.lang.reflect.Method.invoke(Native Method)\r\n06-03 12:28:43.145 E/ActivityThread(27728): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)\r\n06-03 12:28:43.145 E/ActivityThread(27728): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)\r\n06-03 12:28:43.147 E/StrictMode(27728): null\r\n06-03 12:28:43.147 E/StrictMode(27728): android.app.IntentReceiverLeaked: Service com.nutomic.syncthingandroid.service.SyncthingService has leaked IntentReceiver com.nutomic.syncthingandroid.receiver.PowerSaveModeChangedReceiver@b53030 that was originally registered here. Are you missing a call to unregisterReceiver()?\r\n06-03 12:28:43.147 E/StrictMode(27728): \tat android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:1159)\r\n06-03 12:28:43.147 E/StrictMode(27728): \tat android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:946)\r\n06-03 12:28:43.147 E/StrictMode(27728): \tat android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1302)\r\n06-03 12:28:43.147 E/StrictMode(27728): \tat android.app.ContextImpl.registerReceiver(ContextImpl.java:1282)\r\n06-03 12:28:43.147 E/StrictMode(27728): \tat android.app.ContextImpl.registerReceiver(ContextImpl.java:1276)\r\n06-03 12:28:43.147 E/StrictMode(27728): \tat android.content.ContextWrapper.registerReceiver(ContextWrapper.java:586)\r\n06-03 12:28:43.147 E/StrictMode(27728): \tat com.nutomic.syncthingandroid.service.DeviceStateHolder.updateReceivers(DeviceStateHolder.java:153)\r\n06-03 12:28:43.147 E/StrictMode(27728): \tat com.nutomic.syncthingandroid.service.DeviceStateHolder.<init>(DeviceStateHolder.java:99)\r\n06-03 12:28:43.147 E/StrictMode(27728): \tat com.nutomic.syncthingandroid.service.SyncthingService.onStartCommand(SyncthingService.java:162)\r\n06-03 12:28:43.147 E/StrictMode(27728): \tat android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3351)\r\n06-03 12:28:43.147 E/StrictMode(27728): \tat android.app.ActivityThread.-wrap21(ActivityThread.java)\r\n06-03 12:28:43.147 E/StrictMode(27728): \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1601)\r\n06-03 12:28:43.147 E/StrictMode(27728): \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n06-03 12:28:43.147 E/StrictMode(27728): \tat android.os.Looper.loop(Looper.java:154)\r\n06-03 12:28:43.147 E/StrictMode(27728): \tat android.app.ActivityThread.main(ActivityThread.java:6186)\r\n06-03 12:28:43.147 E/StrictMode(27728): \tat java.lang.reflect.Method.invoke(Native Method)\r\n06-03 12:28:43.147 E/StrictMode(27728): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)\r\n06-03 12:28:43.147 E/StrictMode(27728): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)\r\n06-03 12:28:43.156 E/Volley  (27728): [876] BasicNetwork.performRequest: Unexpected response code 200 for https://127.0.0.1:8384/rest/events?since=7&limit=0\r\n06-03 12:28:43.158 I/SyncthingRunnable(27728): Syncthing exited with code 0\r\n06-03 12:28:43.203 I/GoogleInputMethod(4180): onFinishInput() : Dummy InputConnection bound\r\n\r\n\r\n\r\n> 06-03 12:26:44.650 I/ActivityManager(2071): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.nutomic.syncthingandroid.debug/com.nutomic.syncthingandroid.activities.FirstStartActivity (has extras)} from uid 10022 on display 0\r\n06-03 12:26:44.748 V/FirstStartActivity(27728): startService SyncthingService\r\n06-03 12:26:44.756 V/LASTMESSAGEg(5506): Received last update Datenschutz aktiv - Syncthing hat keinen Zugriff auf persönliche Daten\r\n06-03 12:26:44.760 I/ActivityManager(2071): START u0 {cmp=com.nutomic.syncthingandroid.debug/com.nutomic.syncthingandroid.activities.MainActivity (has extras)} from uid 10265 on display 0\r\n06-03 12:26:44.790 V/SyncthingService(27728): onStartCommand\r\n06-03 12:26:44.790 V/DeviceStateHolder(27728): Created new instance\r\n06-03 12:26:44.790 I/DeviceStateHolder(27728): Stopped listening to network state changes\r\n06-03 12:26:44.790 I/DeviceStateHolder(27728): Stopped listening to battery state changes\r\n06-03 12:26:44.790 I/DeviceStateHolder(27728): Listening to power saving changes\r\n06-03 12:26:44.876 V/DeviceStateHolder(27728): State updated, allowed network connection: false, charging: false, power saving: false\r\n06-03 12:26:44.877 V/DeviceStateHolder(27728): State updated, allowed network connection: false, charging: false, power saving: false\r\n06-03 12:26:44.878 I/DeviceStateHolder(27728): updateShouldRunDecision: Sending state change from false to true\r\n06-03 12:26:44.897 V/LASTMESSAGEg(5506): Received last update Syncthing läuft - \r\n06-03 12:26:44.921 W/PackageManager(4193): Failure retrieving resources for com.pluscubed.matlog: Drawable com.pluscubed.matlog:mipmap/ic_launcher with resource ID #0x7f0d0000\r\n06-03 12:26:44.996 I/thermanager(460): \"cpu-a57\" set to level 6\r\n06-03 12:26:45.127 V/ApiRequest(27728): Performing request to https://127.0.0.1:8384/rest/system/status\r\n06-03 12:26:45.127 V/ApiRequest(27728): Performing request to https://127.0.0.1:8384/rest/system/version\r\n06-03 12:26:45.128 V/ApiRequest(27728): Performing request to https://127.0.0.1:8384/rest/system/connections\r\n06-03 12:26:45.128 V/ApiRequest(27728): Performing request to https://127.0.0.1:8384/rest/system/status\r\n06-03 12:26:45.196 I/GoogleInputMethod(4180): onFinishInput() : Dummy InputConnection bound\r\n"}}
{"actor":{"display_login":"Catfriend1"}}