<p dir="ltr">Hello Will,</p>
<p dir="ltr">Yes, you are right. Problem starts occurring only after long run time. Thank you for your suggestion about memory leak. Will check this.</p>
<p dir="ltr">Thanks,<br>
Taras</p>
<div class="gmail_quote">5 лип. 2016 14:17 "Will Schroeder" <<a href="mailto:will.schroeder@kitware.com">will.schroeder@kitware.com</a>> пише:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Taras-<div><br></div><div>My initial reaction is that there is a memory leak. If I understand you correctly, you are running 12-15 hours and then problems start occurring. Even a small leak can add up over that length of time and corrupt memory. I would first instrument your classes and see if they are leaking; if not it could be a VTK problem although we try and test for this kind of behavior.</div><div><br></div><div>Best,</div><div>W</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 5, 2016 at 7:00 AM, Taras Shchehelskyi <span dir="ltr"><<a href="mailto:shchegelskij@gmail.com" target="_blank">shchegelskij@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 lang="UK"><div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span lang="EN-US">Hello,</span></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif">I am part of the team that is working on project that uses VTK 7.0 for rendering mesh grid (not big, about 400k triangles) couple point clouds (about 8000 – 30000 points per cloud, up to 4 clouds) + couple very simple meshes. Our app can work fine for 12-15h for then main viewport hangs. When I do some mouse interaction (click + move or scroll) some meshes became invisible for couple seconds and that became visible again. Also when I resize viewport window scene aspect ratio became wrong. It works like aspect ratio does not depends of viewport size. <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif">Also we noticed other strange thing. Our point clouds update dynamically during app work. We create 2 classes:<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif">class CameraPointCloudSource : public vtkPolyDataAlgorithm<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif">and<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif">class PointCloudColoring : public vtkPolyDataAlgorithm.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif">I pass data (vtkPolyData with initialized points and vertexes) from CameraPointCloudSource to PointCloudColoring. I setup pipeline that output of the CameraPointCloudSource is input of the PointCloudColoring.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif">Sometimes (can’t always reproduce this) <b>CameraPointCloudSource:: RequestData</b> stops to be called and <b>CameraPointCloudSource::RequestData</b> always get the same input data (the same point cloud the same with the same points). As result I always see in viewport the same point cloud visualization. I checked, code that responsible for point cloud generation works fine and produce correct point clouds.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif">For test we also tried to use new VTK PointCloud filters. There we also noticed similar behavior. We set filters chain.  Alter some long time (> 12h of work) sometimes some filters star producing the same output that not depends of input point cloud. Interesting that some filters work fine and some start producing the same output. This issue can be in combination with viewport rendering hangs. Sometimes can happen before hang. Sometimes can happen after rendering hang. <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif">Our app uses many threads for generating data. We have many mutexes to protect data. But we are pretty sure that there are no deadlocks. Also we checked couple times that we not share Actors and Mappers between threads. We have couple viewports. But I was able to reproduce bug even when only one viewport is active. Interesting that when one viewport can hang, other viewports that uses the same data can work fine.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif">We are using Windows 7/10 x64 and MS VS 2013.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif">Any ideas what can lead to this problem?<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif">P.S. Sorry for my English, I am not a native speaker.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif">Thanks,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif">Taras</span><b><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><u></u><u></u></span></b></p></div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div>William J. Schroeder, PhD<br>Kitware, Inc. - Building the World's Technical Computing Software<br>28 Corporate Drive<br>Clifton Park, NY 12065<br><a href="mailto:will.schroeder@kitware.com" target="_blank">will.schroeder@kitware.com</a><br><a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a><br><a href="tel:%28518%29%20881-4902" value="+15188814902" target="_blank">(518) 881-4902</a></div></div></div>
</div>
</blockquote></div>