Skip to content

Assert in bass_psfilter_fx() when decoding MASA 1TC, 64 kbps, DTX on, PLC

Basic info

  • Fixed point:
    • Encoder (fixed): n/a
    • Decoder (fixed): Branch 20250826_branch_release_characterization_testing_main, rev. 50f46e9d

Bug description

When decoding MASA 1TC, 64 kbit/s bitstream with DTX on and PLC, there is an assert in bass_psfilter_fx():

Stack trace:

#3  0x00007ffff7cb96e2 in __GI___assert_fail (assertion=0x555555ee3e72 "0", file=0x555555ee3e60 "lib_com/basop32.c", line=2340, function=0x555555ee3ec0 <__PRETTY_FUNCTION__.1> "L_shl") at assert.c:103
#4  0x0000555555860596 in L_shl (L_var1=-1116590090, var2=1) at lib_com/basop32.c:2340
#5  0x00005555558606b3 in L_shr (L_var1=-558295045, var2=2) at lib_com/basop32.c:2450
#6  0x00005555555b77d5 in bass_psfilter_fx (hBPF=0x555556001300, Opt_AMR_WB=0, synth_in_fx=0x7ffffffd4ee0, L_frame=320, pitch_buf_fx=0x7ffffffde3f0, bpf_off=1, v_stab_fx=32767, v_stab_smooth_fx=0x555555ff1490, coder_type=0, Q_syn=8, 
    bpf_noise_buf=0x7ffffffcff30) at lib_dec/bass_psfilter_fx.c:558
#7  0x00005555557a540b in acelp_core_dec_fx (st=0x555555ff0f70, output_fx=0x7ffffffdcad0, synth_fx16=0x7ffffffdacd0, save_hb_synth_fx16=0x0, bwe_exc_extended_fx=0x7ffffffde430, voice_factors_fx=0x7ffffffde410, 
    old_syn_12k8_16k_fx=0x7ffffffd7800, sharpFlag=0, pitch_buf_fx=0x7ffffffde3f0, unbits=0x7ffffffdd9ec, sid_bw=0x7ffffffdd9e8, hStereoTD=0x0, tdm_lsfQ_PCh_fx=0x7ffffffd8ea0, use_cldfb_for_dft=0, last_element_mode=1, 
    last_element_brate=64000, flag_sec_CNA=-1, nchan_out=1, hStereoCng=0x0, read_sid_info=1) at lib_dec/acelp_core_dec_fx.c:1904
#8  0x00005555557f7b14 in ivas_core_dec_fx (st_ivas=0x555555fe2300, hSCE=0x555555ff0e80, hCPE=0x0, hMCT=0x0, n_channels=1, output_32_fx=0x7ffffffe1110, hb_synth_32_fx=0x7ffffffe0190, DFT_fx=0x0, sba_dirac_stereo_flag=0)
    at lib_dec/ivas_core_dec_fx.c:520
#9  0x0000555555684e81 in ivas_sce_dec_fx (st_ivas=0x555555fe2300, sce_id=0, output=0x7ffffffe1110, output_frame=960, nb_bits_metadata=56) at lib_dec/ivas_sce_dec_fx.c:298
#10 0x0000555555619db6 in ivas_jbm_dec_tc_fx (st_ivas=0x555555fe2300, data_fx=0x0) at lib_dec/ivas_jbm_dec_fx.c:307
#11 0x0000555555567dd5 in IVAS_DEC_GetTcSamples (hIvasDec=0x555555fe22a0, pcmBuf_fx=0x0, nOutSamples=0x7fffffff7aec) at lib_dec/lib_dec_fx.c:1835
#12 0x0000555555565e9f in IVAS_DEC_GetSamples (hIvasDec=0x555555fe22a0, nSamplesAsked=960, pcmBuf=0x555555fe3230, nOutSamples=0x7fffffff8158, needNewFrame=0x7fffffff815b) at lib_dec/lib_dec_fx.c:1185
#13 0x0000555555561092 in decodeG192 (arg=..., hBsReader=0x555555fe2800, headRotReader=0x0, externalOrientationFileReader=0x0, refRotReader=0x0, referenceVectorReader=0x0, splitRendBits=0x7fffffffdf00, hIvasDec=0x555555fe22a0, 
    pcmBuf=0x555555fe3230) at apps/decoder.c:2134
#14 0x000055555555ccdd in main (argc=6, argv=0x7fffffffe168) at apps/decoder.c:688

Occurs in frame 4762.

Condition:

c28 IVAS FX enc / FX dec 1 TC 64.0 on 8%

Ways to reproduce

Box folder: ...\_EXTERNAL_IVAS_CHAR_MC\Issues\basop-issue-2007

IVAS_dec BINAURAL 48 20ms_aligned_files_concatenated.ivas_processed.192 out.wav
Edited by multrus