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

Bug: 疑似不支持WebP图片 #25

Closed
sxjeru opened this issue Mar 15, 2022 · 3 comments
Closed

Bug: 疑似不支持WebP图片 #25

sxjeru opened this issue Mar 15, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@sxjeru
Copy link

sxjeru commented Mar 15, 2022

以mod类型搜索“车万女仆”,聊天区无回复,后台报以下错误:

2022-03-15 16:18:41 E/top.limbang.mirai-console-mcmod-plugin: Exception in coroutine Plugin top.limbang.mirai-console-mcmod-plugin of top.limbang.mirai-console-mcmod-plugin
java.lang.IllegalArgumentException: Unsupported image type (mirai) for ExternalResource net.mamoe.mirai.internal.utils.ExternalResourceImplByByteArray@313b6f38, considering use gif/png/bmp/jpg format. image header: 52 49 46 46 14 EE 01 00 57 45 42 50 56 50 38 4C 07 EE 01 00 2F FF C3 BF 10 CD 30 72 DB 36
        at net.mamoe.mirai.internal.message.ImageDecoderKt.calculateImageInfo(ImageDecoder.kt:160)
        at net.mamoe.mirai.internal.contact.GroupImpl$uploadImage$lambda-19$$inlined$runBIO$1.invoke(CoroutineUtils.kt:194)
        at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:46)
        at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1)
        at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:38)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
        at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:39)
        at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

文件头中可得到以下关键词:

  • RIFF
  • WEBP VP8L
@sxjeru
Copy link
Author

sxjeru commented Mar 15, 2022

已尝试清空图片缓存文件夹,无效。且图片能被正常下载。

问题图片已给出,后缀名应为 webp,不知道为啥百科服务器里存着 jpg。
1576662810_21294_lICO

image

@limbang
Copy link
Owner

limbang commented Mar 16, 2022

到时候看看 正在重构2.0

@limbang
Copy link
Owner

limbang commented Mar 17, 2022

java 默认不支持 webp 已经改成错误提示了

@limbang limbang closed this as completed Mar 17, 2022
@limbang limbang added the bug Something isn't working label Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants