[Bug] Could not upload picture, try again later (client-side).
Landidi666 opened this issue · 4 comments
What's the issue?
On my own server, the photo-taking feature works as expected. However, when I try to Sneak + Right-Click to upload a picture, I always receive this error message in chat:
Could not upload picture, try again later (client-side).
To reduce interference from other mods, I tested this in a singleplayer world on Fabric 0.17.2, Minecraft 1.21.8, with only Camerapture 1.10.7 installed. Unfortunately, the same error still occurs when attempting to upload a photo. Both the error chats and the log outputs are same. Here is part of the log:
[07:00:38] [pool-5-thread-4/ERROR]: failed to send picture to server java.lang.ArrayIndexOutOfBoundsException: Index 2 out of bounds for length 2 at knot/com.luciad.imageio.webp.WebPWriter.extractComponentRGBAByte(WebPWriter.java:351) ~[io_github_darkxanter_webp-imageio-0.3.2-e4e37d5606a8f057.jar:?] at knot/com.luciad.imageio.webp.WebPWriter.getRGBA(WebPWriter.java:254) ~[io_github_darkxanter_webp-imageio-0.3.2-e4e37d5606a8f057.jar:?] at knot/com.luciad.imageio.webp.WebPWriter.encode(WebPWriter.java:96) ~[io_github_darkxanter_webp-imageio-0.3.2-e4e37d5606a8f057.jar:?] at knot/com.luciad.imageio.webp.WebPWriter.write(WebPWriter.java:72) ~[io_github_darkxanter_webp-imageio-0.3.2-e4e37d5606a8f057.jar:?] at knot/me.chrr.camerapture.util.ImageUtil.compressIntoWebP(ImageUtil.java:84) ~[Camerapture-1.10.7+mc1.21.8-fabric.jar:?] at knot/me.chrr.camerapture.picture.PictureTaker.uploadStoredPicture(PictureTaker.java:124) ~[Camerapture-1.10.7+mc1.21.8-fabric.jar:?] at knot/me.chrr.camerapture.CameraptureClient.lambda$registerPacketHandlers$0(CameraptureClient.java:89) ~[Camerapture-1.10.7+mc1.21.8-fabric.jar:?] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?] at java.base/java.lang.Thread.run(Thread.java:1583) [?:?] [07:00:38] [pool-5-thread-4/INFO]: [CHAT] Could not upload picture, try again later (client-side).
I can provide further logs or testing details upon request.
What loader are you using?
Fabric
What is your Minecraft version?
1.21.8
What is Camerapture's version?
Camerapture 1.10.7
Thank you for the report! This issue has been slightly haunting me, so thank you for the crash log! I unfortunately can't reproduce this on my end, but I'll see what I can do!
Hi! If possible, could you see if the above fix works with this build?
https://github.com/chrrs/camerapture/actions/runs/17322661911/artifacts/3882580006
Hi! If possible, could you see if the above fix works with this build? https://github.com/chrrs/camerapture/actions/runs/17322661911/artifacts/3882580006
I’ve tested it, and it fixed the bug. The pictures that I was previously unable to upload can now be uploaded without any problem. Thank you so much for your effort!