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

macOS M4 选择bt资源提示不支持的视频类型 #1209

Open
Somnusochi opened this issue Nov 16, 2024 · 8 comments
Open

macOS M4 选择bt资源提示不支持的视频类型 #1209

Somnusochi opened this issue Nov 16, 2024 · 8 comments
Labels
N 一般优先级

Comments

@Somnusochi
Copy link

问题描述

选择bt源的时候提示不支持的视频类型

Image
Image

同样的源在Android端播放正常

Image

复现步骤

No response

Ani 版本号

3.12.0

操作系统

macOS (M 系列芯片)

应用日志

[app.log](https://github.com/user-attachments/files/17786871/app.log)
@Somnusochi Somnusochi added the N 一般优先级 label Nov 16, 2024
@Him188
Copy link
Member

Him188 commented Nov 16, 2024


2024-11-16 22:56:04,178 [INFO ] app.torrent.anitorrent.AnitorrentLibraryLoader: Loading library OPENSSL_CRYPTO_LIBRARY from: libcrypto.dylib


2024-11-16 22:56:04,266 [INFO ] app.torrent.anitorrent.AnitorrentLibraryLoader: Loading library OPENSSL_SSL_LIBRARY from: libssl.dylib
2024-11-16 22:56:04,287 [INFO ] app.torrent.anitorrent.AnitorrentLibraryLoader: Loading library OPENSSL_CRYPTO_LIBRARY from: libcrypto.dylib
2024-11-16 22:56:04,288 [INFO ] app.torrent.anitorrent.AnitorrentLibraryLoader: Loading library OPENSSL_SSL_LIBRARY from: libssl.dylib
2024-11-16 22:56:04,287 [ERROR] app.domain.torrent.engines.AnitorrentEngine: Failed to load libraries for AnitorrentEngine
java.lang.UnsatisfiedLinkError: /Applications/Ani.app/Contents/app/resources/anitorrent/lib/libssl.dylib: dlopen(/Applications/Ani.app/Contents/app/resources/anitorrent/lib/libssl.dylib, 0x0001): Library not loaded: /opt/homebrew/Cellar/openssl@3/3.3.2/lib/libcrypto.3.dylib
  Referenced from: <CEC45952-2976-308B-869F-AA8C11494406> /Applications/Ani.app/Contents/app/resources/anitorrent/lib/libssl.dylib
  Reason: tried: '/opt/homebrew/Cellar/openssl@3/3.3.2/lib/libcrypto.3.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/openssl@3/3.3.2/lib/libcrypto.3.dylib' (no such file), '/opt/homebrew/Cellar/openssl@3/3.3.2/lib/libcrypto.3.dylib' (no such file)
	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.AnitorrentLibraryLoader.loadLibrary(AnitorrentLibraryLoader.kt:51)
	at me.him188.ani.app.torrent.anitorrent.AnitorrentLibraryLoader.loadDependencies(AnitorrentLibraryLoader.kt:70)
	at me.him188.ani.app.torrent.anitorrent.AnitorrentLibraryLoader.loadLibraries(AnitorrentLibraryLoader.kt:80)
	at me.him188.ani.app.domain.torrent.engines.AnitorrentEngine.tryLoadLibraries(AnitorrentEngine.kt:68)
	at me.him188.ani.app.domain.torrent.engines.AnitorrentEngine.isSupported(AnitorrentEngine.kt:64)
	at me.him188.ani.app.domain.torrent.engines.AnitorrentEngine.newInstance(AnitorrentEngine.kt:96)
	at me.him188.ani.app.domain.torrent.engines.AnitorrentEngine.newInstance(AnitorrentEngine.kt:48)
	at me.him188.ani.app.domain.torrent.AbstractTorrentEngine$special$$inlined$map$1$2.emit(Emitters.kt:51)
	at me.him188.ani.app.domain.torrent.AbstractTorrentEngine$special$$inlined$map$1$2$1.invokeSuspend(Unknown Source)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:99)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:589)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:832)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:720)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:707)
2024-11-16 22:56:04,288 [ERROR] app.domain.torrent.engines.AnitorrentEngine: Anitorrent is disabled because it is not built. Read `/torrent/anitorrent/README.md` for more information.
2024-11-16 22:56:04,288 [WARN ] app.domain.torrent.engines.AnitorrentEngine: Failed to create TorrentDownloader Anitorrent because it is not supported
java.lang.UnsupportedOperationException: AnitorrentEngine is not supported
	at me.him188.ani.app.domain.torrent.engines.AnitorrentEngine.newInstance(AnitorrentEngine.kt:98)
	at me.him188.ani.app.domain.torrent.engines.AnitorrentEngine.newInstance(AnitorrentEngine.kt:48)
	at me.him188.ani.app.domain.torrent.AbstractTorrentEngine$special$$inlined$map$1$2.emit(Emitters.kt:51)
	at me.him188.ani.app.domain.torrent.AbstractTorrentEngine$special$$inlined$map$1$2$1.invokeSuspend(Unknown Source)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:99)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:589)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:832)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:720)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:707)
