{"action":"created","issue":{"url":"https://api.github.com/repos/square/spoon/issues/379","repository_url":"https://api.github.com/repos/square/spoon","labels_url":"https://api.github.com/repos/square/spoon/issues/379/labels{/name}","comments_url":"https://api.github.com/repos/square/spoon/issues/379/comments","events_url":"https://api.github.com/repos/square/spoon/issues/379/events","html_url":"https://github.com/square/spoon/issues/379","id":173953411,"number":379,"title":"Spoon screenshot crash for Marshmallow Device ","user":{"login":"Kiran89kumar","id":3884169,"avatar_url":"https://avatars.githubusercontent.com/u/3884169?v=3","gravatar_id":"","url":"https://api.github.com/users/Kiran89kumar","html_url":"https://github.com/Kiran89kumar","followers_url":"https://api.github.com/users/Kiran89kumar/followers","following_url":"https://api.github.com/users/Kiran89kumar/following{/other_user}","gists_url":"https://api.github.com/users/Kiran89kumar/gists{/gist_id}","starred_url":"https://api.github.com/users/Kiran89kumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kiran89kumar/subscriptions","organizations_url":"https://api.github.com/users/Kiran89kumar/orgs","repos_url":"https://api.github.com/users/Kiran89kumar/repos","events_url":"https://api.github.com/users/Kiran89kumar/events{/privacy}","received_events_url":"https://api.github.com/users/Kiran89kumar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-30T07:58:48Z","updated_at":"2016-09-05T09:20:48Z","closed_at":null,"body":"Spoon is getting crashed while running connectedDebugAndroidTest.\r\n\r\n_Crash_ Log: java.lang.RuntimeException: Unable to capture screenshot.\r\nCaused by: java.io.FileNotFoundException: /storage/emulated/0/app_spoon-screenshots/com.xxx.xyz.MainActivityTest/demoTest/1472536152119_Capture.png: open failed: EACCES (Permission denied)\r\nat libcore.io.IoBridge.open(IoBridge.java:452)\r\nat java.io.FileOutputStream.<init>(FileOutputStream.java:87)\r\nat java.io.FileOutputStream.<init>(FileOutputStream.java:72)\r\nat com.squareup.spoon.Spoon.takeScreenshot(Spoon.java:123)\r\nat com.squareup.spoon.Spoon.screenshot(Spoon.java:85)\r\n... 17 more\r\nCaused by: android.system.ErrnoException: open failed: EACCES (Permission denied)\r\nat libcore.io.Posix.open(Native Method)\r\nat libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)\r\nat libcore.io.IoBridge.open(IoBridge.java:438)\r\n... 21 more_\r\n\r\nSame thing will work fine after running spoon. "},"comment":{"url":"https://api.github.com/repos/square/spoon/issues/comments/244699776","html_url":"https://github.com/square/spoon/issues/379#issuecomment-244699776","issue_url":"https://api.github.com/repos/square/spoon/issues/379","id":244699776,"user":{"login":"AAverin","id":1481332,"avatar_url":"https://avatars.githubusercontent.com/u/1481332?v=3","gravatar_id":"","url":"https://api.github.com/users/AAverin","html_url":"https://github.com/AAverin","followers_url":"https://api.github.com/users/AAverin/followers","following_url":"https://api.github.com/users/AAverin/following{/other_user}","gists_url":"https://api.github.com/users/AAverin/gists{/gist_id}","starred_url":"https://api.github.com/users/AAverin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AAverin/subscriptions","organizations_url":"https://api.github.com/users/AAverin/orgs","repos_url":"https://api.github.com/users/AAverin/repos","events_url":"https://api.github.com/users/AAverin/events{/privacy}","received_events_url":"https://api.github.com/users/AAverin/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T09:20:47Z","updated_at":"2016-09-05T09:20:47Z","body":"Same.\r\nSpoon should correctly as for permission when running on 6.0+ devices"}}
{"actor":{"display_login":"AAverin"}}