<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:42.5pt 42.5pt 42.5pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=UK link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Thank you. Will try today.</span><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='border:none;padding:0cm'><b>From: </b><a href="mailto:will.schroeder@kitware.com">Will Schroeder</a><br><b>Sent: </b>5 липня 2016 р. 15:37<br><b>To: </b><a href="mailto:shchegelskij@gmail.com">Taras Shchehelskyi</a><br><b>Cc: </b><a href="mailto:mathieu.malaterre@gmail.com">Mathieu Malaterre</a>; <a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a><br><b>Subject: </b>Re: [vtk-developers] Rendering hangs in viewport</p></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>A simple way is to modify VTK/Common/Core/vtkTimeStamp.cxx, the Modified() method. Insert the appropriate logic to conditionally print out if an integral wrap occurs.</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>There may be a better way but this should do the trick. Let us know how this works out, you've got my curiosity piqued :-)<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Best,<br>W<o:p></o:p></span></p></div></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>On Tue, Jul 5, 2016 at 8:19 AM, Taras Shchehelskyi <<a href="mailto:shchegelskij@gmail.com" target="_blank">shchegelskij@gmail.com</a>> wrote:<o:p></o:p></span></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><div><div><p class=MsoNormal><span lang=EN-US>Hello,</span><o:p></o:p></p><p class=MsoNormal> </p><p class=MsoNormal><span lang=EN-US>Can I somehow check this theory?</span></p><p class=MsoNormal><span lang=EN-US> </span></p><p class=MsoNormal><span lang=EN-US>Thanks,</span></p><p class=MsoNormal><span lang=EN-US>Taras</span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'> </span></p><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b>From: </b><a href="mailto:will.schroeder@kitware.com" target="_blank">Will Schroeder</a><br><b>Sent: </b>5 липня 2016 р. 15:17<br><b>To: </b><a href="mailto:mathieu.malaterre@gmail.com" target="_blank">Mathieu Malaterre</a><br><b>Cc: </b><a href="mailto:shchegelskij@gmail.com" target="_blank">Taras Shchehelskyi</a>; <a href="mailto:vtk-developers@vtk.org" target="_blank">vtk-developers@vtk.org</a><br><b>Subject: </b>Re: [vtk-developers] Rendering hangs in viewport</p></div><div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'> </span></p><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>I like this theory! It's hard to imagine an unsigned long wrapping around, but there are a lot of mtime updates happening in VTK especially over 12 hrs....</span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'> </span></p><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>On Tue, Jul 5, 2016 at 8:04 AM, Mathieu Malaterre <<a href="mailto:mathieu.malaterre@gmail.com" target="_blank">mathieu.malaterre@gmail.com</a>> wrote:</span></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Definitely not up-to-speed these days, but I would have bet for a<br>unsigned long wrap in vtkTimeStamp instead...</span></p><div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><br>On Tue, Jul 5, 2016 at 1:17 PM, Will Schroeder<br><<a href="mailto:will.schroeder@kitware.com" target="_blank">will.schroeder@kitware.com</a>> wrote:<br>> Taras-<br>><br>> My initial reaction is that there is a memory leak. If I understand you<br>> correctly, you are running 12-15 hours and then problems start occurring.<br>> Even a small leak can add up over that length of time and corrupt memory. I<br>> would first instrument your classes and see if they are leaking; if not it<br>> could be a VTK problem although we try and test for this kind of behavior.<br>><br>> Best,<br>> W<br>><br>> On Tue, Jul 5, 2016 at 7:00 AM, Taras Shchehelskyi <<a href="mailto:shchegelskij@gmail.com" target="_blank">shchegelskij@gmail.com</a>><br>> wrote:<br>>><br>>><br>>><br>>><br>>><br>>> Hello,<br>>><br>>><br>>><br>>> I am part of the team that is working on project that uses VTK 7.0 for<br>>> rendering mesh grid (not big, about 400k triangles) couple point clouds<br>>> (about 8000 – 30000 points per cloud, up to 4 clouds) + couple very simple<br>>> meshes. Our app can work fine for 12-15h for then main viewport hangs. When<br>>> I do some mouse interaction (click + move or scroll) some meshes became<br>>> invisible for couple seconds and that became visible again. Also when I<br>>> resize viewport window scene aspect ratio became wrong. It works like aspect<br>>> ratio does not depends of viewport size.<br>>><br>>><br>>><br>>> Also we noticed other strange thing. Our point clouds update dynamically<br>>> during app work. We create 2 classes:<br>>><br>>> class CameraPointCloudSource : public vtkPolyDataAlgorithm<br>>><br>>> and<br>>><br>>> class PointCloudColoring : public vtkPolyDataAlgorithm.<br>>><br>>><br>>><br>>> I pass data (vtkPolyData with initialized points and vertexes) from<br>>> CameraPointCloudSource to PointCloudColoring. I setup pipeline that output<br>>> of the CameraPointCloudSource is input of the PointCloudColoring.<br>>><br>>><br>>><br>>> Sometimes (can’t always reproduce this) CameraPointCloudSource::<br>>> RequestData stops to be called and CameraPointCloudSource::RequestData<br>>> always get the same input data (the same point cloud the same with the same<br>>> points). As result I always see in viewport the same point cloud<br>>> visualization. I checked, code that responsible for point cloud generation<br>>> works fine and produce correct point clouds.<br>>><br>>><br>>><br>>> For test we also tried to use new VTK PointCloud filters. There we also<br>>> noticed similar behavior. We set filters chain.  Alter some long time (> 12h<br>>> of work) sometimes some filters star producing the same output that not<br>>> depends of input point cloud. Interesting that some filters work fine and<br>>> some start producing the same output. This issue can be in combination with<br>>> viewport rendering hangs. Sometimes can happen before hang. Sometimes can<br>>> happen after rendering hang.<br>>><br>>><br>>><br>>> Our app uses many threads for generating data. We have many mutexes to<br>>> protect data. But we are pretty sure that there are no deadlocks. Also we<br>>> checked couple times that we not share Actors and Mappers between threads.<br>>> We have couple viewports. But I was able to reproduce bug even when only one<br>>> viewport is active. Interesting that when one viewport can hang, other<br>>> viewports that uses the same data can work fine.<br>>><br>>><br>>><br>>> We are using Windows 7/10 x64 and MS VS 2013.<br>>><br>>><br>>><br>>><br>>><br>>> Any ideas what can lead to this problem?<br>>><br>>><br>>><br>>> P.S. Sorry for my English, I am not a native speaker.<br>>><br>>><br>>><br>>><br>>><br>>> Thanks,<br>>><br>>> Taras<br>>><br>>><br>>> _______________________________________________<br>>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>>><br>>> Visit other Kitware open-source projects at<br>>> <a href="http://www.kitware.com/opensource/opensource.html" 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" 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" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>>><br>>><br>><br>><br>><br>> --<br>> 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" target="_blank">(518) 881-4902</a><br>><br>> _______________________________________________<br>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>><br>> Visit other Kitware open-source projects at<br>> <a href="http://www.kitware.com/opensource/opensource.html" 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" 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" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>><br>><br><br><br><br>--</span></p></div></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#888888'>Mathieu</span></p></blockquote></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><br><br clear=all></span></p><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'> </span></p></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>-- </span></p></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>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" target="_blank">(518) 881-4902</a></span></p><p class=MsoNormal> </p></div></div></div></div></blockquote></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><br><br clear=all><o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>-- <o:p></o:p></span></p></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>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>(518) 881-4902<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>