2024-11-16 22:56:04,288 [ERROR] app.domain.torrent.engines.AnitorrentEngine: Failed to load libraries for AnitorrentEngine
java.lang.UnsatisfiedLinkError: /Applications/Ani.app/Contents/app/resources/anitorrent/lib/libssl.dylib: dlopen(/Applications/Ani.app/Contents/app/resources/anitorrent/lib/libssl.dylib, 0x0001): Library not loaded: /opt/homebrew/Cellar/openssl@3/3.3.2/lib/libcrypto.3.dylib
  Referenced from: <CEC45952-2976-308B-869F-AA8C11494406> /Applications/Ani.app/Contents/app/resources/anitorrent/lib/libssl.dylib
  Reason: tried: '/opt/homebrew/Cellar/openssl@3/3.3.2/lib/libcrypto.3.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/openssl@3/3.3.2/lib/libcrypto.3.dylib' (no such file), '/opt/homebrew/Cellar/openssl@3/3.3.2/lib/libcrypto.3.dylib' (no such file)
	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.AnitorrentLibraryLoader.loadLibrary(AnitorrentLibraryLoader.kt:51)
	at me.him188.ani.app.torrent.anitorrent.AnitorrentLibraryLoader.loadDependencies(AnitorrentLibraryLoader.kt:70)
	at me.him188.ani.app.torrent.anitorrent.AnitorrentLibraryLoader.loadLibraries(AnitorrentLibraryLoader.kt:80)
	at me.him188.ani.app.domain.torrent.engines.AnitorrentEngine.tryLoadLibraries(AnitorrentEngine.kt:68)
	at me.him188.ani.app.domain.torrent.engines.AnitorrentEngine.isSupported(AnitorrentEngine.kt:64)
	at me.him188.ani.app.domain.torrent.AbstractTorrentEngine.getDownloader(TorrentEngine.kt:159)
	at me.him188.ani.app.domain.media.cache.engine.TorrentMediaCacheEngine.deleteUnusedCaches(TorrentMediaCacheEngine.kt:358)
	at me.him188.ani.app.domain.media.cache.storage.DirectoryMediaCacheStorage.restorePersistedCaches(DirectoryMediaCacheStorage.kt:120)
	at me.him188.ani.app.domain.media.cache.storage.DirectoryMediaCacheStorage$restorePersistedCaches$1.invokeSuspend(DirectoryMediaCacheStorage.kt)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:101)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:589)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:832)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:720)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:707)
2

@Him188
Copy link
Member

Him188 commented Nov 16, 2024

你是不是 M 芯片的 macbook, 下载了 Intel 的版本的 ani

@Him188
Copy link
Member

Him188 commented Nov 16, 2024

可以试试 4.0.0-beta04 能不能用

@Somnusochi
Copy link
Author

Image
Image
Image
换了 4.0.0-beta04 也是一样

@Him188
Copy link
Member

Him188 commented Nov 16, 2024

那很奇怪, 但是你可以用以下命令修复:

可能需要挂代理

  1. 按 command + 空格, 输入 terminal 回车
  2. 输入并回车:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. 输入并回车:
brew install openssl@3

@Him188 Him188 changed the title 选择bt资源提示不支持的视频类型 macOS M4 选择bt资源提示不支持的视频类型 Nov 16, 2024
@Somnusochi
Copy link
Author

重装了openssl@3还是一样
Image
Image

@Him188
Copy link
Member

Him188 commented Nov 16, 2024

很奇怪, 我的 M2 Max 和朋友的 M3 Max 都没问题. 朋友的机器也是 openssl 3.4.0.

@Somnusochi
Copy link
Author

Somnusochi commented Nov 16, 2024

你这么说的话我有个想法,我是直接从intel芯片的机子迁移到m4的,intel的机子上装的是intel的版本,不过我刚刚卸载重装了一下,还是不行,我卸载重启,再重装试试
在intel的机子上也试了下,是3.11.0的版本,应该是最后一个支持x64芯片的版本,也是提示一样的问题
Image

卸载,然后重启重装了还是一样,Windows的台式机装了4.0.0-beta04也是正常的,就两台Mac笔记本有问题

和网络应该没关系,换了手机热点也是一样

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
N 一般优先级
Projects
None yet
Development

No branches or pull requests

2 participants