View Issue Details

IDProjectCategoryView StatusLast Update
0000135JVT JM H.264/AVC reference softwareencoderpublic2011-05-21 11:06
ReporterMathias Wien Assigned ToAlexis Michael Tourapis  
PrioritynormalSeveritycrashReproducibilitysometimes
Status resolvedResolutionfixed 
Product VersionJM 14.2 
Fixed in VersionJM 15.0 
Summary0000135: Encoder crashes in computeBiPredSAD2(), observed with IBBP coding
DescriptionHi colleagues,

I have observed an encoder crash while using a IBBP configuration. The crash seems to happen in computeBiPredSAD2() while coding a B frame. Unfortunately only after 3+h of encoding.

I reproduced the crash with Alexis' fix for Bug 134 applied.

The call as well as the cfg-file are provided below.

JM 14.2, compiled with gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7).

Encoder output:
<snip>
------------------------------- JM 14.2 (FRExt) -------------------------------
 Input YUV file : orig/WalkingCouple_1024x576_25.yuv
 Output H.264 bitstream : str/WalkingCouple_1024x576_25_QPAD137.264
 Output YUV file : tmp/WalkingCouple_1024x576_25_QPAD137.yuv
 YUV Format : YUV 4:2:0
 Frames to be encoded I-P/B : 250/498
 Freq. for encoded bitstream : 6
 PicInterlace / MbInterlace : 0/0
 Transform8x8Mode : 1
 ME Metric for Refinement Level 0 : SAD
 ME Metric for Refinement Level 1 : Hadamard SAD
 ME Metric for Refinement Level 2 : Hadamard SAD
 Mode Decision Metric : Hadamard SAD
 Motion Estimation for components : Y
 Image format : 1024x576 (1024x576)
 Error robustness : Off
 Search range : 64
 Total number of references : 4
 References for P slices : 4
 List0 references for B slices : 2
 List1 references for B slices : 1
 Sequence type : I-B-B-P-B-B-P (QP: I 37, P 38, B 39)
 Entropy coding method : CABAC
 Profile/Level IDC : (100,40)
 Motion Estimation Scheme : EPZS
 EPZS Pattern : Extended Diamond
 EPZS Dual Pattern : Extended Diamond
 EPZS Fixed Predictors : All P + B
 EPZS Temporal Predictors : Enabled
 EPZS Spatial Predictors : Enabled
 EPZS Thresholds (16x16) : (256 0 768)
 EPZS Subpel ME : Enabled
 EPZS Subpel ME BiPred : Enabled
 Search range restrictions : none
 RD-optimized mode decision : used
 Data Partitioning Mode : 1 partition
 Output File Format : H.264/AVC Annex B Byte Stream Format
-------------------------------------------------------------------------------
  Frame Bit/pic QP SnrY SnrU SnrV Time(ms) MET(ms) Frm/Fld Ref
-------------------------------------------------------------------------------
0000(NVB) 336
0000(IDR) 95928 37 33.218 37.653 38.265 57324 0 FRM 1
0004(P) 12448 39 32.829 37.630 38.265 63168 5300 FRM 1
0001(B) 1264 39 32.522 37.533 38.214 274879 57047 FRM 0
0002(B) 1296 39 32.552 37.572 38.267 265074 51181 FRM 0
0008(P) 15816 38 32.690 37.658 38.344 69597 11407 FRM 1
0005(B) 960 39 32.425 37.628 38.307 256772 59933 FRM 0
0006(B) 1296 39 32.351 37.628 38.353 256139 54008 FRM 0
0012(P) 21176 38 32.696 37.671 38.464 83421 17406 FRM 1
0009(B) 1136 39 32.126 37.676 38.455 269103 61820 FRM 0
0010(B) 2256 39 32.030 37.673 38.432 271932 57739 FRM 0
0016(P) 29560 38 32.645 37.740 38.595 295592 97822 FRM 1
0013(B) 2632 39 31.778 37.672 38.506 277651 67512 FRM 0
0014(B) 4096 39 31.675 37.631 38.570 286226 68629 FRM 0
0020(P) 34688 38 32.761 37.690 38.752 306154 101449 FRM 1
0017(B) 3768 39 31.549 37.697 38.587 281768 71504 FRM 0
0018(B) 5288 39 31.527 37.737 38.629 269692 71001 FRM 0
0024(P) 33952 38 32.671 37.748 38.775 304748 103400 FRM 1
0021(B) 4016 39 31.710 37.682 38.769 273822 70867 FRM 0
0022(B) 5208 42 31.615 37.742 38.801 276565 71671 FRM 0
0028(P) 40448 37 32.621 37.686 38.630 314197 105845 FRM 1
0025(B) 5400 42 31.551 37.693 38.665 280201 72230 FRM 0
0026(B) 7168 42 31.403 37.682 38.660 279584 71684 FRM 0
0032(P) 42224 38 32.649 37.863 38.591 304933 106790 FRM 1
0029(B) 6112 41 31.586 37.738 38.557 276405 72771 FRM 0
0030(B) 7264 42 31.212 37.711 38.545 286802 74152 FRM 0
0036(P) 41392 38 32.748 37.938 38.690 330685 111062 FRM 1
0033(B) 5432 39 31.440 37.826 38.562 289952 74369 FRM 0
0034(B) 7432 41 31.403 37.890 38.631 292304 75030 FRM 0
0040(P) 40648 38 32.819 37.928 38.761 314991 105802 FRM 1
0037(B) 6120 41 31.481 37.912 38.611 291380 75233 FRM 0
0038(B) 7456 40 31.272 37.891 38.627 289933 75071 FRM 0
0044(P) 44832 38 33.080 38.031 38.887 337170 106545 FRM 1
0041(B) 5360 41 31.576 37.872 38.733 277254 66054 FRM 0
0042(B) 7688 42 31.395 37.953 38.747 285980 73726 FRM 0
0048(P) 51264 38 32.885 37.958 38.789 318931 108910 FRM 1
0045(B) 6608 42 31.469 37.937 38.726 268365 65389 FRM 0
0046(B) 9064 42 31.154 37.835 38.674 269913 65094 FRM 0
0052(P) 50184 38 32.803 37.817 38.616 302471 104738 FRM 1
0049(B) 7608 40 31.260 37.873 38.620 283425 66735 FRM 0
0050(B) 9072 41 31.173 37.883 38.637 270855 65239 FRM 0
0056(P) 48912 38 32.620 37.688 38.611 322017 109441 FRM 1
0053(B) 6720 39 31.262 37.778 38.604 287821 72985 FRM 0
0054(B) 8840 42 31.039 37.716 38.520 290613 74821 FRM 0
0060(P) 52120 38 32.529 37.633 38.603 323585 107088 FRM 1
0057(B) 8072 42 31.021 37.601 38.600 297966 75027 FRM 0
Segmentation fault (core dumped)
</snip>

