{"action":"created","issue":{"url":"https://api.github.com/repos/wymsee/cordova-imagePicker/issues/126","repository_url":"https://api.github.com/repos/wymsee/cordova-imagePicker","labels_url":"https://api.github.com/repos/wymsee/cordova-imagePicker/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/wymsee/cordova-imagePicker/issues/126/comments","events_url":"https://api.github.com/repos/wymsee/cordova-imagePicker/issues/126/events","html_url":"https://github.com/wymsee/cordova-imagePicker/issues/126","id":130486184,"number":126,"title":"Crashing app on first time when Android ask permission. Logcat inside.","user":{"login":"claudioviola","id":6689594,"avatar_url":"https://avatars.githubusercontent.com/u/6689594?v=3","gravatar_id":"","url":"https://api.github.com/users/claudioviola","html_url":"https://github.com/claudioviola","followers_url":"https://api.github.com/users/claudioviola/followers","following_url":"https://api.github.com/users/claudioviola/following{/other_user}","gists_url":"https://api.github.com/users/claudioviola/gists{/gist_id}","starred_url":"https://api.github.com/users/claudioviola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudioviola/subscriptions","organizations_url":"https://api.github.com/users/claudioviola/orgs","repos_url":"https://api.github.com/users/claudioviola/repos","events_url":"https://api.github.com/users/claudioviola/events{/privacy}","received_events_url":"https://api.github.com/users/claudioviola/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-02-01T21:14:57Z","updated_at":"2016-03-30T10:11:18Z","closed_at":null,"body":"When try to open first time the album whit plugin the app crash and close sudnley.\r\nThe adb logcat report fllow lines.\r\nIs it my fault?\r\n\r\n02-01 22:12:05.709   778   966 I ActivityManager: START u0 {cmp=purple.alpha.app/com.synconset.MultiImageChooserActivity (has extras)} from uid 10174 on display 0\r\n02-01 22:12:05.774   937  9461 E DatabaseUtils: Writing exception to parcel\r\n02-01 22:12:05.774   937  9461 E DatabaseUtils: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=16354, uid=10174 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()\r\n02-01 22:12:05.774   937  9461 E DatabaseUtils: \tat android.content.ContentProvider.enforceReadPermissionInner(ContentProvider.java:605)\r\n02-01 22:12:05.774   937  9461 E DatabaseUtils: \tat android.content.ContentProvider$Transport.enforceReadPermission(ContentProvider.java:480)\r\n02-01 22:12:05.774   937  9461 E DatabaseUtils: \tat android.content.ContentProvider$Transport.query(ContentProvider.java:211)\r\n02-01 22:12:05.774   937  9461 E DatabaseUtils: \tat android.content.ContentProviderNative.onTransact(ContentProviderNative.java:112)\r\n02-01 22:12:05.774   937  9461 E DatabaseUtils: \tat android.os.Binder.execTransact(Binder.java:453)\r\n02-01 22:12:05.776   937  9458 E DatabaseUtils: Writing exception to parcel\r\n02-01 22:12:05.776   937  9458 E DatabaseUtils: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=16354, uid=10174 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()\r\n02-01 22:12:05.776   937  9458 E DatabaseUtils: \tat android.content.ContentProvider.enforceReadPermissionInner(ContentProvider.java:605)\r\n02-01 22:12:05.776   937  9458 E DatabaseUtils: \tat android.content.ContentProvider$Transport.enforceReadPermission(ContentProvider.java:480)\r\n02-01 22:12:05.776   937  9458 E DatabaseUtils: \tat android.content.ContentProvider$Transport.query(ContentProvider.java:211)\r\n02-01 22:12:05.776   937  9458 E DatabaseUtils: \tat android.content.ContentProviderNative.onTransact(ContentProviderNative.java:112)\r\n02-01 22:12:05.776   937  9458 E DatabaseUtils: \tat android.os.Binder.execTransact(Binder.java:453)\r\n02-01 22:12:05.779 16354 16379 I Process : Sending signal. PID: 16354 SIG: 9\r\n02-01 22:12:05.845   778   876 W InputDispatcher: channel '6a473c9 purple.alpha.app/purple.alpha.app.MainActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9\r\n02-01 22:12:05.845   778   876 E InputDispatcher: channel '6a473c9 purple.alpha.app/purple.alpha.app.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!\r\n02-01 22:12:05.848   778   876 W InputDispatcher: channel '7c4d500 purple.alpha.app/com.synconset.MultiImageChooserActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9\r\n02-01 22:12:05.848   778   876 E InputDispatcher: channel '7c4d500 purple.alpha.app/com.synconset.MultiImageChooserActivity (server)' ~ Channel is unrecoverably broken and will be disposed!\r\n02-01 22:12:05.852   778   789 I WindowState: WIN DEATH: Window{7c4d500 u0 purple.alpha.app/com.synconset.MultiImageChooserActivity}\r\n02-01 22:12:05.852   778   789 W InputDispatcher: Attempted to unregister already unregistered input channel '7c4d500 purple.alpha.app/com.synconset.MultiImageChooserActivity (server)'\r\n02-01 22:12:05.854   778  1989 D GraphicsStats: Buffer count: 4\r\n02-01 22:12:05.854   778  2008 I WindowState: WIN DEATH: Window{6a473c9 u0 purple.alpha.app/purple.alpha.app.MainActivity}\r\n02-01 22:12:05.854   778  2008 W InputDispatcher: Attempted to unregister already unregistered input channel '6a473c9 purple.alpha.app/purple.alpha.app.MainActivity (server)'\r\n02-01 22:12:05.870   778  1592 I ActivityManager: Process purple.alpha.app (pid 16354) has died\r\n02-01 22:12:05.871   778  1592 W ActivityManager: Force removing ActivityRecord{7301394 u0 purple.alpha.app/com.synconset.MultiImageChooserActivity t656}: app died, no saved state\r\n02-01 22:12:05.871   778  1592 W ActivityManager: Force removing ActivityRecord{68ae170 u0 purple.alpha.app/.MainActivity t656}: app died, no saved state\r\n02-01 22:12:05.918   778   788 W InputMethodManagerService: Got RemoteException sending setActive(false) notification to pid 16354 uid 10174\r\n02-01 22:12:05.919  1893  1893 I Keyboard.Facilitator: onFinishInput()\r\n02-01 22:12:06.350   778   799 W WindowAnimator: Failed to dispatch window animation state change.\r\n02-01 22:12:06.350   778   799 W WindowAnimator: android.os.DeadObjectException\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat android.os.BinderProxy.transactNative(Native Method)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat android.os.BinderProxy.transact(Binder.java:503)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:534)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:286)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat com.android.server.wm.WindowAnimator.-wrap0(WindowAnimator.java)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat android.view.Choreographer.doCallbacks(Choreographer.java:670)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat android.view.Choreographer.doFrame(Choreographer.java:603)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat android.os.Handler.handleCallback(Handler.java:739)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat android.os.Looper.loop(Looper.java:148)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat android.os.HandlerThread.run(HandlerThread.java:61)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat com.android.server.ServiceThread.run(ServiceThread.java:46)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: Failed to dispatch window animation state change.\r\n02-01 22:12:06.350   778   799 W WindowAnimator: android.os.DeadObjectException\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat android.os.BinderProxy.transactNative(Native Method)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat android.os.BinderProxy.transact(Binder.java:503)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:534)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:286)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat com.android.server.wm.WindowAnimator.-wrap0(WindowAnimator.java)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat android.view.Choreographer.doCallbacks(Choreographer.java:670)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat android.view.Choreographer.doFrame(Choreographer.java:603)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat android.os.Handler.handleCallback(Handler.java:739)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat android.os.Looper.loop(Looper.java:148)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat android.os.HandlerThread.run(HandlerThread.java:61)\r\n02-01 22:12:06.350   778   799 W WindowAnimator: \tat com.android.server.ServiceThread.run(ServiceThread.java:46)"},"comment":{"url":"https://api.github.com/repos/wymsee/cordova-imagePicker/issues/comments/203365030","html_url":"https://github.com/wymsee/cordova-imagePicker/issues/126#issuecomment-203365030","issue_url":"https://api.github.com/repos/wymsee/cordova-imagePicker/issues/126","id":203365030,"user":{"login":"Findiglay","id":5831507,"avatar_url":"https://avatars.githubusercontent.com/u/5831507?v=3","gravatar_id":"","url":"https://api.github.com/users/Findiglay","html_url":"https://github.com/Findiglay","followers_url":"https://api.github.com/users/Findiglay/followers","following_url":"https://api.github.com/users/Findiglay/following{/other_user}","gists_url":"https://api.github.com/users/Findiglay/gists{/gist_id}","starred_url":"https://api.github.com/users/Findiglay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Findiglay/subscriptions","organizations_url":"https://api.github.com/users/Findiglay/orgs","repos_url":"https://api.github.com/users/Findiglay/repos","events_url":"https://api.github.com/users/Findiglay/events{/privacy}","received_events_url":"https://api.github.com/users/Findiglay/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T10:11:18Z","updated_at":"2016-03-30T10:11:18Z","body":"I've just tested Poocart's [pull request](https://github.com/wymsee/cordova-imagePicker/pull/136), which fixes the issue for me. There is a native permissions popup and denying permission will no longer crash the app."}}