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

BT onPieceFinishedImpl ConcurrentModificationException #1500

Open
Him188 opened this issue Jan 14, 2025 · 0 comments
Open

BT onPieceFinishedImpl ConcurrentModificationException #1500

Him188 opened this issue Jan 14, 2025 · 0 comments
Labels
M 重要优先级 s: torrent 子系统: BT

Comments

@Him188
Copy link
Member

Him188 commented Jan 14, 2025

问题描述

这很可能就是 #1398#1263 的原因

复现步骤

No response

Ani 版本号

430b1

操作系统

macOS (M 系列芯片)

应用日志

2025-01-14 23:08:32,237 [INFO ] AnitorrentTorrentDownloader: Found existing session
2025-01-14 23:08:32,237 [INFO ] AnitorrentTorrentDownloader: withHandleTaskQueue: executed 0 delayed tasks
2025-01-14 23:08:32,237 [INFO ] DirectoryMediaCacheStorage: Cache resumed: TorrentMediaCache(subjectName='噗妮露是可爱史莱姆', episodeSort=09, episodeName='来组乐队吧!', origin.mediaSourceId='mikan')
2025-01-14 23:08:32,237 [INFO ] TorrentMediaCacheEngine: local-file-system: waiting for files
2025-01-14 23:08:32,238 [INFO ] DirectoryMediaCacheStorage: Cache resumed: TorrentMediaCache(subjectName='噗妮露是可爱史莱姆', episodeSort=11, episodeName='舀起一匙圣诞节', origin.mediaSourceId='mikan')
2025-01-14 23:08:32,248 [INFO ] TorrentMediaCacheEngine: local-file-system: Selected file to download: TorrentFileEntryImpl(index=9, length=390916356, relativePath='[LKSUB][Puniru wa Kawaii Slime][01-12][1080P]/[LKSUB][Puniru wa Kawaii Slime][10][1080P].mp4')
2025-01-14 23:08:32,248 [INFO ] AnitorrentDownloadSession: [5359729] saving resume data to: /Users/him188/Library/Caches/me.Him188.Ani-debug/torrent-data2/anitorrent/pieces/957363078/fastresume
2025-01-14 23:08:32,248 [INFO ] TorrentMediaCacheEngine: Resuming file: TorrentFileHandle(index=9, filePath='[LKSUB][Puniru wa Kawaii Slime][10][1080P].mp4')
2025-01-14 23:08:32,248 [INFO ] AnitorrentEntry: [5359729] Set file priority to NORMAL: [LKSUB][Puniru wa Kawaii Slime][01-12][1080P]/[LKSUB][Puniru wa Kawaii Slime][10][1080P].mp4
2025-01-14 23:08:32,248 [INFO ] DirectoryMediaCacheStorage: Cache resumed: TorrentMediaCache(subjectName='噗妮露是可爱史莱姆', episodeSort=10, episodeName='圣诞噗妮露快乐!', origin.mediaSourceId='mikan')
2025-01-14 23:08:32,249 [INFO ] TorrentMediaCacheEngine: local-file-system: Selected file to download: TorrentFileEntryImpl(index=7, length=416977128, relativePath='[LKSUB][Puniru wa Kawaii Slime][01-12][1080P]/[LKSUB][Puniru wa Kawaii Slime][08][1080P].mp4')
2025-01-14 23:08:32,249 [INFO ] TorrentMediaCacheEngine: Resuming file: TorrentFileHandle(index=7, filePath='[LKSUB][Puniru wa Kawaii Slime][08][1080P].mp4')
2025-01-14 23:08:32,250 [INFO ] AnitorrentEntry: [5359729] Set file priority to NORMAL: [LKSUB][Puniru wa Kawaii Slime][01-12][1080P]/[LKSUB][Puniru wa Kawaii Slime][08][1080P].mp4
2025-01-14 23:08:32,250 [INFO ] DirectoryMediaCacheStorage: Cache resumed: TorrentMediaCache(subjectName='噗妮露是可爱史莱姆', episodeSort=08, episodeName='文化祭!全员集合', origin.mediaSourceId='mikan')
2025-01-14 23:08:32,250 [WARN ] ani-root: Uncaught exception in coroutine [me.him188.ani.app.platform.CommonKoinModuleKt$createAppRootCoroutineScope$$inlined$CoroutineExceptionHandler$1@57d9024f, CoroutineId(241), "coroutine#241":StandaloneCoroutine{Cancelling}@63ece987, Dispatchers.IO]
java.util.ConcurrentModificationException
	at java.base/java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1095)
	at java.base/java.util.ArrayList$Itr.next(ArrayList.java:1049)
	at me.him188.ani.app.torrent.anitorrent.session.AnitorrentDownloadSession.onPieceFinishedImpl(AnitorrentDownloadSession.kt:443)
	at me.him188.ani.app.torrent.anitorrent.session.AnitorrentDownloadSession.access$onPieceFinishedImpl(AnitorrentDownloadSession.kt:76)
	at me.him188.ani.app.torrent.anitorrent.session.AnitorrentDownloadSession$onPieceFinished$$inlined$useTorrentInfoOrLaunch$1.invoke(AnitorrentDownloadSession.kt:321)
	at me.him188.ani.app.torrent.anitorrent.session.AnitorrentDownloadSession$onPieceFinished$$inlined$useTorrentInfoOrLaunch$1.invoke(AnitorrentDownloadSession.kt:318)
	at me.him188.ani.app.torrent.anitorrent.DisposableTaskQueue.runAndDispose(DisposableTaskQueue.kt:26)
	at me.him188.ani.app.torrent.anitorrent.session.AnitorrentDownloadSession$taskQueue$1$1.invokeSuspend(AnitorrentDownloadSession.kt:305)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:101)
	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:113)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:589)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:823)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:720)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:707)
