Segmentation Fault while running Polyhedron demo

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Segmentation Fault while running Polyhedron demo

param98
I got a segmentation fault while running  Polyhedron demo. cmake and make
were executed without error.
The segfault occurs as soon as I run the demo. A window appears for a split
second but segfault occurs before I can interact with it.
Details about my setup:
1. Ubuntu 16.04
2. QGL Viewer 2.6.4
3. Qt 5.6.2
4. OpenGL version 3.0, OpenGL core profile version 4.5
5. CGAL version 4.7

Here is the error message:

$ ./Polyhedron_3
Enable scripts.
# Looking for plugins in directory
"/home/param/Libs/demos/demo/Polyhedron"...
### Loading " libadvancing_front_plugin.so "...  success
### Loading " libcamera_positions_plugin.so "...  success
### Loading " libconvex_hull_plugin.so "...  success
### Loading " libcorefinement_plugin.so "...  success
### Loading " libcut_plugin.so "...  success
### Loading " libedit_polyhedron_plugin.so "...  success
### Loading " libfairing_plugin.so "...  success
### Loading " libfeatures_detection_plugin.so "...  success
### Loading " libgocad_plugin.so "...  success
### Loading " libhole_filling_plugin.so "...  success
### Loading " libhole_filling_polyline_plugin.so "...  success
### Loading " libinside_out_plugin.so "...  success
### Loading " libintersection_plugin.so "...  success
    + Loading Function "libp_klein_function_plugin.so"...
    + Loading Function "libp_sphere_function_plugin.so"...
    + Loading Function "libp_tanglecube_function_plugin.so"...
### Loading " libio_implicit_function_plugin.so "...  success
### Loading " libjet_fitting_plugin.so "...  success
### Loading " libjoin_and_split_polyhedra_plugin.so "...  success
### Loading " libkernel_plugin.so "...  success
### Loading " libmean_curvature_flow_skeleton_plugin.so "...  success
### Loading " libmesh_3_plugin.so "...  success
### Loading " libmesh_segmentation_plugin.so "...  success
### Loading " libmesh_simplification_plugin.so "...  success
### Loading " libnef_io_plugin.so "...  success
### Loading " libnef_plugin.so "...  success
### Loading " libnormal_estimation_plugin.so "...  success
### Loading " liboff_plugin.so "...  success
### Loading " liboff_to_nef_plugin.so "...  success
### Loading " liboff_to_xyz_plugin.so "...  success
### Loading " liborient_soup_plugin.so "...  success
### Loading " libparameterization_plugin.so "...  success
### Loading " libpca_plugin.so "...  success
### Loading " libpoint_inside_polyhedron_plugin.so "...  success
### Loading " libpoint_set_average_spacing_plugin.so "...  success
### Loading " libpoint_set_bilateral_smoothing_plugin.so "...  success
### Loading " libpoint_set_outliers_removal_plugin.so "...  success
### Loading " libpoint_set_selection_plugin.so "...  success
### Loading " libpoint_set_shape_detection_plugin.so "...  success
### Loading " libpoint_set_simplification_plugin.so "...  success
### Loading " libpoint_set_smoothing_plugin.so "...  success
### Loading " libpoint_set_upsampling_plugin.so "...  success
### Loading " libpoint_set_wlop_plugin.so "...  success
### Loading " libpoisson_plugin.so "...  success
### Loading " libpolyhedron_slicer_plugin.so "...  success
### Loading " libpolyhedron_stitching_plugin.so "...  success
### Loading " libpolylines_io_plugin.so "...  success
### Loading " libremeshing_plugin.so "...  success
### Loading " libscale_space_reconstruction_plugin.so "...  success
### Loading " libselection_io_plugin.so "...  success
### Loading " libselection_plugin.so "...  success
### Loading " libself_intersection_plugin.so "...  success
### Loading " libshortest_path_plugin.so "...  success
### Loading " libstl_plugin.so "...  success
### Loading " libsubdivision_methods_plugin.so "...  success
### Loading " libtransform_polyhedron_plugin.so "...  success
### Loading " libtriangulate_facets_plugin.so "...  success
### Loading " libtrivial_plugin.so "...  success
### Loading " libvcm_normal_estimation_plugin.so "...  success
### Loading " libxyz_plugin.so "...  success
Succesfully loaded shader func 'VisibilityVP' in file 'Raycasting.glsl'
Succesfully loaded shader func 'VisibilityFP' in file 'Raycasting.glsl'
Succesfully loaded shader func 'AttributeVP' in file 'Raycasting.glsl'
Succesfully loaded shader func 'AttributeFP' in file 'Raycasting.glsl'
Succesfully loaded shader func 'Finalization' in file 'Finalization.glsl'
Segmentation fault (core dumped)

