Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

bug: X86发送语音报错 #84

Closed
moesnow opened this issue Nov 24, 2023 · 5 comments
Closed

bug: X86发送语音报错 #84

moesnow opened this issue Nov 24, 2023 · 5 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed wontfix This will not be worked on

Comments

@moesnow
Copy link

moesnow commented Nov 24, 2023

警告: 在进一步操作之前,请检查下列选项。如果您忽视此模板或者没有提供关键信息,您的 Issue 将直接被关闭

  • 确保您使用的是 最新开发版本 的 Shamrock.
  • 确保您的问题尚未在 Issues 列表中提出.
  • 确保您的问题不是由于您的代码错误导致的.

描述 Bug

X86发送语音报错,无论群聊还是私聊,AudioLibrary的架构没有弄错

[01:29:05] INFO LoadExternalLibrary(name = ffmpegkit_abidetect)
[01:29:05] INFO LoadExternalLibrary(name = avutil)
[01:29:05] INFO LoadExternalLibrary(name = swscale)
[01:29:05] INFO LoadExternalLibrary(name = swresample)
[01:29:05] INFO LoadExternalLibrary(name = avcodec)
[01:29:05] INFO LoadExternalLibrary(name = avformat)
[01:29:05] INFO LoadExternalLibrary(name = avfilter)
[01:29:05] INFO LoadExternalLibrary(name = avdevice)
[01:29:05] INFO LoadExternalLibrary(name = ffmpegkit)
[01:29:05] INFO LoadExternalLibrary(name = ffmpegkit_abidetect)
[01:29:05] ERROR java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String com.arthenica.ffmpegkit.AbiDetect.getNativeAbi() (tried Java_com_arthenica_ffmpegkit_AbiDetect_getNativeAbi and Java_com_arthenica_ffmpegkit_AbiDetect_getNativeAbi__)
	at com.arthenica.ffmpegkit.AbiDetect.getNativeAbi(Native Method)
	at com.arthenica.ffmpegkit.NativeLoader.loadNativeAbi(NativeLoader.java:65)
	at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKit(NativeLoader.java:173)
	at com.arthenica.ffmpegkit.FFmpegKitConfig.<clinit>(FFmpegKitConfig.java:145)
	at com.arthenica.ffmpegkit.FFmpegKitConfig.parseArguments(FFmpegKitConfig.java:1318)
	at com.arthenica.ffmpegkit.FFmpegKit.execute(FFmpegKit.java:167)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

[01:29:05] ERROR java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String com.arthenica.ffmpegkit.AbiDetect.getNativeAbi() (tried Java_com_arthenica_ffmpegkit_AbiDetect_getNativeAbi and Java_com_arthenica_ffmpegkit_AbiDetect_getNativeAbi__)
	at com.arthenica.ffmpegkit.AbiDetect.getNativeAbi(Native Method)
	at com.arthenica.ffmpegkit.NativeLoader.loadNativeAbi(NativeLoader.java:65)
	at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKit(NativeLoader.java:173)
	at com.arthenica.ffmpegkit.FFmpegKitConfig.<clinit>(FFmpegKitConfig.java:145)
	at com.arthenica.ffmpegkit.FFmpegKitConfig.parseArguments(FFmpegKitConfig.java:1318)
	at com.arthenica.ffmpegkit.FFmpegKit.execute(FFmpegKit.java:167)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
[01:34:41] ERROR java.lang.NoClassDefFoundError: com.arthenica.ffmpegkit.FFmpegKitConfig
	at com.arthenica.ffmpegkit.FFmpegKitConfig.parseArguments(FFmpegKitConfig.java:1318)
	at com.arthenica.ffmpegkit.FFmpegKit.execute(FFmpegKit.java:167)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
Caused by: java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String com.arthenica.ffmpegkit.AbiDetect.getNativeAbi() (tried Java_com_arthenica_ffmpegkit_AbiDetect_getNativeAbi and Java_com_arthenica_ffmpegkit_AbiDetect_getNativeAbi__)
	at com.arthenica.ffmpegkit.AbiDetect.getNativeAbi(Native Method)
	at com.arthenica.ffmpegkit.NativeLoader.loadNativeAbi(NativeLoader.java:65)
	at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKit(NativeLoader.java:173)
	at com.arthenica.ffmpegkit.FFmpegKitConfig.<clinit>(FFmpegKitConfig.java:145)
	... 8 more

[01:34:41] ERROR java.lang.NoClassDefFoundError: com.arthenica.ffmpegkit.FFmpegKitConfig
	at com.arthenica.ffmpegkit.FFmpegKitConfig.parseArguments(FFmpegKitConfig.java:1318)
	at com.arthenica.ffmpegkit.FFmpegKit.execute(FFmpegKit.java:167)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
Caused by: java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String com.arthenica.ffmpegkit.AbiDetect.getNativeAbi() (tried Java_com_arthenica_ffmpegkit_AbiDetect_getNativeAbi and Java_com_arthenica_ffmpegkit_AbiDetect_getNativeAbi__)
	at com.arthenica.ffmpegkit.AbiDetect.getNativeAbi(Native Method)
	at com.arthenica.ffmpegkit.NativeLoader.loadNativeAbi(NativeLoader.java:65)
	at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKit(NativeLoader.java:173)
	at com.arthenica.ffmpegkit.FFmpegKitConfig.<clinit>(FFmpegKitConfig.java:145)
	... 8 more

复现 Bug

安装 AudioLibrary-x64 后,发送语音文件,肯定没弄错架构

~/.../Shamrock/lib $ md5sum libffmpegkit.so 
c0dec9eef43e1b61339ebb8bef3a79e5  libffmpegkit.so

系统信息

  • Shamrock 版本: Shamrock-v1.0.6-dev.679b761-x86_64.apk
  • Android 版本: 9 (API 28)
  • 设备的制造商和型号: PVE 安装 BlissOS-v11
  • 设备的 CPU 架构: X86_64
@moesnow moesnow added the bug Something isn't working label Nov 24, 2023
@whitechi73
Copy link
Owner

两个架构都试试看?

@whitechi73 whitechi73 added help wanted Extra attention is needed good first issue Good for newcomers labels Nov 25, 2023
@moesnow
Copy link
Author

moesnow commented Nov 25, 2023

尝试了AudioLibrary-arm64.zipAudioLibrary-x64.zip 都报错😭

[22:49:55] INFO LoadExternalLibrary(name = ffmpegkit_abidetect)
[22:49:55] INFO LoadExternalLibrary(name = avutil)
[22:49:55] INFO LoadExternalLibrary(name = swscale)
[22:49:55] INFO LoadExternalLibrary(name = swresample)
[22:49:55] INFO LoadExternalLibrary(name = avcodec)
[22:49:55] INFO LoadExternalLibrary(name = avformat)
[22:49:55] INFO LoadExternalLibrary(name = avfilter)
[22:49:55] INFO LoadExternalLibrary(name = avdevice)
[22:49:55] INFO LoadExternalLibrary(name = ffmpegkit)
[22:49:55] INFO LoadExternalLibrary(name = ffmpegkit_abidetect)
[22:49:55] ERROR java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String com.arthenica.ffmpegkit.AbiDetect.getNativeAbi() (tried Java_com_arthenica_ffmpegkit_AbiDetect_getNativeAbi and Java_com_arthenica_ffmpegkit_AbiDetect_getNativeAbi__)
	at com.arthenica.ffmpegkit.AbiDetect.getNativeAbi(Native Method)
	at com.arthenica.ffmpegkit.NativeLoader.loadNativeAbi(NativeLoader.java:65)
	at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKit(NativeLoader.java:173)
	at com.arthenica.ffmpegkit.FFmpegKitConfig.<clinit>(FFmpegKitConfig.java:145)
	at com.arthenica.ffmpegkit.FFmpegKitConfig.parseArguments(FFmpegKitConfig.java:1318)
	at com.arthenica.ffmpegkit.FFmpegKit.execute(FFmpegKit.java:167)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

[22:49:55] ERROR java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String com.arthenica.ffmpegkit.AbiDetect.getNativeAbi() (tried Java_com_arthenica_ffmpegkit_AbiDetect_getNativeAbi and Java_com_arthenica_ffmpegkit_AbiDetect_getNativeAbi__)
	at com.arthenica.ffmpegkit.AbiDetect.getNativeAbi(Native Method)
	at com.arthenica.ffmpegkit.NativeLoader.loadNativeAbi(NativeLoader.java:65)
	at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKit(NativeLoader.java:173)
	at com.arthenica.ffmpegkit.FFmpegKitConfig.<clinit>(FFmpegKitConfig.java:145)
	at com.arthenica.ffmpegkit.FFmpegKitConfig.parseArguments(FFmpegKitConfig.java:1318)
	at com.arthenica.ffmpegkit.FFmpegKit.execute(FFmpegKit.java:167)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

@whitechi73 whitechi73 self-assigned this Nov 25, 2023
@whitechi73 whitechi73 added the wontfix This will not be worked on label Dec 31, 2023
@whitechi73 whitechi73 pinned this issue Jan 25, 2024
@bowen99
Copy link

bowen99 commented Feb 16, 2024

image
发送语音提示这个

@okatu-loli
Copy link

遇到同样的问题,查了下似乎是因为缺依赖?
https://github.com/arthenica/ffmpeg-kit/wiki/Smart-Exception-Dependency

@okatu-loli
Copy link

看到了这个issue,解决了
#11

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants