gkv311 / occt-samples-gtk

Open CASCADE Technology sample - 3D Viewer within GTK window
Other
15 stars 5 forks source link

Error on exit #3

Open Peta-T opened 2 years ago

Peta-T commented 2 years ago

Hello, its super basic program for start with occt and gtk. Thanks But I got this message after exit by top right cross ... Display scale: 1 Abort an exception was raised, but no catch was found. ... The exception is:SIGSEGV 'segmentation violation' detected. Address 20.

Do you know why? Thanks

gkv311 commented 2 years ago

It doesn't crash like this for me.

Could you provide more details of your configuration (OS version, desktop (Gnome / KDE / XFCE / etc.), CPU architecture, OCCT version, graphics card / OpenGL version, etc.) and building configuration (debug/release/etc.).

Peta-T commented 2 years ago
occt-V7_6_0

ntb:~/occt-samples-gtk-master/build$ cmake ../
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindOpenGL.cmake:305 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/x86_64-linux-gnu/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  CMakeLists.txt:17 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so   
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'gtkmm-3.0'
--   Found gtkmm-3.0, version 3.24.2
-- Using OpenCASCADE from "/usr/local"
-- OpenCASCADE_INCLUDE_DIR=/usr/local/include/opencascade
-- OpenCASCADE_LIBRARY_DIR=/usr/local/lib
-- Configuring done
-- Generating done
-- Build files have been written to: /home/petat/occt-samples-gtk-master/build
ntb:~/occt-samples-gtk-master/build$ make
Scanning dependencies of target occt-gtkmm-sample
[ 33%] Building CXX object CMakeFiles/occt-gtkmm-sample.dir/main.cpp.o
[ 66%] Building CXX object CMakeFiles/occt-gtkmm-sample.dir/OcctGtkViewer.cxx.o
[100%] Linking CXX executable occt-gtkmm-sample
[100%] Built target occt-gtkmm-sample
ntb:~/occt-samples-gtk-master/build$ 

Linux debian64ntb 5.8.12 #1 SMP Sun Sep 27 17:01:02 CEST 2020 x86_64 GNU/Linux
lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:    11
Codename:    bullseye

