{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/fresco/issues/1501","repository_url":"https://api.github.com/repos/facebook/fresco","labels_url":"https://api.github.com/repos/facebook/fresco/issues/1501/labels{/name}","comments_url":"https://api.github.com/repos/facebook/fresco/issues/1501/comments","events_url":"https://api.github.com/repos/facebook/fresco/issues/1501/events","html_url":"https://github.com/facebook/fresco/issues/1501","id":182775993,"number":1501,"title":"SimpleDraweeView加载从相册里选择的图片之后会变成黑色","user":{"login":"XumingX","id":13777420,"avatar_url":"https://avatars.githubusercontent.com/u/13777420?v=3","gravatar_id":"","url":"https://api.github.com/users/XumingX","html_url":"https://github.com/XumingX","followers_url":"https://api.github.com/users/XumingX/followers","following_url":"https://api.github.com/users/XumingX/following{/other_user}","gists_url":"https://api.github.com/users/XumingX/gists{/gist_id}","starred_url":"https://api.github.com/users/XumingX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XumingX/subscriptions","organizations_url":"https://api.github.com/users/XumingX/orgs","repos_url":"https://api.github.com/users/XumingX/repos","events_url":"https://api.github.com/users/XumingX/events{/privacy}","received_events_url":"https://api.github.com/users/XumingX/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/fresco/labels/needs-details","name":"needs-details","color":"f4a460"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-13T12:29:14Z","updated_at":"2016-10-17T02:41:40Z","closed_at":null,"body":"设备：红米1s，Android 4.4.4，MIUI 8.0\r\n问题：选择图片路径是外置内存卡时，可以正常显示；当路径是**内置内存卡**时，会变成黑色。\r\n\r\n显示图片正常uri路径：_/storage/sdcard1/DCIM/Camera/IMG_20160525_144332.jpg_\r\n显示图片变黑uri路径：_/storage/emulated/0/DCIM/Camera/IMG_20161013_182559.jpg_\r\n\r\n用image pipeline 打出的VERBOSE级别日志，变黑的情况会多出两条log：\r\n```\r\nV/unknown:NativeMemoryChunkPool: release (free) (object, size) = (4242fe48, 1164920)\r\nV/unknown:NativeMemoryChunkPool: Used = (1, 131072); Free = (1, 1048576)\r\n```\r\n代码：\r\n```\r\nprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n        super.onActivityResult(requestCode, resultCode, data);\r\n        if (requestCode == PhotoSelectDialog.ITEM_CAMERA && resultCode == RESULT_OK) {\r\n            LogUtils.d(\"获取拍照uri\", mCameraUri.getPath());\r\n            headImage.setImageURI(mCameraUri);\r\n        } else if (requestCode == PhotoSelectDialog.ITEM_ALBUM && resultCode == RESULT_OK) {\r\n            LogUtils.d(\"获取图片uri\", data.getData().getPath());\r\n            Uri albumUri = data.getData();\r\n            headImage.setImageURI(albumUri);\r\n        }\r\n    }\r\n\r\n```\r\n布局：\r\n```\r\n <com.facebook.drawee.view.SimpleDraweeView\r\n        android:id=\"@+id/imageLeftBarHead\"\r\n        android:layout_width=\"171px\"\r\n        android:layout_height=\"171px\"\r\n        android:layout_marginLeft=\"61px\"\r\n        android:layout_marginTop=\"67px\"\r\n        fresco:roundAsCircle=\"true\" />\r\n```\r\n已使用下面的代码查找异常，但没有报错\r\n`FileInputStream fis = new FileInputStream(new File(localUri.getPath()));`\r\n\r\n另外使用URI 带上 scheme依旧会出现问题，代码如下\r\n`headImage.setImageURI(\"file://\" + albumUri.getPath());`"},"comment":{"url":"https://api.github.com/repos/facebook/fresco/issues/comments/254099991","html_url":"https://github.com/facebook/fresco/issues/1501#issuecomment-254099991","issue_url":"https://api.github.com/repos/facebook/fresco/issues/1501","id":254099991,"user":{"login":"XumingX","id":13777420,"avatar_url":"https://avatars.githubusercontent.com/u/13777420?v=3","gravatar_id":"","url":"https://api.github.com/users/XumingX","html_url":"https://github.com/XumingX","followers_url":"https://api.github.com/users/XumingX/followers","following_url":"https://api.github.com/users/XumingX/following{/other_user}","gists_url":"https://api.github.com/users/XumingX/gists{/gist_id}","starred_url":"https://api.github.com/users/XumingX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XumingX/subscriptions","organizations_url":"https://api.github.com/users/XumingX/orgs","repos_url":"https://api.github.com/users/XumingX/repos","events_url":"https://api.github.com/users/XumingX/events{/privacy}","received_events_url":"https://api.github.com/users/XumingX/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T02:41:40Z","updated_at":"2016-10-17T02:41:40Z","body":"This is the uri log : _file:///storage/emulated/0/KydwSmartKey/JPEG_20161017_1032411961543464.jpg_\r\nI can access it with ADB at : \r\n![image](https://cloud.githubusercontent.com/assets/13777420/19423728/e1dd6fe0-9455-11e6-8d86-aa68e0bf110c.png)\r\n@oprisnik \r\nStill I can't find out where the problem is...\r\nHope to receive your reply!\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"XumingX"}}