Any help would be greatly appreciated. Thank you.




--
Sent from: http://cgal-discuss.949826.n4.nabble.com/

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


Reply | Threaded
Open this post in threaded view
|

Re: Segmentation Fault while running Polyhedron demo

Sebastien Loriot (GeometryFactory)
A common issue is when you have a mix of Qt4 and Qt5.
QGlviewer and CGAL demo must be compiled with Qt5.
You can check that by calling ldd Polyhedron_3 and check that only Qt5
libs are used.

Sebastien.

On 03/02/2018 02:28 PM, param98 wrote:

> I got a segmentation fault while running  Polyhedron demo. cmake and make
> were executed without error.
> The segfault occurs as soon as I run the demo. A window appears for a split
> second but segfault occurs before I can interact with it.
> Details about my setup:
> 1. Ubuntu 16.04
> 2. QGL Viewer 2.6.4
> 3. Qt 5.6.2
> 4. OpenGL version 3.0, OpenGL core profile version 4.5
> 5. CGAL version 4.7
>
> Here is the error message:
>
> $ ./Polyhedron_3
> Enable scripts.
> # Looking for plugins in directory
> "/home/param/Libs/demos/demo/Polyhedron"...
> ### Loading " libadvancing_front_plugin.so "...  success
> ### Loading " libcamera_positions_plugin.so "...  success
> ### Loading " libconvex_hull_plugin.so "...  success
> ### Loading " libcorefinement_plugin.so "...  success
> ### Loading " libcut_plugin.so "...  success
> ### Loading " libedit_polyhedron_plugin.so "...  success
> ### Loading " libfairing_plugin.so "...  success
> ### Loading " libfeatures_detection_plugin.so "...  success
> ### Loading " libgocad_plugin.so "...  success
> ### Loading " libhole_filling_plugin.so "...  success
> ### Loading " libhole_filling_polyline_plugin.so "...  success
> ### Loading " libinside_out_plugin.so "...  success
> ### Loading " libintersection_plugin.so "...  success
>      + Loading Function "libp_klein_function_plugin.so"...
>      + Loading Function "libp_sphere_function_plugin.so"...
>      + Loading Function "libp_tanglecube_function_plugin.so"...
> ### Loading " libio_implicit_function_plugin.so "...  success
> ### Loading " libjet_fitting_plugin.so "...  success
> ### Loading " libjoin_and_split_polyhedra_plugin.so "...  success
> ### Loading " libkernel_plugin.so "...  success
> ### Loading " libmean_curvature_flow_skeleton_plugin.so "...  success
> ### Loading " libmesh_3_plugin.so "...  success
> ### Loading " libmesh_segmentation_plugin.so "...  success
> ### Loading " libmesh_simplification_plugin.so "...  success
> ### Loading " libnef_io_plugin.so "...  success
> ### Loading " libnef_plugin.so "...  success
> ### Loading " libnormal_estimation_plugin.so "...  success
> ### Loading " liboff_plugin.so "...  success
> ### Loading " liboff_to_nef_plugin.so "...  success
> ### Loading " liboff_to_xyz_plugin.so "...  success
> ### Loading " liborient_soup_plugin.so "...  success
> ### Loading " libparameterization_plugin.so "...  success
> ### Loading " libpca_plugin.so "...  success
> ### Loading " libpoint_inside_polyhedron_plugin.so "...  success
> ### Loading " libpoint_set_average_spacing_plugin.so "...  success
> ### Loading " libpoint_set_bilateral_smoothing_plugin.so "...  success
> ### Loading " libpoint_set_outliers_removal_plugin.so "...  success
> ### Loading " libpoint_set_selection_plugin.so "...  success
> ### Loading " libpoint_set_shape_detection_plugin.so "...  success
> ### Loading " libpoint_set_simplification_plugin.so "...  success
> ### Loading " libpoint_set_smoothing_plugin.so "...  success
> ### Loading " libpoint_set_upsampling_plugin.so "...  success
> ### Loading " libpoint_set_wlop_plugin.so "...  success
> ### Loading " libpoisson_plugin.so "...  success
> ### Loading " libpolyhedron_slicer_plugin.so "...  success
> ### Loading " libpolyhedron_stitching_plugin.so "...  success
> ### Loading " libpolylines_io_plugin.so "...  success
> ### Loading " libremeshing_plugin.so "...  success
> ### Loading " libscale_space_reconstruction_plugin.so "...  success
> ### Loading " libselection_io_plugin.so "...  success
> ### Loading " libselection_plugin.so "...  success
> ### Loading " libself_intersection_plugin.so "...  success
> ### Loading " libshortest_path_plugin.so "...  success
> ### Loading " libstl_plugin.so "...  success
> ### Loading " libsubdivision_methods_plugin.so "...  success
> ### Loading " libtransform_polyhedron_plugin.so "...  success
> ### Loading " libtriangulate_facets_plugin.so "...  success
> ### Loading " libtrivial_plugin.so "...  success
> ### Loading " libvcm_normal_estimation_plugin.so "...  success
> ### Loading " libxyz_plugin.so "...  success
> Succesfully loaded shader func 'VisibilityVP' in file 'Raycasting.glsl'
> Succesfully loaded shader func 'VisibilityFP' in file 'Raycasting.glsl'
> Succesfully loaded shader func 'AttributeVP' in file 'Raycasting.glsl'
> Succesfully loaded shader func 'AttributeFP' in file 'Raycasting.glsl'
> Succesfully loaded shader func 'Finalization' in file 'Finalization.glsl'
> Segmentation fault (core dumped)
>
> Any help would be greatly appreciated. Thank you.
>
>
>
>
> --
> Sent from: http://cgal-discuss.949826.n4.nabble.com/
>

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


