Skip to content

Crash in PlanarSBA bitrate switching

There is a crash in Planar SBA bitrate switching when using the self test vectors.

Reproduce using the scripts:

python3 scripts/runIvasCodec.py -p scripts/config/ci_linux.json -m PlanarSBA_ball_wb_rs -o out_planar_sba

Or directly by resampling scripts/testv/stv3OA48c.wav to 16kHz and running:

IVAS_cod -sba -3 -max_band wb scripts/switchPaths/sw_13k2_512k.bin 16 stv3OA48c_16.wav bit

Result:

==================================================================================================
 IVAS Codec Baseline
 
 Based on EVS Codec (Floating Point) 3GPP TS26.443 Nov 04, 2021,
 Version 12.14.0 / 13.10.0 / 14.6.0 / 15.4.0 / 16.3.0
==================================================================================================


Internal fatal error: Bitstream write size mismatch! Actual bitrate: 14750 vs. Reference bitrate: 13200


In function: write_indices_ivas(), lib_com/bitstream.c:2046

Warning: The maximum number of indices 100 has been exceeded in frame 71! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().

Internal fatal error: Error: Too low bitrate (5800 bps) for ACELP@12k8 in frame 71. Exiting!


In function: config_acelp1(), lib_com/bits_alloc.c:579


Internal fatal error: Indice ID = 1088 with value 65535 exceeds the range of 8 bits (frame 71) !


In function: push_indice(), lib_com/bitstream.c:1043


Internal fatal error: Bitstream write size mismatch! Actual bitrate: 22700 vs. Reference bitrate: 13200


In function: write_indices_ivas(), lib_com/bitstream.c:2046


Internal fatal error: Error: Too low bitrate (2650 bps) for ACELP@12k8 in frame 72. Exiting!


In function: config_acelp1(), lib_com/bits_alloc.c:579


Internal fatal error: Indice ID = 102 with value 65452 exceeds the range of 0 bits (frame 72) !


In function: push_indice(), lib_com/bitstream.c:1043


Internal fatal error: Indice ID = 102 with value 65518 exceeds the range of 7 bits (frame 72) !


In function: push_indice(), lib_com/bitstream.c:1043


Internal fatal error: Bitstream write size mismatch! Actual bitrate: 33350 vs. Reference bitrate: 13200


In function: write_indices_ivas(), lib_com/bitstream.c:2046

Warning: The maximum number of indices 200 has been exceeded in frame 73! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().

Internal fatal error: Error: Too low bitrate (-550 bps) for ACELP@12k8 in frame 73. Exiting!


In function: config_acelp1(), lib_com/bits_alloc.c:579


Internal fatal error: Indice ID = 102 with value 65450 exceeds the range of 0 bits (frame 73) !


In function: push_indice(), lib_com/bitstream.c:1043


Internal fatal error: Indice ID = 102 with value 65518 exceeds the range of 7 bits (frame 73) !


In function: push_indice(), lib_com/bitstream.c:1043


Internal fatal error: Bitstream write size mismatch! Actual bitrate: 43850 vs. Reference bitrate: 13200


In function: write_indices_ivas(), lib_com/bitstream.c:2046


Internal fatal error: Indice ID = 102 with value 58060 exceeds the range of 3 bits (frame 74) !


In function: push_indice(), lib_com/bitstream.c:1043


Internal fatal error: Error: Too high bit-budget for fixed innovation codebook (frame = 74). Exiting! 


In function: acelp_FCB_allocator(), lib_com/bits_alloc.c:441

Warning: The maximum number of indices 250 has been exceeded in frame 74! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().
Warning: The maximum number of indices 350 has been exceeded in frame 74! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().
Warning: The maximum number of indices 450 has been exceeded in frame 74! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().
Warning: The maximum number of indices 550 has been exceeded in frame 74! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().
Warning: The maximum number of indices 650 has been exceeded in frame 74! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().
Warning: The maximum number of indices 750 has been exceeded in frame 74! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().
Warning: The maximum number of indices 850 has been exceeded in frame 74! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().
Warning: The maximum number of indices 950 has been exceeded in frame 74! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().
Warning: The maximum number of indices 1050 has been exceeded in frame 74! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().
Warning: The maximum number of indices 1150 has been exceeded in frame 74! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().
Warning: The maximum number of indices 1250 has been exceeded in frame 74! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().
Warning: The maximum number of indices 1350 has been exceeded in frame 74! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().
Warning: The maximum number of indices 1450 has been exceeded in frame 74! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().
Warning: The maximum number of indices 1550 has been exceeded in frame 74! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().
Warning: The maximum number of indices 1650 has been exceeded in frame 74! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().

