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.IllegalArgumentException: viewOffset must be non-negative, but was -1 #802

Closed
ThinBuffalo opened this issue Aug 23, 2024 · 0 comments
Labels
M 重要优先级 s: player 子系统: 视频播放器 t: bug 类型: bug
Milestone

Comments

@ThinBuffalo
Copy link

问题描述

在播放GIRLS BAND CRY第13集时,立即出现如下错误。错误在切换源后消除。应开发者要求,特此上报。

4DA00B0B70034F6EF1D7B4219EE16B49

复现步骤

No response

Ani 版本号

3.8.0-beta01

操作系统

Windows

应用日志

024-08-23 12:30:06,183 [INFO ] app.ui.subject.episode.video.PlayerLauncher: Got new video source: null, updating playerState
2024-08-23 12:30:06,183 [INFO ] app.videoplayer.ui.VlcjVideoPlayerState: setVideoSource: Cleaning up player since source is null
2024-08-23 12:30:06,185 [INFO ] app.tools.torrent.engines.AnitorrentEngine: Loaded libraries for AnitorrentEngine
2024-08-23 12:30:06,186 [INFO ] app.tools.torrent.engines.AnitorrentEngine: Loaded libraries for AnitorrentEngine
2024-08-23 12:30:06,202 [INFO ] app.torrent.anitorrent.AnitorrentTorrentDownloader: HTTP torrent file 'https://mikanime.tv/Download/20240717/ec809a3d681c2dda1bc1ae8feb84c4b8077896b2.torrent' found in cache: D:\Users\luozi\Videos\anitorrent\torrentFiles\669514600.txt, length=48667
2024-08-23 12:30:06,241 [INFO ] app.ui.subject.episode.video.PlayerLauncher: Got new video source: TorrentVideoSource(uri=torrent://7b2264617461223a7b2274797065223a..., episodeMetadata=EpisodeMetadata(title=摇滚乐永不停息, ep=13, sort=13)), updating playerState
2024-08-23 12:30:06,251 [INFO ] app.data.source.media.resolver.TorrentVideoSource: TorrentVideoSource '摇滚乐永不停息' opening a VideoData
2024-08-23 12:30:06,253 [INFO ] app.tools.torrent.engines.AnitorrentEngine: Loaded libraries for AnitorrentEngine
2024-08-23 12:30:06,255 [INFO ] app.data.source.media.resolver.TorrentVideoSource: TorrentVideoSource '摇滚乐永不停息' waiting for files
2024-08-23 12:30:06,274 [INFO ] app.torrent.anitorrent.AnitorrentTorrentDownloader: Creating a session using torrent file. data length=48667
2024-08-23 12:30:06,309 [INFO ] app.torrent.anitorrent.AnitorrentTorrentDownloader: [3131882465] AnitorrentDownloadSession created, adding 29 trackers
2024-08-23 12:30:06,310 [INFO ] app.torrent.anitorrent.AnitorrentTorrentDownloader: withHandleTaskQueue: executed 0 delayed tasks
2024-08-23 12:30:06,343 [INFO ] app.torrent.anitorrent.session.AnitorrentDownloadSession: [3131882465] onTorrentFinished
2024-08-23 12:30:06,343 [INFO ] app.torrent.anitorrent.session.AnitorrentDownloadSession: [3131882465] reloadFiles
2024-08-23 12:30:06,343 [INFO ] app.torrent.anitorrent.session.AnitorrentDownloadSession: initializeTorrentInfo
2024-08-23 12:30:06,345 [INFO ] app.torrent.anitorrent.session.AnitorrentDownloadSession: [3131882465] File '[Nekomoe kissaten][GIRLS BAND CRY][01-13][1080p][JPSC]\[Nekomoe kissaten][GIRLS BAND CRY][01][1080p][JPSC].mp4' piece initialized, 192 pieces, index range: 0..191, offset range: Piece(0..4194303)..Piece(801112064..805306367)
2024-08-23 12:30:06,346 [INFO ] app.torrent.anitorrent.session.AnitorrentDownloadSession: [3131882465] File '[Nekomoe kissaten][GIRLS BAND CRY][01-13][1080p][JPSC]\[Nekomoe kissaten][GIRLS BAND CRY][02][1080p][JPSC].mp4' piece initialized, 177 pieces, index range: 191..367, offset range: Piece(801112064..805306367)..Piece(1539309568..1543503871)
2024-08-23 12:30:06,347 [INFO ] app.torrent.anitorrent.session.AnitorrentDownloadSession: [3131882465] File '[Nekomoe kissaten][GIRLS BAND CRY][01-13][1080p][JPSC]\[Nekomoe kissaten][GIRLS BAND CRY][03][1080p][JPSC].mp4' piece initialized, 191 pieces, index range: 367..557, offset range: Piece(1539309568..1543503871)..Piece(2336227328..2340421631)
2024-08-23 12:30:06,348 [INFO ] app.torrent.anitorrent.session.AnitorrentDownloadSession: [3131882465] File '[Nekomoe kissaten][GIRLS BAND CRY][01-13][1080p][JPSC]\[Nekomoe kissaten][GIRLS BAND CRY][04][1080p][JPSC].mp4' piece initialized, 144 pieces, index range: 557..700, offset range: Piece(2336227328..2340421631)..Piece(2936012800..2940207103)
2024-08-23 12:30:06,349 [INFO ] app.torrent.anitorrent.session.AnitorrentDownloadSession: [3131882465] File '[Nekomoe kissaten][GIRLS BAND CRY][01-13][1080p][JPSC]\[Nekomoe kissaten][GIRLS BAND CRY][05][1080p][JPSC].mp4' piece initialized, 131 pieces, index range: 700..830, offset range: Piece(2936012800..2940207103)..Piece(3481272320..3485466623)
2024-08-23 12:30:06,349 [INFO ] app.torrent.anitorrent.session.AnitorrentDownloadSession: [3131882465] File '[Nekomoe kissaten][GIRLS BAND CRY][01-13][1080p][JPSC]\[Nekomoe kissaten][GIRLS BAND CRY][06][1080p][JPSC].mp4' piece initialized, 174 pieces, index range: 830..1003, offset range: Piece(3481272320..3485466623)..Piece(4206886912..4211081215)
2024-08-23 12:30:06,350 [INFO ] app.torrent.anitorrent.session.AnitorrentDownloadSession: [3131882465] File '[Nekomoe kissaten][GIRLS BAND CRY][01-13][1080p][JPSC]\[Nekomoe kissaten][GIRLS BAND CRY][07][1080p][JPSC].mp4' piece initialized, 187 pieces, index range: 1003..1189, offset range: Piece(4206886912..4211081215)..Piece(4987027456..4991221759)
2024-08-23 12:30:06,351 [INFO ] app.torrent.anitorrent.session.AnitorrentDownloadSession: [3131882465] File '[Nekomoe kissaten][GIRLS BAND CRY][01-13][1080p][JPSC]\[Nekomoe kissaten][GIRLS BAND CRY][08][1080p][JPSC].mp4' piece initialized, 180 pieces, index range: 1189..1368, offset range: Piece(4987027456..4991221759)..Piece(5737807872..5742002175)
2024-08-23 12:30:06,352 [INFO ] app.torrent.anitorrent.session.AnitorrentDownloadSession: [3131882465] File '[Nekomoe kissaten][GIRLS BAND CRY][01-13][1080p][JPSC]\[Nekomoe kissaten][GIRLS BAND CRY][09][1080p][JPSC].mp4' piece initialized, 162 pieces, index range: 1368..1529, offset range: Piece(5737807872..5742002175)..Piece(6413090816..6417285119)
2024-08-23 12:30:06,353 [INFO ] app.torrent.anitorrent.session.AnitorrentDownloadSession: [3131882465] File '[Nekomoe kissaten][GIRLS BAND CRY][01-13][1080p][JPSC]\[Nekomoe kissaten][GIRLS BAND CRY][10][1080p][JPSC].mp4' piece initialized, 173 pieces, index range: 1529..1701, offset range: Piece(6413090816..6417285119)..Piece(7134511104..7138705407)
2024-08-23 12:30:06,354 [INFO ] app.torrent.anitorrent.session.AnitorrentDownloadSession: [3131882465] File '[Nekomoe kissaten][GIRLS BAND CRY][01-13][1080p][JPSC]\[Nekomoe kissaten][GIRLS BAND CRY][11][1080p][JPSC].mp4' piece initialized, 207 pieces, index range: 1701..1907, offset range: Piece(7134511104..7138705407)..Piece(7998537728..8002732031)
2024-08-23 12:30:06,355 [INFO ] app.torrent.anitorrent.session.AnitorrentDownloadSession: [3131882465] File '[Nekomoe kissaten][GIRLS BAND CRY][01-13][1080p][JPSC]\[Nekomoe kissaten][GIRLS BAND CRY][12][1080p][JPSC].mp4' piece initialized, 160 pieces, index range: 1907..2066, offset range: Piece(7998537728..8002732031)..Piece(8665432064..8669626367)
2024-08-23 12:30:06,357 [INFO ] app.torrent.anitorrent.session.AnitorrentDownloadSession: [3131882465] File '[Nekomoe kissaten][GIRLS BAND CRY][01-13][1080p][JPSC]\[Nekomoe kissaten][GIRLS BAND CRY][13][1080p][JPSC].mp4' piece initialized, 183 pieces, index range: 2066..2248, offset range: Piece(8665432064..8669626367)..Piece(9428795392..9432532749)
2024-08-23 12:30:06,359 [INFO ] app.torrent.anitorrent.session.AnitorrentDownloadSession: [3131882465] Got torrent info: TorrentInfo(name=[Nekomoe kissaten][GIRLS BAND CRY][01-13][1080p][JPSC], numPieces=2249, entries.size=13)
2024-08-23 12:30:06,359 [INFO ] app.torrent.anitorrent.session.AnitorrentDownloadSession: [3131882465] onTorrentChecked
2024-08-23 12:30:06,366 [INFO ] app.torrent.anitorrent.session.AnitorrentDownloadSession: [3131882465] saving resume data to: D:\Users\luozi\Videos\anitorrent\pieces\1939656118\fastresume
2024-08-23 12:30:06,367 [INFO ] app.data.source.media.resolver.TorrentVideoSource: TorrentVideoSource selected file: [Nekomoe kissaten][GIRLS BAND CRY][01-13][1080p][JPSC]\[Nekomoe kissaten][GIRLS BAND CRY][13][1080p][JPSC].mp4
2024-08-23 12:30:06,367 [INFO ] app.torrent.anitorrent.session.AnitorrentDownloadSession.AnitorrentEntry: [3131882465] Set file priority to HIGH: [Nekomoe kissaten][GIRLS BAND CRY][01-13][1080p][JPSC]\[Nekomoe kissaten][GIRLS BAND CRY][13][1080p][JPSC].mp4
2024-08-23 12:30:06,372 [DEBUG] app.torrent.anitorrent.session.AnitorrentDownloadSession: [3131882465][TorrentDownloadControl] Prioritizing pieces: [2066, 2067, 2068, 2069, 2070, 2071, 2072, 2073, 2074, 2075, 2076, 2077, 2078, 2079, 2080, 2081, 2082, 2083, 2084, 2085, 2086, 2087, 2088, 2089, 2090, 2091, 2092, 2093, 2094, 2095, 2096, 2097, 2098, 2099, 2100, 2101, 2102, 2103, 2104, 2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114, 2115, 2116, 2117, 2118, 2119, 2120, 2121, 2122, 2123, 2124, 2125, 2126, 2127, 2128, 2129, 2130, 2131, 2132, 2133, 2134, 2135, 2136, 2137, 2138, 2139, 2140, 2141, 2142, 2143, 2144, 2145, 2146, 2147, 2148, 2149, 2150, 2151, 2152, 2153, 2154, 2155, 2156, 2157, 2158, 2159, 2160, 2161, 2162, 2163, 2164, 2165, 2166, 2167, 2168, 2169, 2170, 2171, 2172, 2173, 2174, 2175, 2176, 2177, 2178, 2179, 2180, 2181, 2182, 2183, 2184, 2185, 2186, 2187, 2188, 2189, 2190, 2191, 2192, 2193, 2194, 2195, 2196, 2197, 2198, 2199, 2200, 2201, 2202, 2203, 2204, 2205, 2206, 2207, 2208, 2209, 2210, 2211, 2212, 2213, 2214, 2215, 2216, 2217, 2218, 2219, 2220, 2221, 2222, 2223, 2224, 2225, 2226, 2227, 2228, 2229, 2230, 2231, 2232, 2233, 2234, 2235, 2236, 2237, 2238, 2239, 2240, 2241, 2242, 2243, 2244, 2245, 2246, 2247, 2248]
2024-08-23 12:30:06,395 [ERROR] app.videoplayer.ui.VlcjVideoPlayerState: Failed to open VideoSource: TorrentVideoSource(uri=torrent://7b2264617461223a7b2274797065223a..., episodeMetadata=EpisodeMetadata(title=摇滚乐永不停息, ep=13, sort=13))
java.lang.IllegalArgumentException: viewOffset must be non-negative, but was -1
	at me.him188.ani.app.torrent.io.TorrentInput.findPieceIndex$shared(TorrentInput.jvm.kt:195)
	at me.him188.ani.app.torrent.io.TorrentInput.<init>(TorrentInput.jvm.kt:76)
	at me.him188.ani.app.torrent.io.TorrentInput_jvmKt.TorrentInput-5A5lono(TorrentInput.jvm.kt:27)
	at me.him188.ani.app.torrent.io.TorrentInput_jvmKt.TorrentInput-5A5lono$default(TorrentInput.jvm.kt:17)
	at me.him188.ani.app.torrent.anitorrent.session.AnitorrentDownloadSession$AnitorrentEntry.createInput$lambda$2(AnitorrentDownloadSession.kt:150)
	at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:48)
	at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1)
	at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:40)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
	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)
