View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007388VTK(No Category)public2008-07-22 03:512016-08-12 09:55
Reporterraffi 
Assigned ToKitware Robot 
PrioritynormalSeveritycrashReproducibilityalways
StatusclosedResolutionmoved 
PlatformLinuxOSUbuntuOS Version8.04
Product Version 
Target VersionFixed in Version 
Summary0007388: OrientationMarkerWidget crashes in vtkfreetype
DescriptionOrientationMarkerWidget 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.
Steps To Reproduce1. 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
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0012801)
raffi (reporter)
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 (reporter)
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 (reporter)
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 (reporter)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2008-07-22 03:51 raffi New Issue
2008-07-22 11:40 raffi Note Added: 0012801
2009-08-05 05:49 Charl Botha Note Added: 0017063
2009-08-05 10:36 raffi Note Added: 0017065
2009-08-05 12:09 Charl Botha Note Added: 0017067
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2016-08-12 09:55 Kitware Robot Note Added: 0037004
2016-08-12 09:55 Kitware Robot Status expired => closed
2016-08-12 09:55 Kitware Robot Resolution open => moved
2016-08-12 09:55 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team