<div dir="ltr"><div>He Sean, </div><div><br></div>I should clarify this a bit more.<div>vtkDataEncoder invokes a thread pool which doesn't clean up after use, hence the crashes after program execution, adding vtkDataEncoder to the list of excluded classes "almost" fixed this.</div><div>However Windows was still crashing when the program was run again, so, adding vtkWebApplication (which is the only class that calls vtkDataEncoder), to the list of excluded classes, fixed this issue.</div><div><br></div><div>Notwithstanding this, it is puzzling, as I said in the previous e-mail as to why on Kamino we get a <font color="#000000"><span style="font-size:14px">SIGSEGV at 0x0 address not mapped to object since vtkView is specifically excluded.</span></font></div><div><font color="#000000"><span style="font-size:14px"><br></span></font></div><div>Regards</div><div>   Andrew</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 29, 2015 at 1:32 PM, Andrew Maclean <span dir="ltr"><<a href="mailto:andrew.amaclean@gmail.com" target="_blank">andrew.amaclean@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>Hi Sean,</div><div><br></div>Yes, vtkDataEncoder and vtkWebApplication (which uses it) are excluded form TestSetGet.py and TestEmptyInput.py. This fixed the crashes and also the crash in windows when the program was run again. I think Windows was  a bit slow recovering memory. after program execution.<div><br></div><div>What is puzzling is that TestGetSet excludes <span style="font-size:12.8000001907349px">vtkView so vtkView.SetRepresentation() is never tested, this only fails on Kamino (release). It passes on trey (osX release) and also on megas.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Regards</span></div><span class="HOEnZb"><font color="#888888"><div><span style="font-size:12.8000001907349px">   Andrew</span></div><div><span style="font-size:12.8000001907349px"><br></span></div></font></span></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Wed, Apr 29, 2015 at 12:58 PM, Sean McBride <span dir="ltr"><<a href="mailto:sean@rogue-research.com" target="_blank">sean@rogue-research.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Did you fix the use-after-free we discussed on this list a few weeks ago?<br>
<span><font color="#888888"><br>
Sean<br>
</font></span><div><div><br>
<br>
<br>
On Wed, 29 Apr 2015 12:07:35 +1000, Andrew Maclean said:<br>
<br>
>David,<br>
>   Thanks for your insights.<br>
>Just finished testing this code on my Macbook Pro OS X Yosemite, Python<br>
>2.7.6 after building VTK in both Debug and Release mode. Everything runs Ok<br>
>so I don't think it is a typedef or macro related to a release build on OS<br>
>X.<br>
><br>
>Has anyone else got any suggestions?<br>
><br>
><br>
>Regards<br>
>   Andrew<br>
><br>
>On Wed, Apr 29, 2015 at 2:23 AM, David Gobbi <<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>> wrote:<br>
><br>
>> Hi Andrew,<br>
>><br>
>> The stack trace provides strong evidence that TestSetGet.py is not<br>
>> excluding vtkView on those dashboards, as ludicrous as that sounds.<br>
>><br>
>>     c++filt -n _ZL27PyvtkView_SetRepresentationP7_objectS0_<br>
>>     PyvtkView_SetRepresentation(_object*, _object*)<br>
>><br>
>> This method is only defined in vtkViewPython.cxx, and only<br>
>> dir(vtk.vtkView) will return this method.  Calling dir() on the vtkView<br>
>> subclasses will not return this method.  Hence, the only reason that<br>
>> TestSetGet.py would be calling this method is if it was testing vtkView.<br>
>><br>
>> Perhaps someone added either a typedef or a macro that causes an<br>
>> additional reference to vtkView to appear in the vtk module under a<br>
>> different name.<br>
>><br>
>>  - David<br>
>><br>
>> On Tue, Apr 28, 2015 at 1:42 AM, Andrew Maclean <<a href="mailto:andrew.amaclean@gmail.com" target="_blank">andrew.amaclean@gmail.com</a><br>
>> > wrote:<br>
>><br>
>>> Hi All,<br>
>>>    I need some help here.<br>
>>><br>
>>> I have converted TestSetGet.tcl to Python but I get a crash on the<br>
>>> dashboard for kamino building osx in release mode, here:<br>
>>> <a href="https://open.cdash.org/buildSummary.php?buildid=3789971" target="_blank">https://open.cdash.org/buildSummary.php?buildid=3789971</a><br>
>>> and here:<br>
>>> <a href="https://open.cdash.org/buildSummary.php?buildid=3789950" target="_blank">https://open.cdash.org/buildSummary.php?buildid=3789950</a><br>
>>><br>
>>> In an earlier attempt, linux release on megas was also crashing in<br>
>>> release mode:<br>
>>> <a href="https://open.cdash.org/testDetails.php?test=331289192&build=3789418" target="_blank">https://open.cdash.org/testDetails.php?test=331289192&build=3789418</a><br>
>>> Based on this I excluded vtkScatterPlotMatrix which fixed it on megas but<br>
>>> not on Kamino.<br>
>>> So I excluded vtkChartMatrix and I still have the same errors on Kamino.<br>
>>> But there are no clues as to where the crash is happening. However in<br>
>>> looking at:<br>
>>> <a href="https://open.cdash.org/testDetails.php?test=331378847&build=3789950" target="_blank">https://open.cdash.org/testDetails.php?test=331378847&build=3789950</a><br>
>>> I think it is in vtkView - which is already excluded.<br>
>>> This could be the problem:<br>
>>> void SetRepresentation (vtkDataRepresentation *rep)<br>
>>> vtkDataRepresentation * GetRepresentation (int index=0)<br>
>>><br>
>>> Can anyone help?<br>
>>><br>
>>> I guess I can try excluding all the *View classes as documented in:<br>
>>> <a href="http://www.vtk.org/doc/nightly/html/classvtkView.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkView.html</a><br>
>>> Is there a less brute-force approach?<br>
>>><br>
>>><br>
>>> The code is here:<br>
>>> <a href="https://gitlab.kitware.com/vtk/vtk/merge_requests/151" target="_blank">https://gitlab.kitware.com/vtk/vtk/merge_requests/151</a><br>
>>><br>
>>> Thanks in advance for any help/guidance.<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="">-- <br><div>___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________</div>
</span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________</div>
</div>