sudo lshw
debian64ntb                 
    description: Notebook
    product: HP Laptop 17-ca1xxx (6WT63EA#BCM)
    vendor: HP
    version: Chassis Version
    serial: 5CG9156852
    width: 64 bits
    capabilities: smbios-3.2.1 dmi-3.2.1 smp vsyscall32
    configuration: boot=normal chassis=notebook family=103C_5335KV HP Notebook sku=6WT63EA#BCM uuid=F8685832-C426-4EE6-9490-6D41C73170EA
  *-core
       description: Motherboard
       product: 85B3
       vendor: HP
       physical id: 0
       version: 91.49
       serial: PJABF00WBC10TF
       slot: Base Board Chassis Location
     *-firmware
          description: BIOS
          vendor: AMI
          physical id: 0
          version: F.61
          date: 03/31/2021
          size: 64KiB
          capacity: 16MiB
          capabilities: pci upgrade shadowing cdboot bootselect edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb smartbattery biosbootspecification netboot uefi
     *-memory
          description: System Memory
          physical id: 9
          slot: System board or motherboard
          size: 16GiB
        *-bank:0
             description: SODIMM DDR4 Synchronous Unbuffered (Unregistered) 2667 MHz (0,4 ns)
             product: HP26D4S9S8ME-8
             vendor: Kingston
             physical id: 0
             serial: DF2BA726
             slot: Bottom - Slot 1 (left)
             size: 8GiB
             width: 64 bits
             clock: 2667MHz (0.4ns)
        *-bank:1
             description: SODIMM DDR4 Synchronous Unbuffered (Unregistered) 2667 MHz (0,4 ns)
             product: HP26D4S9S8ME-8
             vendor: Kingston
             physical id: 1
             serial: E32BE028
             slot: Bottom - Slot 2 (right)
             size: 8GiB
             width: 64 bits
             clock: 2667MHz (0.4ns)
     *-cache:0
          description: L1 cache
          physical id: b
          slot: L1 - Cache
          size: 384KiB
          capacity: 384KiB
          clock: 1GHz (1.0ns)
          capabilities: pipeline-burst internal write-back unified
          configuration: level=1
     *-cache:1
          description: L2 cache
          physical id: c
          slot: L2 - Cache
          size: 2MiB
          capacity: 2MiB
          clock: 1GHz (1.0ns)
          capabilities: pipeline-burst internal write-back unified
          configuration: level=2
     *-cache:2
          description: L3 cache
          physical id: d
          slot: L3 - Cache
          size: 4MiB
          capacity: 4MiB
          clock: 1GHz (1.0ns)
          capabilities: pipeline-burst internal write-back unified
          configuration: level=3
     *-cpu
          description: CPU
          product: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
          vendor: Advanced Micro Devices [AMD]
          physical id: e
          bus info: cpu@0
          version: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
          serial: Unknown
          slot: FP5
          size: 2699MHz
          capacity: 3700MHz
          width: 64 bits
          clock: 100MHz
          capabilities: lm fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp x86-64 constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb hw_pstate sme ssbd sev ibpb vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 xsaves clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif overflow_recov succor smca cpufreq
          configuration: cores=4 enabledcores=4 threads=8
     *-pci:0
          description: Host bridge
          product: Raven/Raven2 Root Complex
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 00
          width: 32 bits
          clock: 33MHz
        *-generic UNCLAIMED
             description: IOMMU
             product: Raven/Raven2 IOMMU
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 0.2
             bus info: pci@0000:00:00.2
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: msi ht bus_master cap_list
             configuration: latency=0
        *-pci:0
             description: PCI bridge
             product: Raven/Raven2 PCIe GPP Bridge [6:0]
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 1.6
             bus info: pci@0000:00:01.6
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: pci pm pciexpress msi ht normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:26 ioport:f000(size=4096) memory:fcf00000-fcffffff
           *-network
                description: Ethernet interface
                product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: pci@0000:01:00.0
                logical name: eno1
                version: 15
                serial: c4:65:16:8b:32:d0
                size: 100Mbit/s
                capacity: 1Gbit/s
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
                configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.8.12 duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.0.109 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
                resources: irq:47 ioport:f000(size=256) memory:fcf04000-fcf04fff memory:fcf00000-fcf03fff
        *-pci:1
             description: PCI bridge
             product: Raven/Raven2 PCIe GPP Bridge [6:0]
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 1.7
             bus info: pci@0000:00:01.7
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: pci pm pciexpress msi ht normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:27 ioport:e000(size=4096) memory:fce00000-fcefffff
           *-network
                description: Wireless interface
                product: RTL8821CE 802.11ac PCIe Wireless Network Adapter
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: pci@0000:02:00.0
                logical name: wlp2s0
                version: 00
                serial: a4:fc:77:17:56:ed
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
                configuration: broadcast=yes driver=rtl8821ce driverversion=5.8.12 ip=192.168.0.102 latency=0 multicast=yes wireless=IEEE 802.11bgn
                resources: irq:56 ioport:e000(size=256) memory:fce00000-fce0ffff
        *-pci:2
             description: PCI bridge
             product: Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus A
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 8.1
             bus info: pci@0000:00:08.1
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: pci pm pciexpress msi normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:28 ioport:d000(size=4096) memory:fc900000-fccfffff ioport:e0000000(size=270532608)
           *-display
                description: VGA compatible controller
                product: Picasso
                vendor: Advanced Micro Devices, Inc. [AMD/ATI]
                physical id: 0
                bus info: pci@0000:03:00.0
                version: c2
                width: 64 bits
                clock: 33MHz
                capabilities: pm pciexpress msi msix vga_controller bus_master cap_list rom
                configuration: driver=amdgpu latency=0
                resources: irq:24 memory:e0000000-efffffff memory:f0000000-f01fffff ioport:d000(size=256) memory:fcc00000-fcc7ffff memory:c0000-dffff
           *-multimedia:0
                description: Audio device
                product: Raven/Raven2/Fenghuang HDMI/DP Audio Controller
                vendor: Advanced Micro Devices, Inc. [AMD/ATI]
                physical id: 0.1
                bus info: pci@0000:03:00.1
                version: 00
                width: 32 bits
                clock: 33MHz
                capabilities: pm pciexpress msi bus_master cap_list
                configuration: driver=snd_hda_intel latency=0
                resources: irq:58 memory:fccc8000-fcccbfff
           *-generic
                description: Encryption controller
                product: Family 17h (Models 10h-1fh) Platform Security Processor
                vendor: Advanced Micro Devices, Inc. [AMD]
                physical id: 0.2
                bus info: pci@0000:03:00.2
                version: 00
                width: 32 bits
                clock: 33MHz
                capabilities: pm pciexpress msi msix bus_master cap_list
                configuration: driver=ccp latency=0
                resources: irq:48 memory:fcb00000-fcbfffff memory:fcccc000-fcccdfff
           *-usb:0
                description: USB controller
                product: Raven USB 3.1
                vendor: Advanced Micro Devices, Inc. [AMD]
                physical id: 0.3
                bus info: pci@0000:03:00.3
                version: 00
                width: 64 bits
                clock: 33MHz
                capabilities: pm pciexpress msi msix xhci bus_master cap_list
                configuration: driver=xhci_hcd latency=0
                resources: irq:30 memory:fca00000-fcafffff
              *-usbhost:0
                   product: xHCI Host Controller
                   vendor: Linux 5.8.12 xhci-hcd
                   physical id: 0
                   bus info: usb@1
                   logical name: usb1
                   version: 5.08
                   capabilities: usb-2.00
                   configuration: driver=hub slots=4 speed=480Mbit/s
                 *-usb:0
                      description: Printer
                      product: SCX-4300 Series
                      vendor: Samsung
                      physical id: 1
                      bus info: usb@1:1
                      version: 1.00
                      serial: 1457BFFS400173M.
                      capabilities: usb-2.00 bidirectional
                      configuration: driver=usblp maxpower=2mA speed=480Mbit/s
                 *-usb:1
                      description: Mouse
                      product: Wired Mouse
                      vendor: KYE SYSTEMS CORP.
                      physical id: 2
                      bus info: usb@1:2
                      version: 24.58
                      capabilities: usb-1.10
                      configuration: driver=usbhid maxpower=100mA speed=1Mbit/s
              *-usbhost:1
                   product: xHCI Host Controller
                   vendor: Linux 5.8.12 xhci-hcd
                   physical id: 1
                   bus info: usb@2
                   logical name: usb2
                   version: 5.08
                   capabilities: usb-3.10
                   configuration: driver=hub slots=4 speed=10000Mbit/s
           *-usb:1
                description: USB controller
                product: Raven USB 3.1
                vendor: Advanced Micro Devices, Inc. [AMD]
                physical id: 0.4
                bus info: pci@0000:03:00.4
                version: 00
                width: 64 bits
                clock: 33MHz
                capabilities: pm pciexpress msi msix xhci bus_master cap_list
                configuration: driver=xhci_hcd latency=0
                resources: irq:24 memory:fc900000-fc9fffff
              *-usbhost:0
                   product: xHCI Host Controller
                   vendor: Linux 5.8.12 xhci-hcd
                   physical id: 0
                   bus info: usb@3
                   logical name: usb3
                   version: 5.08
                   capabilities: usb-2.00
                   configuration: driver=hub slots=2 speed=480Mbit/s
                 *-usb:0
                      description: Mass storage device
                      product: ASMT1153
                      vendor: asmedia
                      physical id: 1
                      bus info: usb@3:1
                      logical name: scsi2
                      version: 1.00
                      serial: GTN02GTC1NHU
                      capabilities: usb-2.00 scsi emulated scsi-host
                      configuration: driver=usb-storage speed=480Mbit/s
                    *-cdrom
                         description: DVD writer
                         product: DVDRW  DA8AESH
                         vendor: hp
                         physical id: 0.0.0
                         bus info: scsi@2:0.0.0
                         logical name: /dev/cdrom
                         logical name: /dev/cdrw
                         logical name: /dev/dvd
                         logical name: /dev/dvdrw
                         logical name: /dev/sr0
                         version: 0
                         serial: UHN1CTG20NTG
                         capabilities: removable audio cd-r cd-rw dvd dvd-r
                         configuration: ansiversion=6 status=open
                 *-usb:1
                      description: USB hub
                      product: USB2.0 Hub
                      vendor: Genesys Logic, Inc.
                      physical id: 2
                      bus info: usb@3:2
                      version: 88.32
                      capabilities: usb-2.00
                      configuration: driver=hub maxpower=100mA slots=4 speed=480Mbit/s
                    *-usb:0
                         description: Video
                         product: HP TrueVision HD Camera
                         vendor: SunplusIT Inc
                         physical id: 1
                         bus info: usb@3:2.1
                         version: 0.05
                         capabilities: usb-2.01
                         configuration: driver=uvcvideo maxpower=500mA speed=480Mbit/s
                    *-usb:1
                         description: Bluetooth wireless interface
                         product: Bluetooth Radio
                         vendor: Realtek
                         physical id: 2
                         bus info: usb@3:2.2
                         version: 1.10
                         serial: 00e04c000001
                         capabilities: bluetooth usb-1.10
                         configuration: driver=btusb maxpower=500mA speed=12Mbit/s
              *-usbhost:1
                   product: xHCI Host Controller
                   vendor: Linux 5.8.12 xhci-hcd
                   physical id: 1
                   bus info: usb@4
                   logical name: usb4
                   version: 5.08
                   capabilities: usb-3.10
                   configuration: driver=hub slots=1 speed=10000Mbit/s
           *-multimedia:1 UNCLAIMED
                description: Multimedia controller
                product: Raven/Raven2/FireFlight/Renoir Audio Processor
                vendor: Advanced Micro Devices, Inc. [AMD]
                physical id: 0.5
                bus info: pci@0000:03:00.5
                version: 00
                width: 32 bits
                clock: 33MHz
                capabilities: pm pciexpress msi bus_master cap_list
                configuration: latency=0
                resources: memory:fcc80000-fccbffff
           *-multimedia:2
                description: Audio device
                product: Family 17h (Models 10h-1fh) HD Audio Controller
                vendor: Advanced Micro Devices, Inc. [AMD]
                physical id: 0.6
                bus info: pci@0000:03:00.6
                version: 00
                width: 32 bits
                clock: 33MHz
                capabilities: pm pciexpress msi bus_master cap_list
                configuration: driver=snd_hda_intel latency=0
                resources: irq:59 memory:fccc0000-fccc7fff
        *-pci:3
             description: PCI bridge
             product: Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus B
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 8.2
             bus info: pci@0000:00:08.2
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: pci pm pciexpress msi normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:29 memory:fcd00000-fcdfffff
           *-sata
                description: SATA controller
                product: FCH SATA Controller [AHCI mode]
                vendor: Advanced Micro Devices, Inc. [AMD]
                physical id: 0
                bus info: pci@0000:04:00.0
                logical name: scsi0
                logical name: scsi1
                version: 61
                width: 32 bits
                clock: 33MHz
                capabilities: sata pm pciexpress msi ahci_1.0 bus_master cap_list emulated
                configuration: driver=ahci latency=0
                resources: irq:49 memory:fcd00000-fcd007ff
              *-disk:0
                   description: ATA Disk
                   product: SAMSUNG MZNLN128
                   physical id: 0
                   bus info: scsi@0:0.0.0
                   logical name: /dev/sda
                   version: 4H3Q
                   serial: S3T8NX1M228728
                   size: 119GiB (128GB)
                   capabilities: gpt-1.00 partitioned partitioned:gpt
                   configuration: ansiversion=5 guid=3d7cf13c-e0ff-4a81-9d62-41c7340a46d8 logicalsectorsize=512 sectorsize=4096
                 *-volume:0
                      description: Windows FAT volume
                      vendor: MSDOS5.0
                      physical id: 1
                      bus info: scsi@0:0.0.0,1
                      logical name: /dev/sda1
                      version: FAT32
                      serial: ee4d-8e6a
                      size: 255MiB
                      capacity: 259MiB
                      capabilities: boot nomount fat initialized
                      configuration: FATs=2 filesystem=fat label=SYSTEM name=EFI system partition
                 *-volume:1
                      description: reserved partition
                      vendor: Windows
                      physical id: 2
                      bus info: scsi@0:0.0.0,2
                      logical name: /dev/sda2
                      serial: 2651238c-8412-475b-ad6c-ab07227b5704
                      capacity: 15MiB
                      capabilities: nofs nomount
                      configuration: name=Microsoft reserved partition
                 *-volume:2
                      description: Windows NTFS volume
                      vendor: Windows
                      physical id: 3
                      bus info: scsi@0:0.0.0,3
                      logical name: /dev/sda3
                      version: 3.1
                      serial: 48c1510c-fa3c-334f-9c55-84b19499b2fd
                      size: 117GiB
                      capacity: 118GiB
                      capabilities: ntfs initialized
                      configuration: clustersize=4096 created=2019-01-09 03:11:55 filesystem=ntfs label=Windows name=Basic data partition state=clean
                 *-volume:3
                      description: Windows NTFS volume
                      vendor: Windows
                      physical id: 4
                      bus info: scsi@0:0.0.0,4
                      logical name: /dev/sda4
                      version: 3.1
                      serial: 1e3f-1043
                      size: 949MiB
                      capacity: 979MiB
                      capabilities: boot precious nomount ntfs initialized
                      configuration: clustersize=4096 created=2019-04-14 00:07:12 filesystem=ntfs label=Windows RE tools name=Basic data partition state=clean
              *-disk:1
                   description: ATA Disk
                   product: ST1000LM035-1RK1
                   physical id: 1
                   bus info: scsi@1:0.0.0
                   logical name: /dev/sdb
                   version: RSM7
                   serial: WL1SDQ6N
                   size: 931GiB (1TB)
                   capabilities: gpt-1.00 partitioned partitioned:gpt
                   configuration: ansiversion=5 guid=a1841542-bfd0-4342-b533-9a59c77894f2 logicalsectorsize=512 sectorsize=4096
                 *-volume:0
                      description: data partition
                      vendor: Windows
                      physical id: 1
                      bus info: scsi@1:0.0.0,1
                      logical name: /dev/sdb1
                      serial: f112b8d2-fb48-4226-8635-7dc924822a47
                      capacity: 837GiB
                      configuration: name=Basic data partition
                 *-volume:1
                      description: Windows FAT volume
                      vendor: mkfs.fat
                      physical id: 2
                      bus info: scsi@1:0.0.0,2
                      logical name: /dev/sdb2
                      logical name: /boot/efi
                      version: FAT32
                      serial: 74cc-2082
                      size: 499MiB
                      capacity: 512MiB
                      capabilities: boot fat initialized
                      configuration: FATs=2 filesystem=fat mount.fstype=vfat mount.options=rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro state=mounted
                 *-volume:2
                      description: EXT4 volume
                      vendor: Linux
                      physical id: 3
                      bus info: scsi@1:0.0.0,3
                      logical name: /dev/sdb3
                      logical name: /
                      version: 1.0
                      serial: fc6c7ec0-afa3-451c-8a7c-9c668da04063
                      size: 93GiB
                      capabilities: journaled extended_attributes large_files huge_files dir_nlink recover 64bit extents ext4 ext2 initialized
                      configuration: created=2019-10-05 10:41:48 filesystem=ext4 lastmountpoint=/ modified=2022-01-30 20:07:52 mount.fstype=ext4 mount.options=rw,relatime,errors=remount-ro mounted=2022-01-30 19:08:21 state=mounted
        *-serial
             description: SMBus
             product: FCH SMBus Controller
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 14
             bus info: pci@0000:00:14.0
             version: 61
             width: 32 bits
             clock: 66MHz
             configuration: driver=piix4_smbus latency=0
             resources: irq:0
        *-isa
             description: ISA bridge
             product: FCH LPC Bridge
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 14.3
             bus info: pci@0000:00:14.3
             version: 51
             width: 32 bits
             clock: 66MHz
             capabilities: isa bus_master
             configuration: latency=0
     *-pci:1
          description: Host bridge
          product: Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 101
          bus info: pci@0000:00:01.0
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:2
          description: Host bridge
          product: Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 102
          bus info: pci@0000:00:08.0
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:3
          description: Host bridge
          product: Raven/Raven2 Device 24: Function 0
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 103
          bus info: pci@0000:00:18.0
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:4
          description: Host bridge
          product: Raven/Raven2 Device 24: Function 1
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 104
          bus info: pci@0000:00:18.1
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:5
          description: Host bridge
          product: Raven/Raven2 Device 24: Function 2
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 105
          bus info: pci@0000:00:18.2
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:6
          description: Host bridge
          product: Raven/Raven2 Device 24: Function 3
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 106
          bus info: pci@0000:00:18.3
          version: 00
          width: 32 bits
          clock: 33MHz
          configuration: driver=k10temp
          resources: irq:0
     *-pci:7
          description: Host bridge
          product: Raven/Raven2 Device 24: Function 4
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 107
          bus info: pci@0000:00:18.4
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:8
          description: Host bridge
          product: Raven/Raven2 Device 24: Function 5
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 108
          bus info: pci@0000:00:18.5
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:9
          description: Host bridge
          product: Raven/Raven2 Device 24: Function 6
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 109
          bus info: pci@0000:00:18.6
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:10
          description: Host bridge
          product: Raven/Raven2 Device 24: Function 7
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 10a
          bus info: pci@0000:00:18.7
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pnp00:00
          product: PnP device PNP0c01
          physical id: 1
          capabilities: pnp
          configuration: driver=system
     *-pnp00:01
          product: PnP device PNP0b00
          physical id: 2
          capabilities: pnp
          configuration: driver=rtc_cmos
     *-pnp00:02
          product: PnP device HPQ8001
          physical id: 3
          capabilities: pnp
          configuration: driver=i8042 kbd
     *-pnp00:03
          product: PnP device ETD0752
          physical id: 4
          capabilities: pnp
          configuration: driver=i8042 aux
     *-pnp00:04
          product: PnP device PNP0c02
          physical id: 5
          capabilities: pnp
          configuration: driver=system
  *-battery
       description: Lithium Ion Battery
       product: HT03041X
       vendor: 333-54-5D-A
       physical id: 1
       version: 02/20/2019
       serial: 38255 02/20/2019
       slot: Primary
       capacity: 41750mWh
       configuration: voltage=11,6V
  *-network
       description: Ethernet interfaceglxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: X.Org (0x1002)
    Device: AMD RAVEN (DRM 3.38.0, 5.8.12, LLVM 9.0.0) (0x15d8)
    Version: 19.2.0
    Accelerated: yes
    Video memory: 2048MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 4.5
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 1918 MB, largest block: 1918 MB
    VBO free aux. memory - total: 3033 MB, largest block: 3033 MB
    Texture free memory - total: 1918 MB, largest block: 1918 MB
    Texture free aux. memory - total: 3033 MB, largest block: 3033 MB
    Renderbuffer free memory - total: 1918 MB, largest block: 1918 MB
    Renderbuffer free aux. memory - total: 3033 MB, largest block: 3033 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 2048 MB
    Total available memory: 5120 MB
    Currently available dedicated video memory: 1918 MB
OpenGL vendor string: X.Org
OpenGL renderer string: AMD RAVEN (DRM 3.38.0, 5.8.12, LLVM 9.0.0)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 19.2.0-devel
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.5 (Compatibility Profile) Mesa 19.2.0-devel
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 19.2.0-devel
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

       physical id: 2
       logical name: docker0
       serial: 02:42:d4:8b:41:ef
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.17.0.1 link=no multicast=yes

gdb say: ... ResolutionRatio: 1.33333 Display scale: 1 [New Thread 0x7fff88ff9700 (LWP 374664)] [Thread 0x7fffab7fe700 (LWP 374643) exited] --Type for more, q to quit, c to continue without paging--RET

Thread 1 "occt-gtkmm-samp" received signal SIGSEGV, Segmentation fault. 0x00007fffea807105 in ?? () from /opt/amdgpu/lib/x86_64-linux-gnu/dri/radeonsi_dri.so (gdb)

Peta-T commented 2 years ago

There is completly output from gdb:

ntb:~/occt-samples-gtk-master/build$ gdb ./occt-gtkmm-sample 
GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./occt-gtkmm-sample...
(No debugging symbols found in ./occt-gtkmm-sample)
(gdb) r
Starting program: /home/petat/occt-samples-gtk-master/build/occt-gtkmm-sample 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff1665700 (LWP 376759)]
[New Thread 0x7ffff0e64700 (LWP 376760)]
[New Thread 0x7fffea56b700 (LWP 376761)]
[New Thread 0x7fffe9c29700 (LWP 376762)]
[New Thread 0x7fffe9428700 (LWP 376763)]
[New Thread 0x7fffe8c27700 (LWP 376764)]
[New Thread 0x7fffe0da7700 (LWP 376765)]
[New Thread 0x7fffcbfff700 (LWP 376766)]
[New Thread 0x7fffcb7fe700 (LWP 376767)]
[New Thread 0x7fffcaffd700 (LWP 376768)]
[New Thread 0x7fffca7fc700 (LWP 376769)]
[New Thread 0x7fffc9ffb700 (LWP 376770)]
[New Thread 0x7fffc97fa700 (LWP 376771)]
[New Thread 0x7fffc8ff9700 (LWP 376772)]
[New Thread 0x7fffabfff700 (LWP 376773)]
[New Thread 0x7fffab7fe700 (LWP 376774)]
[New Thread 0x7fffaaffd700 (LWP 376775)]
[New Thread 0x7fffaa7fc700 (LWP 376776)]
[New Thread 0x7fffa9ffb700 (LWP 376777)]
[New Thread 0x7fffa97fa700 (LWP 376778)]
[New Thread 0x7fffa8ff9700 (LWP 376779)]
[New Thread 0x7fff8bfff700 (LWP 376780)]
[New Thread 0x7fff8b7fe700 (LWP 376781)]
[New Thread 0x7fff8affd700 (LWP 376782)]
[New Thread 0x7fff8a7fc700 (LWP 376783)]
[New Thread 0x7fff89ffb700 (LWP 376784)]
[New Thread 0x7fff897fa700 (LWP 376785)]
TKOpenGl | Type: Other | ID: 0 | Severity: Medium | Message:
  OpenGl_Window::CreateWindow: window Visual is incomplete: no depth buffer, no stencil buffer
