[vtkusers] Segmentation fault in QVTKWidget::x11_setup_window()
Barth, Sebastian
sebastian.barth at iosb.fraunhofer.de
Tue Aug 3 05:28:46 EDT 2010
Hello Leroi,
try create it without QFlag(0) if possible: new QVTKWidget(this).
You should try the newest version of VTK (5.6.0) because of a lot of bugfixes.
If this doesn't help, it might be an X11 related problem -> Bug report (Yes, this might take some years to be resolved).
Cheers,
Sebastian Barth
-----Ursprüngliche Nachricht-----
Von: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] Im Auftrag von Leroi.Brayden
Gesendet: Dienstag, 3. August 2010 11:00
An: vtkusers at vtk.org
Betreff: [vtkusers] Segmentation fault in QVTKWidget::x11_setup_window()
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.
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list