{"action":"created","issue":{"url":"https://api.github.com/repos/square/picasso/issues/1197","labels_url":"https://api.github.com/repos/square/picasso/issues/1197/labels{/name}","comments_url":"https://api.github.com/repos/square/picasso/issues/1197/comments","events_url":"https://api.github.com/repos/square/picasso/issues/1197/events","html_url":"https://github.com/square/picasso/issues/1197","id":116128685,"number":1197,"title":"SecurityException: Unable to find app for caller android.app.ApplicationThreadProxy","user":{"login":"digitalbuddha","id":4528092,"avatar_url":"https://avatars.githubusercontent.com/u/4528092?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalbuddha","html_url":"https://github.com/digitalbuddha","followers_url":"https://api.github.com/users/digitalbuddha/followers","following_url":"https://api.github.com/users/digitalbuddha/following{/other_user}","gists_url":"https://api.github.com/users/digitalbuddha/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalbuddha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalbuddha/subscriptions","organizations_url":"https://api.github.com/users/digitalbuddha/orgs","repos_url":"https://api.github.com/users/digitalbuddha/repos","events_url":"https://api.github.com/users/digitalbuddha/events{/privacy}","received_events_url":"https://api.github.com/users/digitalbuddha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-10T15:25:43Z","updated_at":"2015-12-08T03:54:50Z","closed_at":null,"body":"Few days ago we started seeing crashes in Hockey that looked like \r\n```\r\njava.lang.RuntimeException: Unable to create application com.nytimes.android.NYTApplication: java.lang.SecurityException: Unable to find app for caller android.app.ApplicationThreadProxy@42b01348 (pid=14091) when getting content provider settings\r\n```\r\n\r\n\r\nThe line throwing the error is:\r\n```    \r\n    Picasso picasso = new Picasso.Builder(this).build();\r\n```\r\n\r\nWe are seeing it on a variety of device manufacturers but only for version 4.1.2 to 4.4 \r\n\r\nfull stacktrace\r\n```\r\njava.lang.RuntimeException: Unable to create application com.nytimes.android.NYTApplication: java.lang.SecurityException: Unable to find app for caller android.app.ApplicationThreadProxy@42b01348 (pid=14091) when getting content provider settings\r\n\tat android.app.ActivityThread.handleBindApplication(ActivityThread.java:4775)\r\n\tat android.app.ActivityThread.access$1600(ActivityThread.java:170)\r\n\tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)\r\n\tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n\tat android.os.Looper.loop(Looper.java:146)\r\n\tat android.app.ActivityThread.main(ActivityThread.java:5635)\r\n\tat java.lang.reflect.Method.invokeNative(Native Method)\r\n\tat java.lang.reflect.Method.invoke(Method.java:515)\r\n\tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)\r\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)\r\n\tat dalvik.system.NativeStart.main(Native Method)\r\nCaused by: java.lang.SecurityException: Unable to find app for caller android.app.ApplicationThreadProxy@42b01348 (pid=14091) when getting content provider settings\r\n\tat android.os.Parcel.readException(Parcel.java:1465)\r\n\tat android.os.Parcel.readException(Parcel.java:1419)\r\n\tat android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java:3299)\r\n\tat android.app.ActivityThread.acquireProvider(ActivityThread.java:4843)\r\n\tat android.app.ContextImpl$ApplicationContentResolver.acquireProvider(ContextImpl.java:2718)\r\n\tat android.content.ContentResolver.acquireProvider(ContentResolver.java:1421)\r\n\tat android.provider.Settings$NameValueCache.lazyGetProvider(Settings.java:1030)\r\n\tat android.provider.Settings$NameValueCache.getStringForUser(Settings.java:1111)\r\n\tat android.provider.Settings$Global.getStringForUser(Settings.java:11516)\r\n\tat android.provider.Settings$System.getStringForUser(Settings.java:1359)\r\n\tat android.provider.Settings$System.getIntForUser(Settings.java:1434)\r\n\tat android.provider.Settings$System.getInt(Settings.java:1426)\r\n\tat com.squareup.picasso.Utils.isAirplaneModeOn(SourceFile:291)\r\n\tat com.squareup.picasso.Dispatcher.<init>(SourceFile:115)\r\n\tat com.squareup.picasso.Picasso$Builder.build(SourceFile:827)\r\n\tat com.nytimes.android.NYTApplication.configurePicasso(SourceFile:189)\r\n\tat com.nytimes.android.NYTApplication.onCreate(SourceFile:99)\r\n\tat android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013)\r\n\tat android.app.ActivityThread.handleBindApplication(ActivityThread.java:4772)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/square/picasso/issues/comments/162751659","html_url":"https://github.com/square/picasso/issues/1197#issuecomment-162751659","issue_url":"https://api.github.com/repos/square/picasso/issues/1197","id":162751659,"user":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars.githubusercontent.com/u/66577?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T03:54:50Z","updated_at":"2015-12-08T03:54:50Z","body":"Damn. Ok. Seems reasonable to try/catch then. We don't want to fail here.\n\nOn Mon, Dec 7, 2015 at 10:52 PM Mike Nakhimovich <notifications@github.com>\nwrote:\n\n> We have not been able to reproduce, QA has done at least 5 full regression\n> tests on multiple devices and it never comes up but hockey has been\n> reporting the crash more and more.\n>\n> stacktrace:\n> https://gist.github.com/digitalbuddha/0b3d25a176feb6bce637\n>\n> [image: screen shot 2015-12-07 at 10 48 31 pm]\n> <https://cloud.githubusercontent.com/assets/4528092/11647314/bb8da706-9d34-11e5-9838-cbb8d68b9f25.png>\n>\n> [image: screen shot 2015-12-07 at 10 50 24 pm]\n> <https://cloud.githubusercontent.com/assets/4528092/11647341/f578a9b6-9d34-11e5-8741-3af8225ee2a4.png>\n>\n> [image: screen shot 2015-12-07 at 10 51 07 pm]\n> <https://cloud.githubusercontent.com/assets/4528092/11647357/0d44abf8-9d35-11e5-865a-e3877b836089.png>\n>\n> Let me know if there's anything else that can help. Current Picasso\n> version is 2.5.0\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/square/picasso/issues/1197#issuecomment-162751168>.\n>\n"}}