GLXDirectRendering: Yes
GLXVendor: SGI
GLXVersion: 1.4
GLXExtensions: GLX_ARB_create_context GLX_ARB_create_context_no_error GLX_ARB_create_context_profile GLX_ARB_fbconfig_float GLX_ARB_framebuffer_sRGB GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_buffer_age GLX_EXT_create_context_es2_profile GLX_EXT_create_context_es_profile GLX_EXT_fbconfig_packed_float GLX_EXT_framebuffer_sRGB GLX_EXT_import_context GLX_EXT_texture_from_pixmap GLX_EXT_visual_info GLX_EXT_visual_rating GLX_MESA_copy_sub_buffer GLX_MESA_query_renderer GLX_MESA_swap_control GLX_OML_swap_method GLX_OML_sync_control GLX_SGIS_multisample GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGIX_visual_select_group GLX_SGI_make_current_read GLX_SGI_video_sync 
GLXClientVendor: Mesa Project and SGI
GLXClientVersion: 1.4
GLXClientExtensions: GLX_ARB_context_flush_control GLX_ARB_create_context GLX_ARB_create_context_no_error GLX_ARB_create_context_profile GLX_ARB_create_context_robustness GLX_ARB_fbconfig_float GLX_ARB_framebuffer_sRGB GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_buffer_age GLX_EXT_create_context_es2_profile GLX_EXT_create_context_es_profile GLX_EXT_fbconfig_packed_float GLX_EXT_framebuffer_sRGB GLX_EXT_import_context GLX_EXT_texture_from_pixmap GLX_EXT_visual_info GLX_EXT_visual_rating GLX_INTEL_swap_event GLX_MESA_copy_sub_buffer GLX_MESA_multithread_makecurrent GLX_MESA_query_renderer GLX_MESA_swap_control GLX_OML_swap_method GLX_OML_sync_control GLX_SGIS_multisample GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGIX_visual_select_group GLX_SGI_make_current_read GLX_SGI_swap_control GLX_SGI_video_sync 
GLvendor: X.Org
GLdevice: AMD RAVEN (DRM 3.38.0, 5.8.12, LLVM 9.0.0)
GLversion: 4.5 (Core Profile) Mesa 19.2.0-devel [GLSL: 4.50]
Max texture size: 16384
Max FBO dump size: 16384x16384
Max combined texture units: 192
Max MSAA samples: 8
Viewport: 720x392
GPU free memory: 1877 MiB
Free auxiliary memory: 3034 MiB
GPU memory: 2048 MiB
GLextensions: GL_AMD_conservative_depth GL_AMD_depth_clamp_separate GL_AMD_draw_buffers_blend GL_AMD_framebuffer_multisample_advanced GL_AMD_gpu_shader_int64 GL_AMD_multi_draw_indirect GL_AMD_performance_monitor GL_AMD_pinned_memory GL_AMD_query_buffer_object GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export GL_AMD_shader_trinary_minmax GL_AMD_texture_texture4 GL_AMD_vertex_shader_layer GL_AMD_vertex_shader_viewport_index GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_ES2_compatibility GL_ARB_ES3_1_compatibility GL_ARB_ES3_2_compatibility GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_base_instance GL_ARB_bindless_texture GL_ARB_blend_func_extended GL_ARB_buffer_storage GL_ARB_clear_buffer_object GL_ARB_clear_texture GL_ARB_clip_control GL_ARB_color_buffer_float GL_ARB_compressed_texture_pixel_storage GL_ARB_compute_shader GL_ARB_compute_variable_group_size GL_ARB_conditional_render_inverted GL_ARB_conservative_depth GL_ARB_copy_buffer GL_ARB_copy_image GL_ARB_cull_distance GL_ARB_debug_output GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_derivative_control GL_ARB_direct_state_access GL_ARB_draw_buffers GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_draw_indirect GL_ARB_draw_instanced GL_ARB_enhanced_layouts GL_ARB_explicit_attrib_location GL_ARB_explicit_uniform_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_layer_viewport GL_ARB_fragment_shader GL_ARB_framebuffer_no_attachments GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_get_program_binary GL_ARB_get_texture_sub_image GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_gpu_shader_int64 GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_indirect_parameters GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_internalformat_query2 GL_ARB_invalidate_subdata GL_ARB_map_buffer_alignment GL_ARB_map_buffer_range GL_ARB_multi_bind GL_ARB_multi_draw_indirect GL_ARB_occlusion_query2 GL_ARB_parallel_shader_compile GL_ARB_pipeline_statistics_query GL_ARB_pixel_buffer_object GL_ARB_point_sprite GL_ARB_polygon_offset_clamp GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_query_buffer_object GL_ARB_robust_buffer_access_behavior GL_ARB_robustness GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_seamless_cubemap_per_texture GL_ARB_separate_shader_objects GL_ARB_shader_atomic_counter_ops GL_ARB_shader_atomic_counters GL_ARB_shader_ballot GL_ARB_shader_bit_encoding GL_ARB_shader_clock GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_shader_image_load_store GL_ARB_shader_image_size GL_ARB_shader_objects GL_ARB_shader_precision GL_ARB_shader_stencil_export GL_ARB_shader_storage_buffer_object GL_ARB_shader_subroutine GL_ARB_shader_texture_image_samples GL_ARB_shader_texture_lod GL_ARB_shader_viewport_layer_array GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_stencil_texturing GL_ARB_sync GL_ARB_tessellation_shader GL_ARB_texture_barrier GL_ARB_texture_buffer_object GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_buffer_range GL_ARB_texture_compression_bptc GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map_array GL_ARB_texture_filter_anisotropic GL_ARB_texture_float GL_ARB_texture_gather GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_levels GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_stencil8 GL_ARB_texture_storage GL_ARB_texture_storage_multisample GL_ARB_texture_swizzle GL_ARB_texture_view GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_transform_feedback_instanced GL_ARB_transform_feedback_overflow_query GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_attrib_64bit GL_ARB_vertex_attrib_binding GL_ARB_vertex_buffer_object GL_ARB_vertex_shader GL_ARB_vertex_type_10f_11f_11f_rev GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_ATI_blend_equation_separate GL_ATI_meminfo GL_ATI_texture_float GL_ATI_texture_mirror_once GL_EXT_abgr GL_EXT_blend_equation_separate GL_EXT_depth_bounds_test GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_framebuffer_object GL_EXT_framebuffer_sRGB GL_EXT_memory_object GL_EXT_memory_object_fd GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_polygon_offset_clamp GL_EXT_provoking_vertex GL_EXT_semaphore GL_EXT_semaphore_fd GL_EXT_shader_image_load_formatted GL_EXT_shader_integer_mix GL_EXT_texture_array GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_EXT_texture_integer GL_EXT_texture_mirror_clamp GL_EXT_texture_sRGB GL_EXT_texture_sRGB_R8 GL_EXT_texture_sRGB_decode GL_EXT_texture_shared_exponent GL_EXT_texture_snorm GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_transform_feedback GL_EXT_vertex_array_bgra GL_EXT_vertex_attrib_64bit GL_EXT_window_rectangles GL_IBM_multimode_draw_arrays GL_KHR_blend_equation_advanced GL_KHR_context_flush_control GL_KHR_debug GL_KHR_no_error GL_KHR_parallel_shader_compile GL_KHR_robust_buffer_access_behavior GL_KHR_robustness GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_sliced_3d GL_MESA_pack_invert GL_MESA_shader_integer_functions GL_MESA_texture_signed_rgba GL_NVX_gpu_memory_info GL_NV_conditional_render GL_NV_depth_clamp GL_NV_packed_depth_stencil GL_NV_texture_barrier GL_NV_vdpau_interop GL_OES_EGL_image GL_S3_s3tc
ResolutionRatio: 1.33333
Display scale: 1
[New Thread 0x7fff88ff9700 (LWP 376786)]
[Thread 0x7fffab7fe700 (LWP 376774) exited]
--Type <RET> for more, q to quit, c to continue without paging--

