CroatianMeteorNetwork / RMS

RPi Meteor Station
https://globalmeteornetwork.org/
GNU General Public License v3.0
169 stars 47 forks source link

Ensure all shared buffers are properly freed #296

Closed Cybis320 closed 2 weeks ago

Cybis320 commented 2 weeks ago

In a multicam setup, a ‘Bus Error (Core Dumped)’ can occur during the reinitialization of frame buffers in subsequent nightly runs. This issue arises because the frame buffers, which are utilized by StartCapture, Compressor, and BufferedCapture, are only being freed in StartCapture upon exit. This PR addresses the problem by ensuring that the frame buffers are properly freed in all three classes upon their respective exits.