Windows - Server Crashes on Startup

looks like around 10 AM this morning the server had an issue updating guide database. That ended with a "panic: runtime error: index out of range [2500] with length 2500"

I didn't notice it until around 2 PM at which point I tried to start it again and it crashes every time on startup.

Copied what I assumed to be relevant logs below. Thanks.

2022/11/28 10:02:21.944131 [DVR] Fetching guide data for 126 stations in X-TVE @ 2022-12-06 4:00AM
2022/11/28 10:02:23.295099 [DVR]   indexed 878 airings (126 channels) [0s fetch, 0s index]
2022/11/28 10:02:23.530401 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 1/(1)
2022/11/28 10:02:23.675905 [DVR]   indexed 30 movies (15 channels) [0s fetch, 0s index]
2022/11/28 10:02:23.682133 [DVR]   pruned 110 replaced airings in 0s.
2022/11/28 10:02:23.794513 [DVR] Fetching guide data for 126 stations in X-TVE @ 2022-12-07 4:00AM
2022/11/28 10:02:23.802329 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 1/(1)
2022/11/28 10:02:24.026937 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 1/(1)
2022/11/28 10:02:24.241275 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 1/(1)
2022/11/28 10:02:24.458594 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 1/(1)
2022/11/28 10:02:24.717700 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 1/(1)
2022/11/28 10:02:24.952849 [DVR]   indexed 899 airings (126 channels) [0s fetch, 0s index]
2022/11/28 10:02:25.012869 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 1/(1)
2022/11/28 10:02:25.365745 [DVR]   indexed 40 movies (17 channels) [0s fetch, 0s index]
2022/11/28 10:02:25.367319 [DVR]   pruned 105 replaced airings in 0s.
2022/11/28 10:02:25.731745 [DVR] Fetching guide data for 126 stations in X-TVE @ 2022-12-11 4:00AM
2022/11/28 10:02:26.984720 [DVR]   indexed 916 airings (126 channels) [0s fetch, 0s index]
2022/11/28 10:02:27.418146 [DVR]   indexed 48 movies (22 channels) [0s fetch, 0s index]
2022/11/28 10:02:27.423012 [DVR]   pruned 104 replaced airings in 0s.
2022/11/28 10:02:27.469067 [DVR] Fetching guide data for 126 stations in X-TVE @ 2022-12-12 4:00AM
2022/11/28 10:02:27.624092 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 1/(1)
2022/11/28 10:02:27.825190 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 1/(1)
2022/11/28 10:02:28.029329 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 1/(1)
2022/11/28 10:02:28.259946 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 1/(1)
2022/11/28 10:02:28.405519 [DVR]   indexed 903 airings (126 channels) [0s fetch, 0s index]
2022/11/28 10:02:28.489269 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 1/(1)
2022/11/28 10:02:28.756904 [DVR]   indexed 24 movies (11 channels) [0s fetch, 0s index]
2022/11/28 10:02:28.766971 [DVR]   pruned 112 replaced airings in 0s.
2022/11/28 10:02:28.788671 [DVR] Fetching guide data for 126 stations in X-TVE @ 2022-12-13 4:00AM
2022/11/28 10:02:29.711915 [DVR]   indexed 889 airings (126 channels) [0s fetch, 0s index]
2022/11/28 10:02:30.083297 [DVR]   indexed 34 movies (14 channels) [0s fetch, 0s index]
2022/11/28 10:02:30.088234 [DVR]   pruned 113 replaced airings in 0s.
2022/11/28 10:02:30.109207 [DVR] Fetching guide data for 126 stations in X-TVE @ 2022-12-14 4:00AM
2022/11/28 10:02:31.015506 [DVR]   indexed 900 airings (126 channels) [0s fetch, 0s index]
2022/11/28 10:02:31.224723 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 1/(1)
2022/11/28 10:02:31.395836 [DVR]   indexed 34 movies (15 channels) [0s fetch, 0s index]
2022/11/28 10:02:31.399681 [DVR]   pruned 105 replaced airings in 0s.
2022/11/28 10:02:31.441982 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 1/(1)
2022/11/28 10:02:31.456548 [DBG] Scheduling wake timer for guide data in 23h32m58.5434517s
2022/11/28 10:02:31.456548 [DBG] Scheduling wake timer for scheduled recording in 23h58m30s
2022/11/28 10:02:31.647430 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 1/(1)
2022/11/28 10:10:01.622319 [M3U] Refreshed lineup for newservice with 380 channels
2022/11/28 10:10:01.663100 [DBG] Scheduling wake timer for guide data in 23h19m28.3368993s
2022/11/28 10:10:01.663100 [DBG] Scheduling wake timer for scheduled recording in 23h58m30s
2022/11/28 10:10:07.336614 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:07.448718 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:08.164234 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:08.270687 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:08.394568 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:09.027562 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:09.160093 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:09.284206 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:09.870820 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:10.014855 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:10.149523 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:10.291080 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:10.426267 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:10.842244 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:10.970631 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:11.111524 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:11.248287 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:11.380144 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:11.510411 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:11.884180 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:12.023764 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:12.156957 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:12.296123 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:12.431857 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:12.569968 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:13.017172 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:13.227674 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:13.432462 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:13.642669 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:13.850210 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:14.046913 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:14.247881 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:14.432962 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:14.625513 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:14.811520 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:15.001883 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:15.186451 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:16.584005 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:16.999591 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:17.559835 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:17.711778 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:17.867489 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:18.436639 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:18.611451 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
2022/11/28 10:10:18.779329 [ERR] Guide database failure: merging err: merging failed: error loading chunk: tried to load freq chunk that doesn't exist 60/(5)
panic: runtime error: index out of range [2500] with length 2500
2022/11/28 14:17:09.611893 [SYS] Starting Channels DVR v2022.11.21.0304 (windows-x86_64 pid:3792) in C:\ProgramData\ChannelsDVR\data
2022/11/28 14:17:09.681291 [SYS] Started HTTP Server on 8089
2022/11/28 14:17:10.182519 [HDR] Found 1 devices
2022/11/28 14:17:10.758398 [M3U] Refreshed lineup for newservice with 380 channels
2022/11/28 14:17:11.719368 [DBG] Scheduling wake timer for scheduled recording in 23h58m30s
2022/11/28 14:17:11.728013 [DVR] Recording engine started in C:\DVR
panic: runtime error: index out of range [2500] with length 2500