Reply | Threaded
Open this post in threaded view
|

Re: Segmentation Fault while running Polyhedron demo

param98
I did do two installations of Qt but neither was a Qt4 installation.
I ensured that QGL viewer was compiled with Qt 5.6.2.
I don't know how to check if demo is being built with Qt 5.6.2 or not.
Here is the output from ldd Polyhedron_3:

$ldd Polyhedron_3
linux-vdso.so.1 =>  (0x00007ffdd4d96000)
        libCGAL_Qt5.so.11 => /usr/lib/x86_64-linux-gnu/libCGAL_Qt5.so.11
(0x00007fea100dc000)
        libdemo_framework.so =>
/home/param/Libs/demos/demo/Polyhedron/libdemo_framework.so
(0x00007fea0fea6000)
        libpoint_dialog.so =>
/home/param/Libs/demos/demo/Polyhedron/libpoint_dialog.so
(0x00007fea0fc9d000)
        libQGLViewer-qt5.so.2 => /usr/local/lib/libQGLViewer-qt5.so.2
(0x00007fea0f9ec000)
        libQt5OpenGL.so.5 => /home/param/anaconda3/lib/libQt5OpenGL.so.5
(0x00007fea0f795000)
        libQt5Widgets.so.5 => /home/param/anaconda3/lib/libQt5Widgets.so.5
(0x00007fea0ef69000)
        libQt5Gui.so.5 => /home/param/anaconda3/lib/libQt5Gui.so.5
(0x00007fea0e79d000)
        libQt5Script.so.5 => /home/param/anaconda3/lib/libQt5Script.so.5
(0x00007fea0e311000)
        libQt5Core.so.5 => /home/param/anaconda3/lib/libQt5Core.so.5
(0x00007fea0dbef000)
        libstdc++.so.6 => /home/param/anaconda3/lib/libstdc++.so.6
(0x00007fea0d8b5000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fea0d5ac000)
        libgcc_s.so.1 => /home/param/anaconda3/lib/libgcc_s.so.1
(0x00007fea0d39a000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fea0cfd0000)
        libQt5Svg.so.5 => /home/param/anaconda3/lib/libQt5Svg.so.5
(0x00007fea0cd7d000)
        libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
(0x00007fea0cb0a000)
        libgl_splat.so => /home/param/Libs/demos/demo/Polyhedron/libgl_splat.so
