<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Aug 2, 2016 at 12:40 PM, Mohammad Mirzadeh <span dir="ltr"><<a href="mailto:mirzadeh@gmail.com" target="_blank">mirzadeh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I often use the memory usage information in log_view as a way to check on memory leaks and so far it has worked perfect. However, I had long noticed a false-positive report in memory leak for Viewers, i.e. destruction count is always one less than creation.</div></div></blockquote><div><br></div><div>Yes, I believe that is the Viewer being used to print this information.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Today, I noticed what seems to be a second one. If you use VecView to write the same DA to vtk, i.e. call VecView(A, vtk); twice, it also report a memory leak for vectors, vecscatters, dm, etc. I am calling this a false-positive since the code is valgrind-clean.</div><div><br></div><div>Is this known/expected?</div></div></blockquote><div><br></div><div>The VTK viewers have to hold everything they output until they are destroyed since the format does not allow immediate writing.</div><div>I think the VTK viewer is not destroyed at the time of this output. Can you make a small example that does this?</div><div><br></div><div>I have switched to HDF5 and XDMF due to the limitations of VTK format.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Here's the relevant bit from log_view:</div><div><br></div><div><div><font face="monospace, monospace">--- Event Stage 0: Main Stage</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"> Vector 8 7 250992 0.</font></div><div><font face="monospace, monospace"> Vector Scatter 2 0 0 0.</font></div><div><font face="monospace, monospace"> Distributed Mesh 2 0 0 0.</font></div><div><font face="monospace, monospace">Star Forest Bipartite Graph 4 0 0 0.</font></div><div><font face="monospace, monospace"> Discrete System 2 0 0 0.</font></div><div><font face="monospace, monospace"> Index Set 4 4 83136 0.</font></div><div><font face="monospace, monospace"> IS L to G Mapping 2 0 0 0.</font></div><div><font face="monospace, monospace"> Viewer 2 1 784 0.</font></div><div><font face="monospace, monospace">========================================================================================================================</font></div></div><div><br></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div>
</div></div>