[Cin] Complete system hangs (likely out of memory)

Stefan de Konink stefan at konink.de
Sun Jan 22 19:14:32 CET 2023

Hi Andrew,

Below dooes not give me any significant difference. I have opened 5 
viewers, the memory rose from 4GB to 5.2GB, after closing the windows the 
memory reduced to 5.1GB.

diff --git a/cinelerra-5.1/cinelerra/vwindow.C 
index 7be15eb8..d477dab1 100644
--- a/cinelerra-5.1/cinelerra/vwindow.C
+++ b/cinelerra-5.1/cinelerra/vwindow.C
@@ -160,6 +160,9 @@ void VWindow::handle_close_event(int result)
        delete playback_engine;
        playback_engine = 0;
+       delete playback_cursor;
+       delete_source(1, 0);
+       delete clip_edit;

With the change I have also hit the issue below upon closing the main 
application with a viewer open; valgrind is pretty convincing this was 
caused by the change. My guess 'delete clip_edit' is at least one of the 

double free or corruption (!prev)

After reverting the change, I tried some more valgrinding. Cinelerra is 
rather slugish with valgrind on, but I have attached, what I see on viewing 
some smaller files.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: valgrind.txt
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20230122/f0544a4f/attachment.txt>

More information about the Cin mailing list