(0x00007fea0c8fe000)
        libGLU.so.1 => /usr/lib/x86_64-linux-gnu/libGLU.so.1 (0x00007fea0c68f000)
        libQt5Xml.so.5 => /home/param/anaconda3/lib/libQt5Xml.so.5
(0x00007fea0c452000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007fea0c235000)
        libpng16.so.16 => /home/param/anaconda3/lib/./libpng16.so.16
(0x00007fea0bffe000)
        libz.so.1 => /home/param/anaconda3/lib/./libz.so.1 (0x00007fea0bde7000)
        libicui18n.so.58 => /home/param/anaconda3/lib/./libicui18n.so.58
(0x00007fea0b972000)
        libicuuc.so.58 => /home/param/anaconda3/lib/./libicuuc.so.58
(0x00007fea0b5c4000)
        libicudata.so.58 => /home/param/anaconda3/lib/./libicudata.so.58
(0x00007fea09ac4000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fea098c0000)
        libgthread-2.0.so.0 => /home/param/anaconda3/lib/./libgthread-2.0.so.0
(0x00007fea096be000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fea094b6000)
        libglib-2.0.so.0 => /home/param/anaconda3/lib/./libglib-2.0.so.0
(0x00007fea091a3000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fea10316000)
        libexpat.so.1 => /home/param/anaconda3/lib/libexpat.so.1
(0x00007fea08f70000)
        libxcb-dri3.so.0 => /home/param/anaconda3/lib/libxcb-dri3.so.0
(0x00007fea08d6d000)
        libxcb-present.so.0 => /home/param/anaconda3/lib/libxcb-present.so.0
(0x00007fea08b6a000)
        libxcb-sync.so.1 => /home/param/anaconda3/lib/libxcb-sync.so.1
(0x00007fea08963000)
        libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1
(0x00007fea08760000)
        libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0
(0x00007fea08530000)
        libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007fea0831e000)
        libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1
(0x00007fea0811b000)
        libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3
(0x00007fea07f15000)
        libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1
(0x00007fea07d13000)
        libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fea079d9000)
        libxcb-glx.so.0 => /home/param/anaconda3/lib/libxcb-glx.so.0
(0x00007fea077bd000)
        libxcb-dri2.so.0 => /home/param/anaconda3/lib/libxcb-dri2.so.0
(0x00007fea075b8000)
        libxcb.so.1 => /home/param/anaconda3/lib/libxcb.so.1 (0x00007fea0738f000)
        libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1
(0x00007fea07189000)
        libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007fea06f78000)
        libpcre.so.1 => /home/param/anaconda3/lib/././libpcre.so.1
(0x00007fea06d33000)
        libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007fea06b2f000)





--
Sent from: http://cgal-discuss.949826.n4.nabble.com/

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


Reply | Threaded
Open this post in threaded view
|

Re: Segmentation Fault while running Polyhedron demo

Sebastien Loriot (GeometryFactory)
If you have two Qt5 version installed, that might be reason of the crash
(in particular if the lib are not compatible).

Look for example to Qt5_DIR in the CMakeCache.txt of Polyhedron demo
and call ldd  on /usr/local/lib/libQGLViewer-qt5.so.2 to check if
the version is the same. (when compiling QGLViewer, the qmake used
must be the one coming with the QT5 installation you want to use).

Sebastien.

On 03/02/2018 04:58 PM, param98 wrote:

