[vtkusers] vtkTextActor segfaults my render window

Jérôme jerome.velut at gmail.com
Wed Dec 9 16:29:29 EST 2009


Continuing my investigation. It seems I am alone with that problem.
David Doria kindly put an example of a use-case of vtkTextActor on the wiki:
http://www.cmake.org/Wiki/Display_text

I confirm my segfault with that code, only when linking to VTK built in
release. It does not make difference if my code is complied Debug or
Release.

Here is the gdb backtrace:
(gdb) bt
#0  0x005f7a72 in vtk_freetype_FTC_CMapCache_Lookup ()
   from /home/dje/Softwares/ParaView-3.7/Release/bin/libvtkfreetype.so.pv3.7
#1  0x009830bc in vtkFreeTypeUtilities::GetGlyphIndex(unsigned long, char,
unsigned int*) ()
   from
/home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7
#2  0x00987b50 in vtkFreeTypeUtilities::GetBoundingBox(vtkTextProperty*,
char const*, int*) ()
   from
/home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7
#3  0x009883dd in vtkFreeTypeUtilities::PrepareImageData(vtkImageData*,
vtkTextProperty*, char const*, int*, int*) ()
   from
/home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7
#4  0x009888fe in vtkFreeTypeUtilities::RenderString(vtkTextProperty*, char
const*, vtkImageData*) ()
   from
/home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7
#5  0x00946e3e in vtkTextActor::RenderOpaqueGeometry(vtkViewport*) ()
   from
/home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7
#6  0x008f87a6 in vtkRenderer::UpdateGeometry() ()
   from
/home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7
#7  0x009cf547 in vtkOpenGLRenderer::DeviceRender() ()
   from
/home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7
#8  0x008f91fb in vtkRenderer::Render() ()
   from
/home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7
#9  0x008f4b7b in vtkRendererCollection::Render() ()
---Type <return> to continue, or q <return> to quit---
   from
/home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7
#10 0x0090789f in vtkRenderWindow::DoStereoRender() ()
   from
/home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7
#11 0x00907c80 in vtkRenderWindow::DoFDRender() ()
   from
/home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7
#12 0x009090ab in vtkRenderWindow::DoAARender() ()
   from
/home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7
#13 0x00907dc5 in vtkRenderWindow::Render() ()
   from
/home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7
#14 0x00a0d184 in vtkXOpenGLRenderWindow::Render() ()
   from
/home/dje/Softwares/ParaView-3.7/Release/bin/libvtkRendering.so.pv3.7
#15 0x08049c1b in main () at /home/dje/Codes/TestFilter/DrawText.cxx:50


For now, I am working with ParaView/VTK in Debug built. But I hope someone
will explain me what is the trouble with my release builds.

Jerome

2009/12/9 Jérôme <jerome.velut at gmail.com>

> I just compiled ParaView/VTK in Debug mode, the problem disappears... So I
> can be more precise about the reproducibility check:
>  Could you tell me if you have a segfault with really simple script in a
> linux (F12) release built?
>
> Thanks again,
> Jerome
>
> 2009/12/8 Jérôme <jerome.velut at gmail.com>
>
> Dear all,
>> It seems that I misused the vtkTextActor for a while: a recent CVS
>> checkout makes a simple vtkTextActor rendering crashing by seg fault. I
>> noted this error inside a ParaView cxx plugin, but now I have isolated the
>> cause: A vtkTextActor added to the renderer yields the crash.
>>
>> Please, find attach a python script that reproduces the bug (by me, at
>> least... my settings may be guilty). Could you tell me if you have such an
>> error, and if my way of using text actor is wrong?
>>
>> Thanks a lot!
>>
>> Jerome
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091209/62851c14/attachment.htm>


More information about the vtkusers mailing list