Opened 5 years ago
Closed 4 years ago
#1117 closed defect (fixed)
VTM9.0 decoder crash when using debug mode
Reported by: | chiaming | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | VTM-9.1 |
Component: | VTM | Version: | VTM-9.0 |
Keywords: | Cc: | ksuehring, XiangLi, fbossen, jvet@… |
Description
When using the following encoding options, even with the bugfix in #1112, decoder will crash in HLSyntaxReader::parseSliceHeader(...) . But release mode has no such issue.
EncoderApp.exe -c ..\cfg\encoder_randomaccess_vtm.cfg -c ..\cfg\per-sequence\RaceHorses.cfg -f 3
And after enabling ENABLE_TRACING, as the following partial trace logs from encoder/decoser side, some flags are unexpectedly parsed and configured. My IDE is Visual Studio 2017.
Partial trace log at encoder side:
=========== Sequence Parameter Set ===========
...
sps_ladf_enabled_flag u(1) : 0
sps_scaling_list_enabled_flag u(1) : 0
sps_scaling_matrix_designated_colour_space_flag u(1) : 1
sps_dep_quant_enabled_flag u(1) : 1
sps_virtual_boundaries_enabled_flag u(1) : 0
sps_general_hrd_parameters_present_flag u(1) : 0
field_seq_flag u(1) : 0
vui_parameters_present_flag u(1) : 0
sps_extension_present_flag u(1) : 0
rbsp_stop_one_bit u(1) : 1
rbsp_alignment_zero_bit u(1) : 0
rbsp_alignment_zero_bit u(1) : 0
rbsp_alignment_zero_bit u(1) : 0
rbsp_alignment_zero_bit u(1) : 0
rbsp_alignment_zero_bit u(1) : 0
...
Partial trace log at decoder side:
=========== Sequence Parameter Set ===========
...
sps_ladf_enabled_flag u(1) : 0
sps_explicit_scaling_list_enabled_flag u(1) : 0
sps_dep_quant_enabled_flag u(1) : 1
sps_virtual_boundaries_enabled_flag u(1) : 1
sps_loop_filter_across_virtual_boundaries_present_flag u(1) : 0
sps_general_hrd_params_present_flag u(1) : 0
field_seq_flag u(1) : 0
vui_parameters_present_flag u(1) : 0
sps_extension_present_flag u(1) : 0
rbsp_stop_one_bit u(1) : 1
rbsp_alignment_zero_bit u(1) : 0
rbsp_alignment_zero_bit u(1) : 0
rbsp_alignment_zero_bit u(1) : 0
rbsp_alignment_zero_bit u(1) : 0
rbsp_alignment_zero_bit u(1) : 0
...
Attachments (1)
Change history (5)
Changed 5 years ago by ksuehring
comment:1 follow-up: ↓ 2 Changed 5 years ago by ksuehring
comment:2 in reply to: ↑ 1 Changed 5 years ago by chiaming
Yes, after applying the provided patch, the crash issue is gone and no mismatch. Thank you.
comment:3 Changed 5 years ago by ksuehring
comment:4 Changed 4 years ago by ksuehring
- Milestone set to VTM-9.1
- Resolution set to fixed
- Status changed from new to closed
The MR was merged
It seems possible that the encoder sets sps_scaling_matrix_for_alternative_colour_space_disabled_flag to 1 based on a config file setting, although it is not present in the bitstream. But this would cause sps_scaling_matrix_designated_colour_space_flag to be written to the bitstream at the encoder side. The decoder would then use the inferred value of 0 for sps_scaling_matrix_for_alternative_colour_space_disabled_flag and subsequently not read sps_scaling_matrix_designated_colour_space_flag.
I'm attaching a patch. Can you check, if it solves your problem?