Closed gvanem closed 2 years ago
I'm not able to reproduce this with gcc on Linux.
The only explanation I could think of for rs_enc
being overwritten is that perhaps there is a buffer overflow that causes data to be written past the end of rs_buf
. Could you try increasing the size of rs_buf
(in l2_encoder_impl.h) from 255 to something like 512 to see whether that prevents the crash?
False alarm; it was an issue with my build of gnuradio-fec.dll
. In my attempt to support
rstest.exe
built for -DALL_VERSIONS
, I did something stupid.
But I'll probably raise this FEC issue in the Gnuradio repo.
OK. Thanks for digging into that.
But the apps/hd_tx_am_soundcard.py
generates sound that sound like this: hd_tx_am_soundcard.mp3.txt
(save and remove the .txt
extension). I assume the first 4 sec is some preamble and rest sounds like shit.
Does this sound normal?
It sounds as expected to me. The I channel (left) contains the analog audio, and the Q channel (right) contains the digital version.
Ok, good.
While running the sample
apps/hd_tx_rtl_file.py
, I got a crash in the destructorl2_encoder_impl::~l2_encoder_impl()
. The pointerrs_enc
given tors_free_char()
was completely bogus (a very high value). Hence the crash with this call-stack:So after adding some trace of the value of
rs_enc
in the constructor + destructor, I see they are very different!Some messages above from
gnuradio-runtime.dll
could give some hint. But I fail to understand those.How is it possible that
rs_enc
becomes different? First I thoughtgnurado-fec.dll
was to blame, but this module works fine elsewhere. So perhaps the use of it has some issues with MSVC + pybind here in this project?