Crash split huffYUV AVI 2.7 nightly "Fatal error:Chunk is at X but base is at X"

Started by nicholasserra, January 08, 2018, 12:21:44 AM

Previous topic - Next topic

nicholasserra

Hello. Reporting a crash when trying to split some HuffYUV AVI files into separate pieces and save out. Did a simple "B" only select to capture start to a point in the file.

This is on Windows 7 64 bit, nightly build pulled today. Log attached after save clicked. Both outputs set to COPY, AVI muxer. My source file is 40 gigs so I don't think anyone wants me to provide a sample hah.

Quote
[HandleAction] 00:15:00-445 ************ SAVE_VIDEO **************
Paint event
[draw] 00:15:00-508 D3D : Draw!
[refresh] 00:15:00-508 Refresh**
Paint event
[draw] 00:15:02-737 D3D : Draw!
[refresh] 00:15:02-737 Refresh**
[admSaver] 00:15:03-399 [Save] Encoder index=0
[save] 00:15:03-399 Audio starting time 00:00:00,000
[save] 00:15:03-399 [A_Save] Saving..
[checkCutsAreOnIntra] 00:15:03-400 Checking cuts start on keyframe..
[switchToSegment] 00:15:03-400 Trying to switch to seg 0 with startTime in reference pic= 0 ms
[seektoTime] 00:15:03-400 Seeking to a keyframe at 0 ms
[seektoTime] 00:15:03-400 Seeking to frame 0 at 0 ms
[seektoTime] 00:15:03-400 Seek to time without decoding ok
[switchToSegment] 00:15:03-400 Switched ok to segment 0 (dontdecode=1)
[checkCutsAreOnIntra] 00:15:03-401 seg 0: ref 0, refDTS=0
[checkCutsAreOnIntra] 00:15:03-401 seg 0: ref 0, imgDTS=0
[checkCutsAreOnIntra] 00:15:03-401 Ignoring first seg (unreliable DTS)
[checkCutsAreOnIntra] 00:15:03-401 Segment 0 ok
[setupVideo] 00:15:03-401 Simple copy mode engaged
[ADM_videoStreamCopy] 00:15:03-402 Creating copy video stream, start time=0.00 s
[convertLinearTimeToSeg] 00:15:03-402 Frame time=0, taking first segment
[convertLinearTimeToSeg] 00:15:03-402 Frame time=0, taking first segment
[ADM_videoStreamCopy] 00:15:03-402 PTS/DTS delta=0 us
[convertLinearTimeToSeg] 00:15:03-402 Frame time=0, taking first segment
[ADM_videoStreamCopy] 00:15:03-402  Fixating start time by 0
[ADM_videoStreamCopy] 00:15:03-403  Starting DTS=0, PTS=0 ms
[goToTime] 00:15:03-403  go to time 0.00 secs
[convertLinearTimeToSeg] 00:15:03-403 Frame time=0, taking first segment
[goToTime] 00:15:03-403 => seg 0, rel time 0.00 secs
[setupAudio] 00:15:03-403 Setting up 1 audio track(s)
[setupAudio] 00:15:03-403 [audioTrack 0] Creating audio encoding stream, starttime 00:00:00,000(copy)
[audioCreateCopyStream] 00:15:03-404 Creating audio stream copy with compensation : startTime=00:00:00,000
[audioCreateCopyStream] 00:15:03-404 and shift =00:00:00,000
[ADM_audioStreamCopy] 00:15:03-404 Creating copy stream, startTime=00:00:00,000, shift=0
[goToTime] 00:15:03-404  go to time 0.00 secs
[convertLinearTimeToSeg] 00:15:03-404 Frame time=0, taking first segment
[goToTime] 00:15:03-404 => seg 0, rel time 0.00 secs
[ADM_audioStreamCopyPerfect] 00:15:03-405 Creating Perfect copy stream, startTime=00:00:00,000,  shift=0
[ODML]write dummy chunk at file position 412 with data size 16384
[ODML] videoTrack : using ODML placeholder of size 16384 bytes at pos 0x19c
[ODML/Audio] Encoding 0x1
[ODML]write dummy chunk at file position 16912 with data size 16384
[setAudioStreamInfo] 00:15:03-791 [ODML] Audio track 0, using ODML placeholder of size 16384 bytes, odmltrack=1, pos=0x4210
[ODML]write dummy chunk at file position 33304 with data size 260
[saveBegin] 00:15:03-791 SuperIndex position so far 0 : 412
[saveBegin] 00:15:03-791 SuperIndex position so far 1 : 16912
[saveBegin] 00:15:03-791 SuperIndex position so far 2 : 0
[AviMuxer] Saving
[save] 00:15:03-791 [AviMuxer]avg fps=29970
[initUI] 00:15:03-791 Muxer, creating UI, video duration is 00:45:44,742
Paint event
[draw] 00:15:03-802 D3D : Draw!
[refresh] 00:15:03-802 Refresh**
[qtRegisterDialog] 00:15:03-804 reparenting widget encodingDialog
[prefill] 00:15:03-808 Min 1st packet time :00:00:00,000
[ODML]write dummy chunk at file position 276380 with data size 131072
[ODML]write dummy chunk at file position 412268 with data size 131072
Paint event
[draw] 00:15:03-844 D3D : Draw!
[refresh] 00:15:03-844 Refresh**
Percent:0
Percent:4
Percent:8
Percent:8
Percent:9
Percent:9
Percent:9
Percent:10
Percent:10
Percent:10
Percent:11
Percent:11
Percent:12
Percent:12
Percent:13
Percent:13
Percent:14
Percent:14
Percent:14
Percent:15
Percent:15
Percent:15
Percent:16
Percent:16
Percent:17
Percent:17
[saveVideoFrame] 00:15:30-603 Switching to type2 index
[aviIndexOdml] 00:15:30-603 Creating Odml file from avi/type1...Â
[convertIndex] 00:15:30-604 Index for track 1 is full
Current pos=543308, next chunk at 543348, filling with 40
[ODML]write dummy chunk at file position 4292165856 with data size 131072
Track 0, found 14669 entries
Track 1, found 14213 entries
Track 2, found 0 entries
Track 3, found 0 entries
Track 4, found 0 entries
Track 5, found 0 entries
[startNewRiff] 00:15:30-625 Starting new riff at position 4292296936 (0xffd740e8)
[startNewRiff] 00:15:30-625 Dealing with legacy index
[prepareLegacyIndex] 00:15:30-625 Preparing legacy index of size 28882
[writeLegacyIndex] 00:15:30-631 Writting legacy index at ffd740e8
[writeRegularIndex] 00:15:30-634 Writing regular index for track 0, at position 0x4379c
[serialize] 00:15:30-634 Fatal error : Chunk is at 33584 but base is at 18435440922374690775
[abortExitHandler] 00:15:30-634 Abnormal exit handler, trying to clean up
[admDxva2_exitCleanup] 00:15:30-634 Dxva2 cleanup begin
[cleanup] 00:15:30-634 This binary has no DXVA2 support
[admDxva2_exitCleanup] 00:15:30-635 Dxva2 cleanup end


nicholasserra

I've done some retries at different points with other builds and had it working once, but the resulting file had audio issues when imported into Premiere 2018.

eumagga0x2a

Please test if the win64 nightly from 2018-01-01 doesn't crash in the AVI muxer when following exactly the same steps which result in a crash with the nightly from 2018-01-07.

(Alternatively you could use the MKV muxer)


eumagga0x2a

Thank you, it means that the issue is not a regression from recent pretty pervasive changes which all happened after the 2018-01-01.

Jan Gruuthuse

not certain what is going on?
Avi and multiple tracks?
[ODML]write dummy chunk at file position 4292165856 with data size 131072
Track 0, found 14669 entries
Track 1, found 14213 entries
Track 2, found 0 entries
Track 3, found 0 entries
Track 4, found 0 entries
Track 5, found 0 entries

Can't be correct (max 2 audio tracks) ???