Error "failed to allocate buffer" on execution of a python script

I have made an LDPC encoder and decoder block derived from
gr_sync_block. A
python application with a top block defining the connections and a main
function calling run() method in the top block is written to test these
blocks.

The codes are available in the following repo.

I’m getting this error on running a python application.

gr::vmcircbuf_sysv_shm: shmget(1): No space left on device
gr::buffer::allocate_buffer: failed to allocate buffer of size 64 KB
terminate called after throwing an instance of ‘std::bad_alloc’
what(): std::bad_alloc
Aborted

I had a similar problem a couple of weeks ago on my Linux system.

Some systems have a low value on the total amount of shared memory that
can be allocated by a program or all programs together. This is a kernel
parameter and of course can be altered.

To view the current values just run

sysctl --all

as root and search for the kernel.shmall and kernel.shmmax entries and
their values. The numbers indicating the amount of memory in bytes. If
they are low, you should change them with a bigger value.