From the core file:
#0 0x080b32cd in computeBiPredSAD2 ()
0000001 0x080bc7a9 in EPZSBiPredBlockMotionSearch ()
0000002 0x080dbcc3 in BiPredBlockMotionSearch ()
0000003 0x080deca3 in BlockMotionSearch ()
0000004 0x080df0aa in PartitionMotionSearch ()
0000005 0x080a7ef4 in encode_one_macroblock_high ()
0000006 0x081088e7 in trellis_mp ()
0000007 0x0811af0c in encode_one_slice ()
0000008 0x080772a4 in code_a_plane ()
0000009 0x08077989 in code_a_picture ()
0000010 0x08078c99 in frame_picture ()
0000011 0x08078efc in rdPictureCoding ()
0000012 0x0807c4ea in encode_one_frame ()
0000013 0x08072c19 in encode_enhancement_layer ()
0000014 0x08088c43 in main ()
Additional InformationEncoder command line call:
./bin/lencod.exe -d cfg/enc_hp_IBBP.cfg -p FrameRate=25.0 -p FramesToBeEncoded=250 -p SourceHeight=576 -p SourceWidth=1024 -p InputFile=orig/WalkingCouple_1024x576_25.yuv -p QPISlice=37 -p QPPSlice=38 -p QPBSlice=39 -p OutputFile=str/WalkingCouple_1024x576_25_QPAD137.264 -p ReconFile=tmp/WalkingCouple_1024x576_25_QPAD137.yuv

Sequence: http://www.ient.rwth-aachen.de/~wien/WalkingCouple_1024x576_25.zip
TagsNo tags attached.

Relationships

parent of 0000150 resolvedAlexis Michael Tourapis Further observations on the error 0000135 

Activities

2008-09-15 16:55

 

enc_hp_IBBP.cfg (42,292 bytes)

Alexis Michael Tourapis

2008-09-15 18:57

developer   ~0000237

14.2dev contains lots of fixes for bipred me that probably correct the problem you see (use of the wrong memory access function). Some other bugs seem to though still exist which need to be fixed.

Mathias Wien

2008-09-16 08:20

reporter   ~0000238

if you want and drop it to me, I'd try it out.

Karsten Suehring

2011-05-21 11:06

administrator   ~0000485

It seems this was fixed by the changes in JM 15.0. Re-testing with JM 18.0 didn't cause a crash anymore.

Issue History

Date Modified Username Field Change
2008-09-15 16:55 Mathias Wien New Issue
2008-09-15 16:55 Mathias Wien File Added: enc_hp_IBBP.cfg
2008-09-15 18:57 Alexis Michael Tourapis Note Added: 0000237
2008-09-16 08:20 Mathias Wien Note Added: 0000238
2008-12-15 16:46 Karsten Suehring Status new => assigned
2008-12-15 16:46 Karsten Suehring Assigned To => Alexis Michael Tourapis
2008-12-16 22:36 Karsten Suehring Relationship added parent of 0000150
2011-05-21 11:06 Karsten Suehring Note Added: 0000485
2011-05-21 11:06 Karsten Suehring Status assigned => resolved
2011-05-21 11:06 Karsten Suehring Fixed in Version => JM 15.0
2011-05-21 11:06 Karsten Suehring Resolution open => fixed