2024-08-23 12:30:06,396 [ERROR] app.ui.subject.episode.video.PlayerLauncher: Failed to set video source
java.lang.IllegalArgumentException: viewOffset must be non-negative, but was -1
	at me.him188.ani.app.torrent.io.TorrentInput.findPieceIndex$shared(TorrentInput.jvm.kt:195)
	at me.him188.ani.app.torrent.io.TorrentInput.<init>(TorrentInput.jvm.kt:76)
	at me.him188.ani.app.torrent.io.TorrentInput_jvmKt.TorrentInput-5A5lono(TorrentInput.jvm.kt:27)
	at me.him188.ani.app.torrent.io.TorrentInput_jvmKt.TorrentInput-5A5lono$default(TorrentInput.jvm.kt:17)
	at me.him188.ani.app.torrent.anitorrent.session.AnitorrentDownloadSession$AnitorrentEntry.createInput$lambda$2(AnitorrentDownloadSession.kt:150)
	at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:48)
	at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1)
	at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:40)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
	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)
@ThinBuffalo ThinBuffalo added N 一般优先级 t: bug 类型: bug labels Aug 23, 2024
@Him188 Him188 changed the title 一个未知错误情况 java.lang.IllegalArgumentException: viewOffset must be non-negative, but was -1 Aug 23, 2024
@Him188 Him188 added M 重要优先级 s: player 子系统: 视频播放器 and removed N 一般优先级 labels Aug 23, 2024
@Him188 Him188 added this to the 3.8.0 milestone Aug 23, 2024
Him188 added a commit that referenced this issue Aug 24, 2024
@Him188 Him188 closed this as completed in 24ae109 Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
M 重要优先级 s: player 子系统: 视频播放器 t: bug 类型: bug
Projects
None yet
Development

No branches or pull requests

2 participants