MantisBT - VTK
View Issue Details
0007388VTK(No Category)public2008-07-22 03:512016-08-12 09:55
raffi 
Kitware Robot 
normalcrashalways
closedmoved 
LinuxUbuntu8.04
 
 
0007388: OrientationMarkerWidget crashes in vtkfreetype
OrientationMarkerWidget crashes in vtk_freetype_FTC_CMapCache_Lookup

Run the test "WidgetsCxxTests"
Select 6 for the "TestOrientationMarkerWidget"
The test crashes:
(gdb) bt
#0 0xb6dac11a in vtk_freetype_FTC_CMapCache_Lookup () from /home/rwalker/even_sandbox/lib/libvtkfreetype.so
#1 0xb79f644c in vtkFreeTypeUtilities::GetGlyphIndex () from /home/rwalker/even_sandbox/lib/libvtkRendering.so
#2 0xb79f9389 in vtkFreeTypeUtilities::GetBoundingBox () from /home/rwalker/even_sandbox/lib/libvtkRendering.so
#3 0xb79f9b4a in vtkFreeTypeUtilities::PrepareImageData () from /home/rwalker/even_sandbox/lib/libvtkRendering.so
#4 0xb79fa06b in vtkFreeTypeUtilities::RenderString () from /home/rwalker/even_sandbox/lib/libvtkRendering.so
#5 0xb79cf316 in vtkTextActor::RenderOpaqueGeometry () from /home/rwalker/even_sandbox/lib/libvtkRendering.so
#6 0xb7bd5a2f in vtkCaptionActor2D::RenderOpaqueGeometry () from /home/rwalker/even_sandbox/lib/libvtkHybrid.so
#7 0xb7bc8c02 in vtkAxesActor::RenderOpaqueGeometry () from /home/rwalker/even_sandbox/lib/libvtkHybrid.so
#8 0xb663cb49 in vtkPropAssembly::RenderOpaqueGeometry () from /home/rwalker/even_sandbox/lib/libvtkFiltering.so
0000009 0xb799076f in vtkRenderer::UpdateGeometry () from /home/rwalker/even_sandbox/lib/libvtkRendering.so
#10 0xb7a22a17 in vtkOpenGLRenderer::DeviceRender () from /home/rwalker/even_sandbox/lib/libvtkRendering.so
0000011 0xb79925c5 in vtkRenderer::Render () from /home/rwalker/even_sandbox/lib/libvtkRendering.so
#12 0xb798f321 in vtkRendererCollection::Render () from /home/rwalker/even_sandbox/lib/libvtkRendering.so
#13 0xb79a0a0f in vtkRenderWindow::DoStereoRender () from /home/rwalker/even_sandbox/lib/libvtkRendering.so
#14 0xb79a085e in vtkRenderWindow::DoFDRender () from /home/rwalker/even_sandbox/lib/libvtkRendering.so
#15 0xb79a0ed9 in vtkRenderWindow::DoAARender () from /home/rwalker/even_sandbox/lib/libvtkRendering.so
#16 0xb799faf1 in vtkRenderWindow::Render () from /home/rwalker/even_sandbox/lib/libvtkRendering.so
#17 0xb7a41314 in vtkXOpenGLRenderWindow::Render () from /home/rwalker/even_sandbox/lib/libvtkRendering.so
#18 0xb7a05e78 in vtkOpenGLExtensionManager::ReadOpenGLExtensions () from /home/rwalker/even_sandbox/lib/libvtkRendering.so
#19 0xb7a050ac in vtkOpenGLExtensionManager::Update () from /home/rwalker/even_sandbox/lib/libvtkRendering.so
#20 0xb7a044bf in vtkOpenGLExtensionManager::ExtensionSupported () from /home/rwalker/even_sandbox/lib/libvtkRendering.so
#21 0xb7a1f908 in vtkOpenGLRenderWindow::OpenGLInit () from /home/rwalker/even_sandbox/lib/libvtkRendering.so
#22 0xb7a453ff in vtkXOpenGLRenderWindow::WindowInitialize () from /home/rwalker/even_sandbox/lib/libvtkRendering.so
#23 0xb7a45239 in vtkXOpenGLRenderWindow::Initialize () from /home/rwalker/even_sandbox/lib/libvtkRendering.so
#24 0xb7a40c65 in vtkXOpenGLRenderWindow::Start () from /home/rwalker/even_sandbox/lib/libvtkRendering.so
#25 0xb79fbafd in vtkXRenderWindowInteractor::Initialize () from /home/rwalker/even_sandbox/lib/libvtkRendering.so
#26 0x080510f5 in TestOrientationMarkerWidget ()
#27 0x0804d59b in main ()

Test crashes whether the system or the vtk freetype library is taken.
1. Checkout VTK-version VTK-5.2
2. Compile VTK with BUILD_TESTING ON
3. Run the test "WidgetsCxxTests"
4. Select 6 for the "TestOrientationMarkerWidget"
> vtk crashes with backtrace listed above
No tags attached.
Issue History
2008-07-22 03:51raffiNew Issue
2008-07-22 11:40raffiNote Added: 0012801
2009-08-05 05:49Charl BothaNote Added: 0017063
2009-08-05 10:36raffiNote Added: 0017065
2009-08-05 12:09Charl BothaNote Added: 0017067
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:55Kitware RobotNote Added: 0037004
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved
2016-08-12 09:55Kitware RobotAssigned To => Kitware Robot

Notes
(0012801)
raffi   
2008-07-22 11:40   
It seems that its a ubuntu 8.04 bug!!!!
On ubuntu 7.10 the test is running correctly.
(0017063)
Charl Botha   
2009-08-05 05:49   
I can reproduce this by doing the following with a VTK 5.4.2 Python 2.6.2 build on Ubuntu 8.04 x86:

import vtk
ta = vtk.vtkTextActor3D()
ta.SetInput('test text')
ta.GetBounds()

yields:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7c1e6b0 (LWP 5978)]
vtk_freetype_FTC_CMapCache_Lookup (cmap_cache=0x825f8c8,
    face_id=<value optimized out>, cmap_index=0, char_code=108)
    at /home/cpbotha/build/jwd/archive/VTK/Utilities/vtkfreetype/src/cache/ftccmap.c:394
394 cmap = face->charmaps[cmap_index];

Have you managed to work-around or fix this somehow?
(0017065)
raffi   
2009-08-05 10:36   
Nope,

the crash is in the test suite, and i thought that it is helpful reporting this bug.
(0017067)
Charl Botha   
2009-08-05 12:09   
I finally solved this problem by patching the VTK 5.4.2 vtkfreetype CMakeLists to build only that module with -O0 (no optimisation). The patch is here:
http://code.google.com/p/devide/source/browse/trunk/johannes/patches/vtkfreetype_segfault.diff [^]

This is only necessary on Ubuntu 8.04 and Ubuntu 8.10, and not on Ubuntu 9.04. It seems that on the older versions, the GCC optimisation breaks FT caching code.
(0037004)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.