bumptech / glide

An image loading and caching library for Android focused on smooth scrolling
https://bumptech.github.io/glide/
Other
34.67k stars 6.12k forks source link

SVG rendering issues #5381

Open jiaoyongzhi opened 8 months ago

jiaoyongzhi commented 8 months ago
implementation 'com.github.bumptech.glide:glide:4.16.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.16.0'
implementation 'com.caverock:androidsvg:1.4'

: Load failed for [https://pdf-img-172.oss-cn-hangzhou.aliyuncs.com/GC_aabb0d0d-0dd9-411f-b546-5fcd3b917443_toImg_2.svg?Expires=1710835048&OSSAccessKeyId=LTAI5tPjkAz1ACvr7rp9trNm&Signature=TQWsiD%2BQ0etVZ%2B%2BusnECtLQlS%2B0%3D] with dimensions [1080x2287] class com.bumptech.glide.load.engine.GlideException: Failed to load resource There was 1 root cause: java.io.IOException(Cannot load SVG from stream) call GlideException#logRootCauses(String) for more detail Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{FileInputStream->Object->PictureDrawable}, REMOTE, https://pdf-img-172.oss-cn-hangzhou.aliyuncs.com/GC_aabb0d0d-0dd9-411f-b546-5fcd3b917443_toImg_2.svg?Expires=1710835048&OSSAccessKeyId=LTAI5tPjkAz1ACvr7rp9trNm&Signature=TQWsiD%2BQ0etVZ%2B%2BusnECtLQlS%2B0%3D There was 1 root cause: java.io.IOException(Cannot load SVG from stream) call GlideException#logRootCauses(String) for more detail Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{FileInputStream->SVG->PictureDrawable} There was 1 root cause: java.io.IOException(Cannot load SVG from stream) call GlideException#logRootCauses(String) for more detail Cause (1 of 1): class java.io.IOException: Cannot load SVG from stream 2024-03-18 15:57:40.872 30012-30012/com.qingxun.translationdog W/Glide: Load failed for [https://pdf-img-172.oss-cn-hangzhou.aliyuncs.com/GC_aabb0d0d-0dd9-411f-b546-5fcd3b917443_toImg_1.svg?Expires=1710835048&OSSAccessKeyId=LTAI5tPjkAz1ACvr7rp9trNm&Signature=xv%2BbhmLaVuaklIGWzeqCHkZvKV4%3D] with dimensions [1080x2287] class com.bumptech.glide.load.engine.GlideException: Failed to load resource There was 1 root cause: java.io.IOException(Cannot load SVG from stream) call GlideException#logRootCauses(String) for more detail Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{FileInputStream->Object->PictureDrawable}, REMOTE, https://pdf-img-172.oss-cn-hangzhou.aliyuncs.com/GC_aabb0d0d-0dd9-411f-b546-5fcd3b917443_toImg_1.svg?Expires=1710835048&OSSAccessKeyId=LTAI5tPjkAz1ACvr7rp9trNm&Signature=xv%2BbhmLaVuaklIGWzeqCHkZvKV4%3D There was 1 root cause: java.io.IOException(Cannot load SVG from stream) call GlideException#logRootCauses(String) for more detail Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{FileInputStream->SVG->PictureDrawable} There was 1 root cause: java.io.IOException(Cannot load SVG from stream) call GlideException#logRootCauses(String) for more detail Cause (1 of 1): class java.io.IOException: Cannot load SVG from stream

Failed to render SVG in demo