goroutine 125 [running]:
github.com/RoaringBitmap/roaring.(*bitmapContainer).fillArray(...)
	github.com/RoaringBitmap/[email protected]/bitmapcontainer.go:1008
github.com/RoaringBitmap/roaring.(*arrayContainer).loadData(0xc000a9e960, 0xc0005c31c0)
	github.com/RoaringBitmap/[email protected]/arraycontainer.go:884 +0x131
github.com/RoaringBitmap/roaring.(*bitmapContainer).toArrayContainer(...)
	github.com/RoaringBitmap/[email protected]/bitmapcontainer.go:996
github.com/RoaringBitmap/roaring.(*bitmapContainer).andNotArray(0xc0005c31a0, 0xc00024bc38)
	github.com/RoaringBitmap/[email protected]/bitmapcontainer.go:913 +0x135
github.com/RoaringBitmap/roaring.(*bitmapContainer).andNot(0x2030003?, {0x2a37b58?, 0xc00024bc38?})
	github.com/RoaringBitmap/[email protected]/bitmapcontainer.go:865 +0x46
github.com/RoaringBitmap/roaring.AndNot(0xc0005d8500, 0xc000ff25f0)
	github.com/RoaringBitmap/[email protected]/roaring.go:1212 +0x1a2
github.com/blevesearch/zapx/v15.(*PostingsList).iterator(0xc0005d84b0, 0x1, 0x1, 0x1, 0x10?)
	github.com/blevesearch/zapx/[email protected]/posting.go:220 +0x525
github.com/blevesearch/zapx/v15.persistMergedRest({0xc0005d80a0, 0xa, 0xc0005d41b0?}, {0xc0005d8050, 0xa, 0x8fbfe6?}, {0xc00034c000, 0x14, 0x8ef09f?}, 0xc0005d41b0, ...)
	github.com/blevesearch/zapx/[email protected]/merge.go:338 +0x1ad6
github.com/blevesearch/zapx/v15.MergeToWriter({0xc0005d80a0, 0xa, 0xa}, {0xc0005d8050, 0xa, 0xa}, 0x8ef09f?, 0xc0007c7aa0?, 0x50?)
	github.com/blevesearch/zapx/[email protected]/merge.go:137 +0x293
github.com/blevesearch/zapx/v15.mergeSegmentBases({0xc0005d80a0, 0xa, 0xa}, {0xc0005d8050, 0xa, 0xa}, {0xc0007c7aa0, 0x24}, 0x7ef46ff0?, 0xc000086840, ...)
	github.com/blevesearch/zapx/[email protected]/merge.go:78 +0x25b
github.com/blevesearch/zapx/v15.(*ZapPlugin).Merge(0x29fb260, {0xc000710000, 0xa, 0xc000466750?}, {0xc0005d8050, 0xa, 0xa}, {0xc0007c7aa0, 0x24}, 0xc000086840, ...)
	github.com/blevesearch/zapx/[email protected]/merge.go:53 +0xd5
github.com/blevesearch/bleve/v2/index/scorch.(*Scorch).planMergeAtSnapshot(0xc000509800, {0x2a197a0?, 0xc0000a6058}, 0xc000334e40?, 0xc0003fa300?)
	github.com/blevesearch/bleve/[email protected]/index/scorch/merge.go:322 +0x79a
github.com/blevesearch/bleve/v2/index/scorch.(*Scorch).mergerLoop(0xc000509800)
	github.com/blevesearch/bleve/[email protected]/index/scorch/merge.go:68 +0x265
created by github.com/blevesearch/bleve/v2/index/scorch.(*Scorch).Open
	github.com/blevesearch/bleve/[email protected]/index/scorch/scorch.go:186 +0x145

Your guide data has become corrupted.

Go into c:/programdata/ChannelsDVR/data and delete all the folders that end in .airings and .groups

1 Like

thank you so much that did the trick. any idea how to avoid this in the future?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.