[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] OOT module with a vector input/output gives an assert

From: Damindra Bandara
Subject: [Discuss-gnuradio] OOT module with a vector input/output gives an assertion failure
Date: Sun, 19 Feb 2017 15:34:00 -0500


I am trying to create an OOT module with a vector input. I haven't implemented the signal processing yet. This is how my code looks like.

I/O signature

gr::io_signature::make(1, 1, sizeof(gr_complex)*fft_len),
              gr::io_signature::make(1, 1, sizeof(gr_complex)*fft_len))

In the work function,

const gr_complex *in = (const gr_complex *) input_items[0];
gr_complex *out = (gr_complex *) output_items[0];

 consume_each (noutput_items);
 return noutput_items;

When the fft_len is set to 1, the block runs without any errors. However, when I set the fft_len to some value greater than 1, it fails with the following error.

python2: /usr/local/src/gnuradio/gnuradio-runtime/include/gnuradio/buffer.h:179: unsigned int gr::buffer::index_add(unsigned int, unsigned int): Assertion `s < d_bufsize' failed.

I appreciate if you could give me some guidance to get this fixed.


Damindra Savithri Bandara,
Ph.D. in Information Technology (Candidate)
George Mason University,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]