Internal fatal error: Bitstream write size mismatch! Actual bitrate: 1323750 vs. Reference bitrate: 13200


In function: write_indices_ivas(), lib_com/bitstream.c:2046

Warning: The maximum number of indices 300 has been exceeded in frame 75! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().

Internal fatal error: Indice ID = 102 with value 62186 exceeds the range of 3 bits (frame 75) !


In function: push_indice(), lib_com/bitstream.c:1043


Internal error: ERROR: bit-budget incorrect (-162 bits) in frame 75.


In function: config_acelp1(), lib_com/bits_alloc.c:1377


Internal fatal error: Bitstream write size mismatch! Actual bitrate: 1331850 vs. Reference bitrate: 13200


In function: write_indices_ivas(), lib_com/bitstream.c:2046

Warning: The maximum number of indices 1750 has been exceeded in frame 76! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().

Internal fatal error: Indice ID = 102 with value 6506 exceeds the range of 3 bits (frame 76) !


In function: push_indice(), lib_com/bitstream.c:1043


Internal error: ERROR: bit-budget incorrect (-319 bits) in frame 76.


In function: config_acelp1(), lib_com/bits_alloc.c:1377


Internal fatal error: Bitstream write size mismatch! Actual bitrate: 1339700 vs. Reference bitrate: 13200


In function: write_indices_ivas(), lib_com/bitstream.c:2046


Internal fatal error: Indice ID = 102 with value 1009 exceeds the range of 3 bits (frame 77) !


In function: push_indice(), lib_com/bitstream.c:1043


Internal error: ERROR: bit-budget incorrect (-481 bits) in frame 77.


In function: config_acelp1(), lib_com/bits_alloc.c:1377


Internal fatal error: Bitstream write size mismatch! Actual bitrate: 1347800 vs. Reference bitrate: 13200


In function: write_indices_ivas(), lib_com/bitstream.c:2046

Warning: The maximum number of indices 400 has been exceeded in frame 78! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().

Internal fatal error: Indice ID = 102 with value 44969 exceeds the range of 3 bits (frame 78) !


In function: push_indice(), lib_com/bitstream.c:1043


Internal error: ERROR: bit-budget incorrect (-645 bits) in frame 78.


In function: config_acelp1(), lib_com/bits_alloc.c:1377


Internal fatal error: Bitstream write size mismatch! Actual bitrate: 1356000 vs. Reference bitrate: 13200


In function: write_indices_ivas(), lib_com/bitstream.c:2046


Internal fatal error: Indice ID = 102 with value 244 exceeds the range of 3 bits (frame 79) !


In function: push_indice(), lib_com/bitstream.c:1043


Internal error: ERROR: bit-budget incorrect (-806 bits) in frame 79.


In function: config_acelp1(), lib_com/bits_alloc.c:1377


Internal fatal error: Bitstream write size mismatch! Actual bitrate: 1364050 vs. Reference bitrate: 13200


In function: write_indices_ivas(), lib_com/bitstream.c:2046

Warning: The maximum number of indices 750 has been exceeded in frame 80! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().

Internal fatal error: Buffer of indices corrupted in frame 80! Attempt to overwrite indice ID = 1868 (value: 0, bits: 16)!


In function: check_ind_list_limits(), lib_com/bitstream.c:998


Internal fatal error: Error occured in push_indice() while re-allocating the list of indices (frame 80) !


In function: push_indice(), lib_com/bitstream.c:1074

IVAS_cod: lib_enc/ivas_corecoder_enc_reconfig.c:215: ivas_corecoder_enc_reconfig: Assertion `( nb_bits == nb_bits_tot ) && "Error saving bitstream information during core-coder reconfiguration!\n"' failed.