{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/stetho/issues/87","labels_url":"https://api.github.com/repos/facebook/stetho/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/facebook/stetho/issues/87/comments","events_url":"https://api.github.com/repos/facebook/stetho/issues/87/events","html_url":"https://github.com/facebook/stetho/issues/87","id":60625319,"number":87,"title":"SyncAdapter on seperate thread causes Address already in use","user":{"login":"remcomokveld","id":8101494,"avatar_url":"https://avatars.githubusercontent.com/u/8101494?v=3","gravatar_id":"","url":"https://api.github.com/users/remcomokveld","html_url":"https://github.com/remcomokveld","followers_url":"https://api.github.com/users/remcomokveld/followers","following_url":"https://api.github.com/users/remcomokveld/following{/other_user}","gists_url":"https://api.github.com/users/remcomokveld/gists{/gist_id}","starred_url":"https://api.github.com/users/remcomokveld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remcomokveld/subscriptions","organizations_url":"https://api.github.com/users/remcomokveld/orgs","repos_url":"https://api.github.com/users/remcomokveld/repos","events_url":"https://api.github.com/users/remcomokveld/events{/privacy}","received_events_url":"https://api.github.com/users/remcomokveld/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-11T08:30:59Z","updated_at":"2015-03-11T22:39:50Z","closed_at":null,"body":"I initialized Stetho using the following code in my applications onCreate:\r\n\r\n``` Java\r\nStetho.initialize(Stetho.newInitializerBuilder(this)\r\n                .enableWebKitInspector(Stetho.defaultInspectorModulesProvider(this))\r\n                .enableDumpapp(Stetho.defaultDumperPluginsProvider(this))\r\n                .build());\r\n```\r\n\r\nand then having the syncservice for a SyncAdapter running in a seperate thread by declaring the service in my AndroidManifest.xml\r\n\r\n``` Xml\r\n<service android:name=\".service.SyncService\"\r\n  android:exported=\"true\"\r\n  android:process=\":sync\">\r\n  \r\n  <intent-filter>\r\n    <action android:name=\"android.content.SyncAdapter\"/>\r\n  </intent-filter>\r\n  <meta-data android:name=\"android.content.SyncAdapter\"\r\n      android:resource=\"@xml/syncadapter\" />\r\n</service>\r\n```\r\n\r\ncauses the following exception\r\n\r\n```\r\nW/System.err﹕ java.io.IOException: Address already in use\r\nW/System.err﹕ at android.net.LocalSocketImpl.bindLocal(Native Method)\r\nW/System.err﹕ at android.net.LocalSocketImpl.bind(LocalSocketImpl.java:309)\r\nW/System.err﹕ at android.net.LocalServerSocket.<init>(LocalServerSocket.java:52)\r\nW/System.err﹕ at com.facebook.stetho.server.LocalSocketHttpServer.bindToSocket(LocalSocketHttpServer.java:278)\r\nW/System.err﹕ at com.facebook.stetho.server.LocalSocketHttpServer.listenOnAddress(LocalSocketHttpServer.java:138)\r\nW/System.err﹕ at com.facebook.stetho.server.LocalSocketHttpServer.run(LocalSocketHttpServer.java:134)\r\nW/System.err﹕ at com.facebook.stetho.Stetho$1.run(Stetho.java:80)\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/stetho/issues/comments/78388394","html_url":"https://github.com/facebook/stetho/issues/87#issuecomment-78388394","issue_url":"https://api.github.com/repos/facebook/stetho/issues/87","id":78388394,"user":{"login":"jasta","id":83791,"avatar_url":"https://avatars.githubusercontent.com/u/83791?v=3","gravatar_id":"","url":"https://api.github.com/users/jasta","html_url":"https://github.com/jasta","followers_url":"https://api.github.com/users/jasta/followers","following_url":"https://api.github.com/users/jasta/following{/other_user}","gists_url":"https://api.github.com/users/jasta/gists{/gist_id}","starred_url":"https://api.github.com/users/jasta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasta/subscriptions","organizations_url":"https://api.github.com/users/jasta/orgs","repos_url":"https://api.github.com/users/jasta/repos","events_url":"https://api.github.com/users/jasta/events{/privacy}","received_events_url":"https://api.github.com/users/jasta/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T22:39:49Z","updated_at":"2015-03-11T22:39:49Z","body":"The address already in use bug was fixed in 1.0.1 and represents a simple logic bug that always prints this error even on success (whoops).\r\n\r\nIf this is the only symptom, you can safely ignore the error or upgrade to 1.0.1 and everything should be fine."}}