You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am trying to load an image of type .svg in my app, but it is not allowed, and it returns an error in the onError callback. I am using Jetpack Compose for Desktop. Details are attached below.
Can you post the failing image? java.lang.IllegalArgumentException: Failed to Image::makeFromEncoded) implies that the underlying Skia decoder failed to decode the image.
Hi @colinrtwhite, thank you for your response. Later, I did some tests with other svg files, obtaining the same reslt. I believe this is not a bug caused by this specific svg image.
Does the image fail to decode when using the SVGDom class directly (see here)? If so the issue is with the underlying decoder and will need to be fixed in Skiko.
Describe the bug
I am trying to load an image of type .svg in my app, but it is not allowed, and it returns an error in the onError callback. I am using Jetpack Compose for Desktop. Details are attached below.
To Reproduce
Logs/Screenshots
Error(painter=null, result=ErrorResult(image=null, request=ImageRequest(context=coil3.PlatformContext$Companion$INSTANCE$1@7a121de9, data=https://bitbucket.org/workspaces/my-company/avatar/?ts=1715362523, target=coil3.compose.AsyncImagePainter$updateRequest$$inlined$target$default$1@39b9e0d1, listener=null, memoryCacheKey=null, memoryCacheKeyExtras={}, diskCacheKey=null, fileSystem=NioSystemFileSystem, fetcherFactory=null, decoderFactory=null, interceptorDispatcher=Dispatchers.Main.immediate, fetcherDispatcher=Dispatchers.IO, decoderDispatcher=Dispatchers.IO, memoryCachePolicy=ENABLED, diskCachePolicy=ENABLED, networkCachePolicy=ENABLED, placeholderMemoryCacheKey=null, placeholderFactory=interface kotlin.jvm.functions.Function1, errorFactory=interface kotlin.jvm.functions.Function1, fallbackFactory=interface kotlin.jvm.functions.Function1, sizeResolver=coil3.compose.internal.ConstraintsSizeResolver@136a3a04, scale=FIT, precision=INEXACT, extras=Extras(data={}), defined=Defined(interceptorDispatcher=null, fetcherDispatcher=null, decoderDispatcher=null, memoryCachePolicy=null, diskCachePolicy=null, networkCachePolicy=null, placeholderFactory=interface kotlin.jvm.functions.Function1, errorFactory=interface kotlin.jvm.functions.Function1, fallbackFactory=interface kotlin.jvm.functions.Function1, sizeResolver=coil3.compose.internal.ConstraintsSizeResolver@136a3a04, scale=FIT, precision=INEXACT), defaults=Defaults(fileSystem=NioSystemFileSystem, interceptorDispatcher=Dispatchers.Main.immediate, fetcherDispatcher=Dispatchers.IO, decoderDispatcher=Dispatchers.IO, memoryCachePolicy=ENABLED, diskCachePolicy=ENABLED, networkCachePolicy=ENABLED, placeholderFactory=interface kotlin.jvm.functions.Function1, errorFactory=interface kotlin.jvm.functions.Function1, fallbackFactory=interface kotlin.jvm.functions.Function1, precision=AUTOMATIC, extras=Extras(data={coil3.Extras$Key@133df82=kotlin.Unit}))), throwable=java.lang.IllegalArgumentException: Failed to Image::makeFromEncoded))
Version
The text was updated successfully, but these errors were encountered: