I *really* have to integrate valgrind in my debugging process! Thanks
for the reminder, Bill. I put a log file here :<br><a href="http://jerome.velut.free.fr/transfert/DrawText-valgrind-output2552">http://jerome.velut.free.fr/transfert/DrawText-valgrind-output2552</a> (Too big for the list, 'had to cancel the previous post...)<br>
<br>It has been obtained with your
command line, except that --num-callers has to be between 0 and 50
(claimed valgrind at first exec). I also add
--log-file=DrawText-valgring-output%p to catch the output.<br><div id=":1o6" class="ii gt">
<br>It ends on a segfault, that is not logged into the file, I think:<br>------------------------------------------------------------------------------------------<br>[dje@Djelaptop
build]$ valgrind --trace-children=yes --quiet --tool=memcheck
--leak-check=yes --show-reachable=yes --num-callers=50 --verbose
--demangle=yes --log-file=DrawText-valgring-output%p ./DrawText<br>
Erreur de segmentation (core dumped)<br>------------------------------------------------------------------------------------------<br><br>I found back the gdb backtrace concerning vtk_freetype_FTC_CMapCache_Lookup, in a "Invalid read of size 4" section. I let you look into the log file, since I don't know much about that!</div>
<br><br><div class="gmail_quote">2009/12/9 Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Have you tried running the example with valgrind?<br>
<br>
valgrind --trace-children=yes --quiet --tool=memcheck<br>
--leak-check=yes --show-reachable=yes --num-callers=100 --verbose<br>
--demangle=yes ./DrawText<br>
<div><div></div><div class="h5"><br>
On Wed, Dec 9, 2009 at 4:57 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>> wrote:<br>
> I see. It is linking against the paraview version of VTK. That's what<br>
> threw me. When I run David's example against VTK head, it runs fine.<br>
><br>
> Maybe someone with a paraview vtk can try the example?<br>
><br>
> Bill<br>
><br>
> On Wed, Dec 9, 2009 at 4:52 PM, Jérôme <<a href="mailto:jerome.velut@gmail.com">jerome.velut@gmail.com</a>> wrote:<br>
>> Bill,<br>
>><br>
>> this is the one I posted previously. I hope it is helpful? I was checking<br>
>> the dashboard for failed tests, but I am simply lost in all these results...<br>
>><br>
>> Thanks for your interest!<br>
>><br>
>> Jerome<br>
>><br>
>> 2009/12/9 Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
>>><br>
>>> What traceback do you get with David's example?<br>
>>><br>
>>> On Wed, Dec 9, 2009 at 4:29 PM, Jérôme <<a href="mailto:jerome.velut@gmail.com">jerome.velut@gmail.com</a>> wrote:<br>
>>> > Continuing my investigation. It seems I am alone with that problem.<br>
>>> > David Doria kindly put an example of a use-case of vtkTextActor on the<br>
>>> > wiki:<br>
>>> > <a href="http://www.cmake.org/Wiki/Display_text" target="_blank">http://www.cmake.org/Wiki/Display_text</a><br>
>>> ><br>
>>> > I confirm my segfault with that code, only when linking to VTK built in<br>
>>> > release. It does not make difference if my code is complied Debug or<br>
>>> > Release.<br>
>>> ><br>
>>> > Here is the gdb backtrace:<br>
>>> > (gdb) bt<br>
>>> > #0 0x005f7a72 in vtk_freetype_FTC_CMapCache_Lookup ()<br>
>>> > from<br>
>>> > /home/dje/Softwares/ParaView-3.7/Release/bin/libvtkfreetype.so.pv3.7<br>
>>> > #1 0x009830bc in vtkFreeTypeUtilities::GetGlyphIndex(unsigned long,<br>
>>> > char,<br>
>>> > unsigned int*) ()<br>
>>> > from<br>
>>> > /home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7<br>
>>> > #2 0x00987b50 in vtkFreeTypeUtilities::GetBoundingBox(vtkTextProperty*,<br>
>>> > char const*, int*) ()<br>
>>> > from<br>
>>> > /home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7<br>
>>> > #3 0x009883dd in vtkFreeTypeUtilities::PrepareImageData(vtkImageData*,<br>
>>> > vtkTextProperty*, char const*, int*, int*) ()<br>
>>> > from<br>
>>> > /home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7<br>
>>> > #4 0x009888fe in vtkFreeTypeUtilities::RenderString(vtkTextProperty*,<br>
>>> > char<br>
>>> > const*, vtkImageData*) ()<br>
>>> > from<br>
>>> > /home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7<br>
>>> > #5 0x00946e3e in vtkTextActor::RenderOpaqueGeometry(vtkViewport*) ()<br>
>>> > from<br>
>>> > /home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7<br>
>>> > #6 0x008f87a6 in vtkRenderer::UpdateGeometry() ()<br>
>>> > from<br>
>>> > /home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7<br>
>>> > #7 0x009cf547 in vtkOpenGLRenderer::DeviceRender() ()<br>
>>> > from<br>
>>> > /home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7<br>
>>> > #8 0x008f91fb in vtkRenderer::Render() ()<br>
>>> > from<br>
>>> > /home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7<br>
>>> > #9 0x008f4b7b in vtkRendererCollection::Render() ()<br>
>>> > ---Type <return> to continue, or q <return> to quit---<br>
>>> > from<br>
>>> > /home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7<br>
>>> > #10 0x0090789f in vtkRenderWindow::DoStereoRender() ()<br>
>>> > from<br>
>>> > /home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7<br>
>>> > #11 0x00907c80 in vtkRenderWindow::DoFDRender() ()<br>
>>> > from<br>
>>> > /home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7<br>
>>> > #12 0x009090ab in vtkRenderWindow::DoAARender() ()<br>
>>> > from<br>
>>> > /home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7<br>
>>> > #13 0x00907dc5 in vtkRenderWindow::Render() ()<br>
>>> > from<br>
>>> > /home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7<br>
>>> > #14 0x00a0d184 in vtkXOpenGLRenderWindow::Render() ()<br>
>>> > from<br>
>>> > /home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7<br>
>>> > #15 0x08049c1b in main () at /home/dje/Codes/TestFilter/DrawText.cxx:50<br>
>>> ><br>
>>> ><br>
>>> > For now, I am working with ParaView/VTK in Debug built. But I hope<br>
>>> > someone<br>
>>> > will explain me what is the trouble with my release builds.<br>
>>> ><br>
>>> > Jerome<br>
>>> ><br>
>>> > 2009/12/9 Jérôme <<a href="mailto:jerome.velut@gmail.com">jerome.velut@gmail.com</a>><br>
>>> >><br>
>>> >> I just compiled ParaView/VTK in Debug mode, the problem disappears...<br>
>>> >> So I<br>
>>> >> can be more precise about the reproducibility check:<br>
>>> >> Could you tell me if you have a segfault with really simple script in<br>
>>> >> a<br>
>>> >> linux (F12) release built?<br>
>>> >><br>
>>> >> Thanks again,<br>
>>> >> Jerome<br>
>>> >><br>
>>> >> 2009/12/8 Jérôme <<a href="mailto:jerome.velut@gmail.com">jerome.velut@gmail.com</a>><br>
>>> >>><br>
>>> >>> Dear all,<br>
>>> >>> It seems that I misused the vtkTextActor for a while: a recent CVS<br>
>>> >>> checkout makes a simple vtkTextActor rendering crashing by seg fault.<br>
>>> >>> I<br>
>>> >>> noted this error inside a ParaView cxx plugin, but now I have isolated<br>
>>> >>> the<br>
>>> >>> cause: A vtkTextActor added to the renderer yields the crash.<br>
>>> >>><br>
>>> >>> Please, find attach a python script that reproduces the bug (by me, at<br>
>>> >>> least... my settings may be guilty). Could you tell me if you have<br>
>>> >>> such an<br>
>>> >>> error, and if my way of using text actor is wrong?<br>
>>> >>><br>
>>> >>> Thanks a lot!<br>
>>> >>><br>
>>> >>> Jerome<br>
>>> >><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>
>>> > Please keep messages on-topic and check the VTK FAQ at:<br>
>>> > <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>>> ><br>
>>> > Follow this link to subscribe/unsubscribe:<br>
>>> > <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>>> ><br>
>>> ><br>
>><br>
>><br>
><br>
</div></div></blockquote></div><br>