CreeperHost / MineTogether

A Minecraft mod that enhances community and server features, such as global chat, chunk pre-generation, auto server join from protocol uri (via FTBApp), friends lists, private chats and many more features linked to the MineTogether platform.
https://minetogether.io
GNU General Public License v3.0
23 stars 16 forks source link

[Bug]: Exception in log when hovering non image link #628

Closed Raidobw2 closed 1 year ago

Raidobw2 commented 1 year ago

Describe the bug

Not sure, covers knows what this is about!

Steps to reproduce

Hover a link in the MT chat (such as the Discord) then you will see in the log:

[03Nov2022 05:55:28.916] [preview-render-0/ERROR] [net.creeperhost.minetogether.polylib.gui.PreviewRenderer/]: Failed to load preview for: https://discord.gg/J4hYB6M
java.io.IOException: Could not load image: Image not of any known type, or corrupt
    at com.mojang.blaze3d.platform.NativeImage.m_85051_(NativeImage.java:134) ~[client-1.18.2-20220404.173914-srg.jar%23263!/:?]
    at com.mojang.blaze3d.platform.NativeImage.m_85048_(NativeImage.java:108) ~[client-1.18.2-20220404.173914-srg.jar%23263!/:?]
    at com.mojang.blaze3d.platform.NativeImage.m_85058_(NativeImage.java:99) ~[client-1.18.2-20220404.173914-srg.jar%23263!/:?]
    at net.creeperhost.minetogether.polylib.gui.PreviewRenderer.load(PreviewRenderer.java:100) ~[minetogether-forge-1.18.2-6.0.8.jar%23187!/:?]
    at net.creeperhost.minetogether.polylib.gui.PreviewRenderer.lambda$compute$1(PreviewRenderer.java:93) ~[minetogether-forge-1.18.2-6.0.8.jar%23187!/:?]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
    at java.lang.Thread.run(Unknown Source) [?:?]

Expected behaviour

To not throw an error

Screenshots

image

Version

minetogether-forge-1.18.2-6.0.8.jar

Minecraft Version

1.18.2

ModLoader Version

Forge 40.1.84

Additional Information

Thanks!

covers1624 commented 1 year ago

This is now resolved in MineTogether 6.0.9.