> I did do two installations of Qt but neither was a Qt4 installation.
> I ensured that QGL viewer was compiled with Qt 5.6.2.
> I don't know how to check if demo is being built with Qt 5.6.2 or not.
> Here is the output from ldd Polyhedron_3:
>
> $ldd Polyhedron_3
> linux-vdso.so.1 =>  (0x00007ffdd4d96000)
> libCGAL_Qt5.so.11 => /usr/lib/x86_64-linux-gnu/libCGAL_Qt5.so.11
> (0x00007fea100dc000)
> libdemo_framework.so =>
> /home/param/Libs/demos/demo/Polyhedron/libdemo_framework.so
> (0x00007fea0fea6000)
> libpoint_dialog.so =>
> /home/param/Libs/demos/demo/Polyhedron/libpoint_dialog.so
> (0x00007fea0fc9d000)
> libQGLViewer-qt5.so.2 => /usr/local/lib/libQGLViewer-qt5.so.2
> (0x00007fea0f9ec000)
> libQt5OpenGL.so.5 => /home/param/anaconda3/lib/libQt5OpenGL.so.5
> (0x00007fea0f795000)
> libQt5Widgets.so.5 => /home/param/anaconda3/lib/libQt5Widgets.so.5
> (0x00007fea0ef69000)
> libQt5Gui.so.5 => /home/param/anaconda3/lib/libQt5Gui.so.5
> (0x00007fea0e79d000)
> libQt5Script.so.5 => /home/param/anaconda3/lib/libQt5Script.so.5
> (0x00007fea0e311000)
> libQt5Core.so.5 => /home/param/anaconda3/lib/libQt5Core.so.5
> (0x00007fea0dbef000)
> libstdc++.so.6 => /home/param/anaconda3/lib/libstdc++.so.6
> (0x00007fea0d8b5000)
> libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fea0d5ac000)
> libgcc_s.so.1 => /home/param/anaconda3/lib/libgcc_s.so.1
> (0x00007fea0d39a000)
> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fea0cfd0000)
> libQt5Svg.so.5 => /home/param/anaconda3/lib/libQt5Svg.so.5
> (0x00007fea0cd7d000)
> libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
> (0x00007fea0cb0a000)
> libgl_splat.so => /home/param/Libs/demos/demo/Polyhedron/libgl_splat.so
> (0x00007fea0c8fe000)
> libGLU.so.1 => /usr/lib/x86_64-linux-gnu/libGLU.so.1 (0x00007fea0c68f000)
> libQt5Xml.so.5 => /home/param/anaconda3/lib/libQt5Xml.so.5
> (0x00007fea0c452000)
> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
> (0x00007fea0c235000)
> libpng16.so.16 => /home/param/anaconda3/lib/./libpng16.so.16
> (0x00007fea0bffe000)
> libz.so.1 => /home/param/anaconda3/lib/./libz.so.1 (0x00007fea0bde7000)
> libicui18n.so.58 => /home/param/anaconda3/lib/./libicui18n.so.58
> (0x00007fea0b972000)
> libicuuc.so.58 => /home/param/anaconda3/lib/./libicuuc.so.58
> (0x00007fea0b5c4000)
> libicudata.so.58 => /home/param/anaconda3/lib/./libicudata.so.58
> (0x00007fea09ac4000)
> libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fea098c0000)
> libgthread-2.0.so.0 => /home/param/anaconda3/lib/./libgthread-2.0.so.0
> (0x00007fea096be000)
> librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fea094b6000)
> libglib-2.0.so.0 => /home/param/anaconda3/lib/./libglib-2.0.so.0
> (0x00007fea091a3000)
> /lib64/ld-linux-x86-64.so.2 (0x00007fea10316000)
> libexpat.so.1 => /home/param/anaconda3/lib/libexpat.so.1
> (0x00007fea08f70000)
> libxcb-dri3.so.0 => /home/param/anaconda3/lib/libxcb-dri3.so.0
> (0x00007fea08d6d000)
> libxcb-present.so.0 => /home/param/anaconda3/lib/libxcb-present.so.0
> (0x00007fea08b6a000)
> libxcb-sync.so.1 => /home/param/anaconda3/lib/libxcb-sync.so.1
> (0x00007fea08963000)
> libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1
> (0x00007fea08760000)
> libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0
> (0x00007fea08530000)
> libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007fea0831e000)
> libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1
> (0x00007fea0811b000)
> libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3
> (0x00007fea07f15000)
> libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1
> (0x00007fea07d13000)
> libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fea079d9000)
> libxcb-glx.so.0 => /home/param/anaconda3/lib/libxcb-glx.so.0
> (0x00007fea077bd000)
> libxcb-dri2.so.0 => /home/param/anaconda3/lib/libxcb-dri2.so.0
> (0x00007fea075b8000)
> libxcb.so.1 => /home/param/anaconda3/lib/libxcb.so.1 (0x00007fea0738f000)
> libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1
> (0x00007fea07189000)
> libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007fea06f78000)
> libpcre.so.1 => /home/param/anaconda3/lib/././libpcre.so.1
> (0x00007fea06d33000)
> libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007fea06b2f000)
>
>
>
>
>
> --
> Sent from: http://cgal-discuss.949826.n4.nabble.com/
>

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss