open-ani / animeko

一站式在线弹幕追番平台:全自动 BT + 在线多数据源聚合,离线缓存,Bangumi 收藏同步,弹幕云过滤 ... 100% Kotlin Compose Multiplatform
https://myani.org
GNU Affero General Public License v3.0
1.92k stars 59 forks source link

PC端BT资源还是完全无法播放 #538

Closed wan0ge closed 4 months ago

wan0ge commented 4 months ago

问题描述

PC端bt资源完全无法播放,一直“正在解析资源链接”,还是只有在线源能播放

复现步骤

见日志文件: app.log

Ani 版本号

3.4.0-alpha01

操作系统

Windows

应用日志

这里怎么不能传文件,甚至还有字符限制
Him188 commented 4 months ago
2024-07-09 02:14:48,729 [WARN ] ani-root: Uncaught exception in coroutine [me.him188.ani.app.platform.CommonKoinModuleKt$createAppRootCoroutineScope$$inlined$CoroutineExceptionHandler$1@6a282b08, StandaloneCoroutine{Cancelling}@6854da44, Dispatchers.Default]
java.lang.UnsatisfiedLinkError: D:\softwares\0 Portable software\Ani\app\resources\torrent-rasterbar.dll: Can't find dependent libraries
    at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
    at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(Unknown Source)
    at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(Unknown Source)
    at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(Unknown Source)
    at java.base/java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.base/java.lang.Runtime.load0(Unknown Source)
    at java.base/java.lang.System.load(Unknown Source)
    at me.him188.ani.app.torrent.anitorrent.AnitorrentLibraryLoaderKt.loadAnitorrentLibrary(AnitorrentLibraryLoader.kt:18)
    at me.him188.ani.app.torrent.anitorrent.AnitorrentLibraryLoaderKt.access$loadAnitorrentLibrary(AnitorrentLibraryLoader.kt:1)
    at me.him188.ani.app.torrent.anitorrent.AnitorrentLibraryLoader.loadLibraries(AnitorrentLibraryLoader.kt:71)
    at me.him188.ani.app.torrent.anitorrent.AnitorrentTorrentDownloaderKt.AnitorrentTorrentDownloader(AnitorrentTorrentDownloader.kt:46)
    at me.him188.ani.app.tools.torrent.engines.AnitorrentEngine.newInstance(AnitorrentEngine.kt:68)
    at me.him188.ani.app.tools.torrent.engines.AnitorrentEngine.newInstance(AnitorrentEngine.kt:34)
    at me.him188.ani.app.tools.torrent.AbstractTorrentEngine$special$$inlined$map$1$2.emit(Emitters.kt:227)
    at kotlinx.coroutines.flow.FlowKt__DelayKt$debounceInternal$1.invokeSuspend(Delay.kt:215)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702)

日志看到是库加载失败了,

方便打开你的目录 D:\softwares\0 Portable software\Ani\app\resources\ 里面截个图吗

wan0ge commented 4 months ago
2024-07-09 02:14:48,729 [WARN ] ani-root: Uncaught exception in coroutine [me.him188.ani.app.platform.CommonKoinModuleKt$createAppRootCoroutineScope$$inlined$CoroutineExceptionHandler$1@6a282b08, StandaloneCoroutine{Cancelling}@6854da44, Dispatchers.Default]
java.lang.UnsatisfiedLinkError: D:\softwares\0 Portable software\Ani\app\resources\torrent-rasterbar.dll: Can't find dependent libraries
  at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
  at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(Unknown Source)
  at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(Unknown Source)
  at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(Unknown Source)
  at java.base/java.lang.ClassLoader.loadLibrary(Unknown Source)
  at java.base/java.lang.Runtime.load0(Unknown Source)
  at java.base/java.lang.System.load(Unknown Source)
  at me.him188.ani.app.torrent.anitorrent.AnitorrentLibraryLoaderKt.loadAnitorrentLibrary(AnitorrentLibraryLoader.kt:18)
  at me.him188.ani.app.torrent.anitorrent.AnitorrentLibraryLoaderKt.access$loadAnitorrentLibrary(AnitorrentLibraryLoader.kt:1)
  at me.him188.ani.app.torrent.anitorrent.AnitorrentLibraryLoader.loadLibraries(AnitorrentLibraryLoader.kt:71)
  at me.him188.ani.app.torrent.anitorrent.AnitorrentTorrentDownloaderKt.AnitorrentTorrentDownloader(AnitorrentTorrentDownloader.kt:46)
  at me.him188.ani.app.tools.torrent.engines.AnitorrentEngine.newInstance(AnitorrentEngine.kt:68)
  at me.him188.ani.app.tools.torrent.engines.AnitorrentEngine.newInstance(AnitorrentEngine.kt:34)
  at me.him188.ani.app.tools.torrent.AbstractTorrentEngine$special$$inlined$map$1$2.emit(Emitters.kt:227)
  at kotlinx.coroutines.flow.FlowKt__DelayKt$debounceInternal$1.invokeSuspend(Delay.kt:215)
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
  at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
  at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702)

日志看到是库加载失败了,

方便打开你的目录 D:\softwares\0 Portable software\Ani\app\resources\ 里面截个图吗

image

Him188 commented 4 months ago

奇怪, 试试把整个 ani 复制到一个目录不包含空格的地方呢?

wan0ge commented 4 months ago

我试试

Him188 commented 4 months ago

我复现了, 应该是CI打包问题

Him188 commented 4 months ago

image

CI 上面链接的库版本不对

Him188 commented 4 months ago

windows-x64.zip

用这里面的文件替换掉那些 dll 应该就可以了

wan0ge commented 4 months ago

ok我试试,我刚想带上日志说还是一样没想到排查出来了,我还排查了我自身网络但也一样

Him188 commented 4 months ago

优质 issue author

wan0ge commented 4 months ago

虽然但是好像还是放不了,这是这次的日志 app.log

Him188 commented 4 months ago

那可能是比较复杂的问题了, 只能明天看看了

wan0ge commented 4 months ago

那可能是比较复杂的问题了, 只能明天看看了

ok没问题不急

Him188 commented 4 months ago

image

那接下来我猜是链接的 Java 版本问题

wan0ge commented 4 months ago

草,什么开盲盒,都是打包的问题吗

Him188 commented 4 months ago

对, 我猜现在是我开发用的 18 链接的, 而 CI 上是 17, 所以我刚刚打包的 dll 没法在你那边跑

Him188 commented 4 months ago

native 东西是这样的, 还是 JVM 简单啊

Him188 commented 4 months ago

备注一下

//Path to a file.
OPENSSL_APPLINK_SOURCE:FILEPATH=D:/vcpkg/installed/x64-windows/include/openssl/applink.c

//Path to a file.
OPENSSL_INCLUDE_DIR:PATH=D:/vcpkg/installed/x64-windows/include
wan0ge commented 4 months ago

原来是不同版本,不太了解坐等修复了,另外什么时候开捐赠,ani完善之后用来追番真方便

Him188 commented 4 months ago

目前这个程度还远不够方便, 等以后吧