Hi,
I'd like to report a memory management problem using view(); function in the Ubuntu20.04 system.
It can be noted that when using view(); function in the code, especially when a large quantity of pictures are produced, the memory allocated by the function can not be freed successfully. The code will crash after the saturation of the memory and this is independent on which solver we use, we tried LBM/DLMFD/Navier-stokes, or the grid type, we tried Multi-grid/Octree.
Only the test on the Ubuntu20.04 gives this problem (we tried three different machines, of different owner, different installation date of Basilisk). The test code works well on Centos, Ubuntu18.04 with a good memory management and doesn't crash in the time of test. Same code used in these different systems and compiled using same commands.
I'd like to raise this problem because even we don't produce as many figures as the test case, the increase of the memory usage will largely reduce the performance of the code.
I prepare a minimal test case in the attachment for your examination.
Here is the information of my workstation:
Linux myname 5.11.0-38-generic #42~20.04.1-Ubuntu SMP Tue Sep 28 20:41:07 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
And the compile lines I used are:
Serial compile:
qcc test_view.c -o test_view -lm -L${BASILISK}/gl -lglutils -lfb_osmesa -lOSMesa -lGLU
MPI compile: CC99='mpicc -std=c99' qcc -Wall -O2 -D_MPI=1 test_view.c -o
test_view -lm -L${BASILISK}/gl -lglutils -lfb_osmesa -lOSMesa -lGLU