Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Url image load error 'Unexpected char 0xfffd at 3 in P3P' #1823

Closed
JaeparkYoon3908 opened this issue Jul 25, 2023 · 6 comments
Closed

Url image load error 'Unexpected char 0xfffd at 3 in P3P' #1823

JaeparkYoon3908 opened this issue Jul 25, 2023 · 6 comments
Labels
help wanted Issues that are up for grabs + are good candidates for community PRs

Comments

@JaeparkYoon3908
Copy link

JaeparkYoon3908 commented Jul 25, 2023

Describe the bug
intermittently not showing when load url image. I used library like this.

SubcomposeAsyncImage(
        model = ImageRequest.Builder(context)
                 .data(item.imgUrl)
                 .memoryCacheKey(item.imgUrl)
                 .diskCacheKey(item.imgUrl)
                 .diskCachePolicy(CachePolicy.ENABLED)
                 .memoryCachePolicy(CachePolicy.ENABLED)
                 .build(),
        onError = {
                 Log.d("YJP", "imageLoadErrorMessage = ${it.result.throwable.message}" )
        }
)

To Reproduce
it is intermittently occurred issue.. I find issue samsung device Galaxy Z Flip4(AOS 13), Galaxy S10(AOS 12)

Logs/Screenshots
I find error log why image not showing.
"imageLoadErrorMessage = Unexpected char 0xfffd at 3 in P3P value: CP=������ħ��ȣ"

I think it seems like that cache issue. I wonder how about your opinion?

I will attach screenshot.

스크린샷 2023-07-25 오후 2 33 56

Version

  • library version : "io.coil-kt:coil-compose:2.4.0"
  • device : Galaxy Z Flip4(AOS 13, API33) && Galaxy S10(AOS 12, API 31)
@colinrtwhite colinrtwhite added the help wanted Issues that are up for grabs + are good candidates for community PRs label Jul 25, 2023
@colinrtwhite
Copy link
Member

Can you post the full stack trace?

@JaeparkYoon3908
Copy link
Author

JaeparkYoon3908 commented Jul 27, 2023

Ok, I try that. since this issue intermittent occurred, I need enough time.

@fingertricks
Copy link
Contributor

@YoonJaePark3908 I suspect this might have the same root cause as #1838 for which I've proposed a fix #1839

@JaeparkYoon3908
Copy link
Author

@fingertricks Oh good news for me! I tried to post full stack trace but this issue not occurred.. as you said, There is a possibility in this issue error code 'value: CP=������ħ��ȣ' may be a non-ASCII headers problem.

@colinrtwhite
Copy link
Member

@YoonJaePark3908 The fix is now out in Coil 2.5.0.

@JaeparkYoon3908
Copy link
Author

thank you for your update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Issues that are up for grabs + are good candidates for community PRs
Projects
None yet
Development

No branches or pull requests

3 participants