Thread 1 "occt-gtkmm-samp" received signal SIGSEGV, Segmentation fault.
0x00007fffea807105 in ?? () from /opt/amdgpu/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
(gdb) 
(gdb) c
Continuing.
*** Abort *** an exception was raised, but no catch was found.
    ... The exception is:SIGSEGV 'segmentation violation' detected. Address 20.
[Thread 0x7fff89ffb700 (LWP 376784) exited]
[Thread 0x7fff897fa700 (LWP 376785) exited]
[Thread 0x7fff8a7fc700 (LWP 376783) exited]
[Thread 0x7fff8affd700 (LWP 376782) exited]
[Thread 0x7fff8b7fe700 (LWP 376781) exited]
[Thread 0x7fff8bfff700 (LWP 376780) exited]
[Thread 0x7fffa8ff9700 (LWP 376779) exited]
[Thread 0x7fffa97fa700 (LWP 376778) exited]
[Thread 0x7fffa9ffb700 (LWP 376777) exited]
[Thread 0x7fffaa7fc700 (LWP 376776) exited]
[Thread 0x7fffaaffd700 (LWP 376775) exited]
[Thread 0x7fffabfff700 (LWP 376773) exited]
[Thread 0x7fffc8ff9700 (LWP 376772) exited]
[Thread 0x7fffc97fa700 (LWP 376771) exited]
[Thread 0x7fffc9ffb700 (LWP 376770) exited]
[Thread 0x7fffca7fc700 (LWP 376769) exited]
[Thread 0x7fffcaffd700 (LWP 376768) exited]
[Thread 0x7fffcb7fe700 (LWP 376767) exited]
[Thread 0x7fffcbfff700 (LWP 376766) exited]
[Thread 0x7fffe0da7700 (LWP 376765) exited]
[Thread 0x7fffe8c27700 (LWP 376764) exited]
[Thread 0x7fffe9428700 (LWP 376763) exited]
[Thread 0x7fffe9c29700 (LWP 376762) exited]
[Thread 0x7fffea56b700 (LWP 376761) exited]
[Thread 0x7fff88ff9700 (LWP 376786) exited]
[Thread 0x7ffff0e64700 (LWP 376760) exited]
[Thread 0x7ffff1665700 (LWP 376759) exited]
--Type <RET> for more, q to quit, c to continue without paging--
[Inferior 1 (process 376755) exited with code 01]
(gdb) c
The program is not being run.
(gdb) 
gkv311 commented 2 years ago

@Peta-T, still no luck in reproducing the crash - on virtual Debian 11 nor on physical Ubuntu with Radeon graphics.

I've pushed a workaround from another sample - could you check if it makes any difference? Which window system is started on your Debian 11? Could you try building the sample in Debug mode to see the backtrace with function names?

Peta-T commented 2 years ago

Debian 11 and Gnome desktop Can you help me with configuring cmake and compiling with debug info? Thanks

gkv311 commented 2 years ago

Usually it should be enough specifying Debug instead of Release to CMAKE_BUILD_TYPE option: > cmake -DCMAKE_BUILD_TYPE=Debug