[vtk-developers] Kitware.com VTK 4.0 on OS X 10.1 (Quartz)

Greg Welch welch at cs.unc.edu
Mon Jan 14 16:46:01 EST 2002

A student and I are trying to build VTK 4.0 (http://public.kitware.com/VTK/)
for Mac OS X 10.1, using the VK option(s) to use the native Quartz
rendering. (Also building Python wrappers, but that should be irrelevant.)

VTK builds and runs on his machine (VTK C++ examples, as well as Python
wrappers), and while I seem to be able to *build* it on my machine, it will
not *run* on my machine. I get a bus error and/or seg fault. I have even
tried using his binaries, but no luck. The problem appears to be related to
OpenGL (video driver) as far as I can tell. The primary differences between
our machines: mine has an nVIDIA AGP video card, his has an ATI AGP card,
(we both have two additional ATI PCI cards); mine is a dual-processor, his
is a single.

Here (below) is the backtrace from gdb running the VTK "Cone" example from
the tutorial. This seems to match the backtraces we have seen with other
tests. I have also included more machine details.

I would be grateful for suggestions....

Thanks in advance.

Program received signal EXC_BAD_ACCESS, Could not access memory.
0x060c5698 in gldUpdateDispatch ()

(gdb) backtrace
#0  0x060c5698 in gldUpdateDispatch ()
#1  0x0602b3fc in gldDeleteTexture ()
#2  0x00ff9d48 in LOWORD ()
#3  0x00fe7d8c in LOWORD ()
#4  0x00fe85dc in LOWORD ()
#5  0x00fe7f98 in LOWORD ()
#6  0x00ffd71c in gliCreateContext ()
#7  0x70b53290 in cglInitializeContext ()
#8  0x70b55a1c in CGLCreateContext ()
#9  0x70ea3314 in _NS_CGLCreateContext ()
#10 0x70ea2004 in -[NSOpenGLContext initWithFormat:shareContext:] ()
#11 0x70ea1a98 in -[NSOpenGLView openGLContext] ()
#12 0x011e0000 in -[vtkQuartzGLView initWithFrame:] (self=0x30c890,
_cmd=0x784bfffe, theFrame={origin = {x = 0, y = 0}, size = {width = 300,
height = 300}}) at 
#13 0x011dd3a4 in WindowInitialize__21vtkQuartzRenderWindow (this=0x13ee00)
at /Users/welch/proj/plot/vtk/vtk/Rendering/vtkQuartzRenderWindow.mm:417
#14 0x011dd4b0 in Initialize__21vtkQuartzRenderWindow (this=0x0) at
#15 0x011dc590 in Start__21vtkQuartzRenderWindow (this=0x13ee00) at
#16 0x0115c91c in vtkRenderWindow::DoStereoRender (this=0x13ee00) at
#17 0x0115c8dc in vtkRenderWindow::DoFDRender (this=0x13ee00) at
#18 0x0115c4ac in vtkRenderWindow::DoAARender (this=0x13ee00) at
#19 0x0115bc64 in vtkRenderWindow::Render (this=0x13ee00) at
#20 0x00001e1c in main (argc=0, argv=0x784bfffe) at
#21 0x00001c18 in _start ()
#22 0x00001a48 in start ()

Machine details:

Marcel (student): single-processor (450 MHz) G4 mini-tower, 512 MB RAM, OS X
10.1.2, one ATI Rage 128 AGP video card, two ATI Rage 128 PCI video card
(three video cards total).

Greg (me): dual-processor (800 MHz) G4 mini-tower, 1 GB RAM, OS X 10.1.2,
one *nVIDIA* G-force 3 AGP card, and also two ATI Rage 128 PCI cards (three
video cards total).

[end of email]

More information about the vtk-developers mailing list