markondej / fm_transmitter

Raspberry Pi as FM transmitter
1.32k stars 292 forks source link

if program exits abnormally it will fill up the DMA #107

Closed ghost closed 4 years ago

ghost commented 4 years ago

if you kill the fm transmitter while its running enough times, it will nolonger be able to broadcast anything, exiting with the error Error: Cannot allocate memory

markondej commented 4 years ago

It is related with DMA memory allocation. Since it is managed by Videocore the allocated memory must be released upon program termination, in other case linux kernel won't release it by itself. Try closing program grefully (kill -2) instead of killing it using KILL signal

ghost commented 4 years ago

ah thanks kill -2 works