[vtkusers] Segmentation fault with QT + vtkDEMReader
Pa Set
pasyte at hotmail.it
Sun Jul 29 06:15:20 EDT 2012
Hello,
no .pro file sorry.
The source files in the wiki page were used. So the development chain is
QT + VTK + CMAKE.
The only changes to the sources are shown in the initial message.
I can add for your request the linking output: (same for modified and
unmodified versions)
Linking CXX executable RenderWindowUIMultipleInheritance
/usr/bin/cmake -E cmake_link_script
CMakeFiles/RenderWindowUIMultipleInheritance.dir/link.txt --verbose=1
/usr/bin/c++ -Wno-deprecated
CMakeFiles/RenderWindowUIMultipleInheritance.dir/RenderWindowUIMultipleInheritance.cxx.o
CMakeFiles/RenderWindowUIMultipleInheritance.dir/SimpleViewUI.cxx.o
CMakeFiles/RenderWindowUIMultipleInheritance.dir/moc_SimpleViewUI.cxx.o
-o RenderWindowUIMultipleInheritance -rdynamic /usr/lib/libQVTK.so.5.8.0
/usr/lib/libvtkViews.so.5.8.0 /usr/lib/libvtkInfovis.so.5.8.0
/usr/lib/libvtkWidgets.so.5.8.0 /usr/lib/libvtkHybrid.so.5.8.0
/usr/lib/libvtkVolumeRendering.so.5.8.0 /usr/lib/libvtkParallel.so.5.8.0
/usr/lib/libvtkRendering.so.5.8.0 /usr/lib/libvtkGraphics.so.5.8.0
/usr/lib/libvtkImaging.so.5.8.0 /usr/lib/libvtkIO.so.5.8.0
/usr/lib/libvtkFiltering.so.5.8.0 /usr/lib/libvtkCommon.so.5.8.0 -lm
/usr/lib/libvtksys.so.5.8.0 -ldl /usr/lib/libvtkQtChart.so.5.8.0 -lQtGui
-lQtSql -lQtNetwork -lQtCore -Wl,-rpath,/usr/lib/openmpi/lib
-Wl,-rpath-link,/usr/lib/openmpi/lib
Il 28/07/2012 23:15, Elhassan Abdou ha scritto:
> Hi
>
> Can you send the .pro file please
> El-Hassan Mohamed
> Biomedical engineering
> ------------------------------------------------------------------------
> *From:* Pa Set <pasyte at hotmail.it>
> *To:* vtkusers at vtk.org
> *Sent:* Saturday, July 28, 2012 2:52 PM
> *Subject:* [vtkusers] Segmentation fault with QT + vtkDEMReader
>
> Testing a QT program with vtkDEMReader, compiled with no error but
> exits at runtime with “segfault at 0 ip b65f7d31 sp bf842720 error 6
> in libvtkIO.so.5.8.0[b6529000+4ce000]”.
> I'm definitely making some mistakes. Can anyone point out the right
> way, please?
> Thanks in advance for all feedback.
> Paolo
>
> _Some infos for answers follow:_
> The starting point is this example program
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/RenderWindowUIMultipleInheritance,
> modified in this way *only*:
> ….....
> #include "vtkSmartPointer.h"
> #include <vtkDEMReader.h>
> #include <vtkImageData.h>
>
> // Constructor
> SimpleView::SimpleView()
> {
> this->setupUi(this);
>
> // Read the file
> vtkSmartPointer<vtkDEMReader> reader =
> vtkSmartPointer<vtkDEMReader>::New();
> reader->SetFileName("/usr/share/VTKData/Data/SainteHelens.dem");
> reader->Update();
> …...
>
> _OS and debug:_
> Ubuntu 12.04 with QT + VTK from repos.
> Last Debug gdb:
>
> Thread [1] 7178 [core: 2] (Suspended : Signal : SIGSEGV:Segmentation
> fault)
> vtkDEMReader::ReadProfiles() at 0xb6e3fd31
> vtkDEMReader::RequestData() at 0xb6e40bbc
> vtkImageAlgorithm::ProcessRequest() at 0xb7aa6af3
> vtkExecutive::CallAlgorithm() at 0xb7a64d93
> vtkDemandDrivenPipeline::ExecuteData() at 0xb7a580e6
> vtkDemandDrivenPipeline::ProcessRequest() at 0xb7a5b74f
> vtkStreamingDemandDrivenPipeline::ProcessRequest() at 0xb7bac111
> vtkDemandDrivenPipeline::UpdateData() at 0xb7a59fca
> vtkStreamingDemandDrivenPipeline::Update() at 0xb7badbf3
> vtkExecutive::Update() at 0xb7a654d6
> vtkDemandDrivenPipeline::Update() at 0xb7a58f6b
> vtkStreamingDemandDrivenPipeline::Update() at 0xb7ba8ffb
> vtkAlgorithm::Update() at 0xb79fcb43
> SimpleView::SimpleView() at 0x804bb59
> main() at 0x804b95c
>
>
> _Both default versions work:_
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/RenderWindowUIMultipleInheritance
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/DEMReader ( some tweaking
> from vtkImageMapper3D to vtkImageMapper )
>
>
>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120729/4f9c47cd/attachment.htm>
More information about the vtkusers
mailing list