2025-01-14 23:08:32,269 [INFO ] AnitorrentTorrentDownloader: Creating a session using torrent file. data length=256255
2025-01-14 23:08:32,269 [INFO ] AnitorrentTorrentDownloader: start_download: including fastResumeFile: /Users/him188/Library/Caches/me.Him188.Ani-debug/torrent-data2/anitorrent/pieces/-125267323/fastresume
2025-01-14 23:08:32,433 [INFO ] AnitorrentTorrentDownloader: [4833657] AnitorrentDownloadSession created, adding 108 trackers
2025-01-14 23:08:32,433 [INFO ] AnitorrentTorrentDownloader: withHandleTaskQueue: executed 0 delayed tasks
2025-01-14 23:08:32,434 [INFO ] TorrentMediaCacheEngine: local-file-system: waiting for files
2025-01-14 23:08:32,436 [INFO ] AnitorrentDownloadSession: [4833657] onTorrentFinished
2025-01-14 23:08:32,438 [INFO ] AnitorrentDownloadSession: [4833657] reloadFiles
2025-01-14 23:08:32,441 [INFO ] AnitorrentDownloadSession: initializeTorrentInfo
2025-01-14 23:08:32,443 [INFO ] AnitorrentDownloadSession: [4833657] File '狼與辛香料 MERCHANT MEETS THE WISE WOLF 22/[TOC] Ookami to Koushinryou - Merchant Meets the Wise Wolf [22][1080P][AVC AAC][CHT][MP4].mp4' piece initialized, 2878 pieces, index range: 0..2877, offset range: Piece(0)..Piece(2877)
2025-01-14 23:08:32,443 [INFO ] AnitorrentDownloadSession: [4833657] Got torrent info: TorrentInfo(name=狼與辛香料 MERCHANT MEETS THE WISE WOLF 22, numPieces=2878, entries.size=1)
2025-01-14 23:08:32,443 [INFO ] AnitorrentDownloadSession: [4833657] onTorrentChecked
2025-01-14 23:08:32,446 [INFO ] TorrentMediaCacheEngine: local-file-system: Selected file to download: TorrentFileEntryImpl(index=0, length=754205874, relativePath='狼與辛香料 MERCHANT MEETS THE WISE WOLF 22/[TOC] Ookami to Koushinryou - Merchant Meets the Wise Wolf [22][1080P][AVC AAC][CHT][MP4].mp4')
2025-01-14 23:08:32,446 [INFO ] TorrentMediaCacheEngine: Resuming file: TorrentFileHandle(index=0, filePath='[TOC] Ookami to Koushinryou - Merchant Meets the Wise Wolf [22][1080P][AVC AAC][CHT][MP4].mp4')
2025-01-14 23:08:32,447 [INFO ] AnitorrentEntry: [4833657] Set file priority to NORMAL: 狼與辛香料 MERCHANT MEETS THE WISE WOLF 22/[TOC] Ookami to Koushinryou - Merchant Meets the Wise Wolf [22][1080P][AVC AAC][CHT][MP4].mp4
2025-01-14 23:08:32,447 [INFO ] DirectoryMediaCacheStorage: Cache resumed: TorrentMediaCache(subjectName='狼与香辛料 行商邂逅贤狼', episodeSort=22, episodeName='教会的教导与父亲的记忆', origin.mediaSourceId='mikan')
2025-01-14 23:08:32,447 [INFO ] AbstractTorrentEngine: Loaded libraries for AnitorrentEngine

app.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
M 重要优先级 s: torrent 子系统: BT
Projects
None yet
Development

No branches or pull requests

1 participant