[vtkusers] Segmentation fault in QVTKWidget::x11_setup_window()
Leroi.Brayden
leroi.brayden at gmail.com
Tue Aug 3 04:59:34 EDT 2010
Hi all,
I get a segmentation fault when calling
vtkWidget->GetRenderWindow()->AddRenderer(ren) even in the most simple test
application:
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
vtkWidget = new QVTKWidget(this,QFlag(0));
ui->verticalLayout->addWidget(vtkWidget);
ui->verticalLayout->update();
ren = vtkRenderer::New();
vtkWidget->GetRenderWindow()->AddRenderer(ren);
ren->SetBackground(1.0,0,0);
ren->Render();
}
The backtrace looks is:
(gdb) bt
#0 0x00000000004245eb in QVTKWidget::x11_setup_window() ()
#1 0x00000000004212f9 in QVTKWidget::SetRenderWindow(vtkRenderWindow*) ()
#2 0x0000000000421120 in QVTKWidget::GetRenderWindow() ()
#3 0x000000000040cc80 in SMM (this=0x7fffffffddb0, parent=0x0) at smm.cpp:9
#4 0x0000000000420329 in main (argc=1, argv=0x7fffffffe2a8) at main.cpp:17
My VTK version is 5.4, QT version 4.6.2. QVTK used to work well some weeks
ago, the only thing that might have changed on my system are system updates.
Any ideas?
Thanks a lot!
Leroi
--
View this message in context: http://vtk.1045678.n5.nabble.com/Segmentation-fault-in-QVTKWidget-x11-setup-window-tp2262707p2262707.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list