[vtkusers] Bad Access in vtkOpenGLPainterDeviceAdapter::SendAttribute

Mike Jackson maillist at bluequartz.net
Fri Dec 2 23:48:28 EST 2005


I have been writing some code to extract specific regions from a  
vtkPolyData objects based on connectivity. I am almost done except  
that I now get a Exec_bad_access error when I try to render the data.  
The stack trace is below.

I believe that I am not copying all the correct information from the  
master list of PolyData into the sublists. I have copied the Polys  
and the Points and added a SCALAR attribute also. I create a Lookup  
Table for Colors, where the value of a scalar is a color in the  
lookup table. Is there anything that jumps out from the stack trace?  
Would posting the code fragments help?


#0	0x077d7478 in glColor3ubv_Comp
#1	0x026f0bd4 in vtkOpenGLPainterDeviceAdapter::SendAttribute
#2	0x02683fcc in vtkPolygonsPainter::RenderPrimitive
#3	0x026876f4 in vtkPrimitivePainter::RenderInternal
#4	0x0267319c in vtkPainter::Render
#5	0x026821a8 in vtkPolyDataPainter::Render
#6	0x02615fe0 in vtkChooserPainter::RenderInternal
#7	0x0267319c in vtkPainter::Render
#8	0x026821a8 in vtkPolyDataPainter::Render
#9	0x0267327c in vtkPainter::RenderInternal
#10	0x02707368 in vtkOpenGLRepresentationPainter::RenderInternal
#11	0x0267319c in vtkPainter::Render
#12	0x026821a8 in vtkPolyDataPainter::Render
#13	0x0267327c in vtkPainter::RenderInternal
#14	0x026ef4e8 in vtkOpenGLLightingPainter::RenderInternal
#15	0x0267319c in vtkPainter::Render
#16	0x026821a8 in vtkPolyDataPainter::Render
#17	0x0267327c in vtkPainter::RenderInternal
#18	0x026e7d80 in  
vtkOpenGLCoincidentTopologyResolutionPainter::RenderInternal
#19	0x0267319c in vtkPainter::Render
#20	0x026821a8 in vtkPolyDataPainter::Render
#21	0x0267327c in vtkPainter::RenderInternal
#22	0x026e89c8 in vtkOpenGLDisplayListPainter::RenderInternal
#23	0x0267319c in vtkPainter::Render
#24	0x026821a8 in vtkPolyDataPainter::Render
#25	0x0267327c in vtkPainter::RenderInternal
#26	0x026e77b4 in vtkOpenGLClipPlanesPainter::RenderInternal
#27	0x0267319c in vtkPainter::Render
#28	0x026821a8 in vtkPolyDataPainter::Render
#29	0x0267327c in vtkPainter::RenderInternal
#30	0x02707d8c in vtkOpenGLScalarsToColorsPainter::RenderInternal
#31	0x0267319c in vtkPainter::Render
#32	0x026821a8 in vtkPolyDataPainter::Render
#33	0x0267327c in vtkPainter::RenderInternal
#34	0x0267319c in vtkPainter::Render
#35	0x026821a8 in vtkPolyDataPainter::Render
#36	0x0261b4ec in vtkDefaultPainter::Render
#37	0x02675294 in vtkPainterPolyDataMapper::RenderPiece
#38	0x0267f660 in vtkPolyDataMapper::Render
#39	0x026e6454 in vtkOpenGLActor::Render
#40	0x02600524 in vtkActor::RenderOpaqueGeometry
#41	0x0269c130 in vtkRenderer::UpdateGeometry
#42	0x0270625c in vtkOpenGLRenderer::DeviceRender
#43	0x0269f054 in vtkRenderer::Render
#44	0x026a224c in vtkRendererCollection::Render
#45	0x02695b08 in vtkRenderWindow::DoStereoRender
#46	0x02695a7c in vtkRenderWindow::DoFDRender
#47	0x0269540c in vtkRenderWindow::DoAARender
#48	0x02694888 in vtkRenderWindow::Render
#49	0x02699508 in vtkRenderWindowInteractor::Render
#50	0x02f593c8 in -[PFDocument addCurrentDataToViewer] at  
PFDocument.mm:304

---
Mike Jackson
mike _at_ bluequartz dot net





More information about the vtkusers mailing list