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

发送图片时java.lang.NoSuchMethodError: 'net.mamoe.mirai.internal.deps.io.ktor.utils.io.core.Input net.mamoe.mirai.utils.ExternalResource.input()' #2381

Closed
4o4E opened this issue Dec 4, 2022 · 1 comment
Labels
C 优先级: 最高 s:core 子系统: mirai-core t:bug 类型: bug
Milestone

Comments

@4o4E
Copy link

4o4E commented Dec 4, 2022

问题描述

发送图片时java.lang.NoSuchMethodError: 'net.mamoe.mirai.internal.deps.io.ktor.utils.io.core.Input net.mamoe.mirai.utils.ExternalResource.input()'

复现

发送图片

mirai-core 版本

2.13.1

bot-protocol

IPAD

其他组件版本

No response

系统日志

java.lang.NoSuchMethodError: 'net.mamoe.mirai.internal.deps.io.ktor.utils.io.core.Input net.mamoe.mirai.utils.ExternalResource.input()'
	at net.mamoe.mirai.internal.message.image.ImageDecoderKt.calculateImageInfo(ImageDecoder.kt:152) ~[mirai-core-jvm-2.13.1.jar:2.13.1]
	at net.mamoe.mirai.internal.contact.CommonGroupImpl$uploadImage$lambda-16$$inlined$runBIO$1.invoke(CoroutineUtils.kt:23) ~[mirai-core-jvm-2.13.1.jar:2.13.1]
	at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:51) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:?]
	at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:?]
	at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:43) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:?]
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) ~[kotlin-stdlib-1.7.20.jar:1.7.20-release-201(1.7.20)]
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:?]
	at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:?]
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:?]
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:?]
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:?]
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:?]
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) ~[kotlinx-coroutines-core-jvm-1.6.4.jar:?]

网络日志

No response

补充信息

No response

@Him188
Copy link
Member

Him188 commented Dec 4, 2022

好像是忘了为 mirai-core-api 设置 relocate

@Him188 Him188 added this to the 2.13.2 milestone Dec 4, 2022
@Him188 Him188 added t:bug 类型: bug C 优先级: 最高 s:core 子系统: mirai-core labels Dec 4, 2022
@Him188 Him188 closed this as completed in 6fc1482 Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C 优先级: 最高 s:core 子系统: mirai-core t:bug 类型: bug
Projects
None yet
Development

No branches or pull requests

2 participants