OpenKinect / libfreenect2

Open source drivers for the Kinect for Windows v2 device
2.05k stars 747 forks source link

segmentation fault (core dumped) when running ./bin/Protonect #1166

Open Abdallah-Hesham99 opened 2 years ago

Abdallah-Hesham99 commented 2 years ago

Overview Description: i get a segmentation fault(core dumped ) error when I run ./bin/Protonect I have installed openCL, openGL and I have an AMD GPU running on ubuntu 20.04, same error occurs when I run niviewer

also the iai_kinect2 package won't compile when I run catkin_make, I get errors saying that PCL requires c++14,

Version, Platform, and Hardware Bug Found:

  1. git log -1 --oneline fd64c5d (HEAD -> master, tag: v0.2.1, origin/master, origin/HEAD) Update README.md

  2. uname -a Linux abdallah-HP-Notebook 5.13.0-28-generic #31~20.04.1-Ubuntu SMP Wed Jan 19 14:08:10 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

  3. lsusb -t /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M | Port 1: Dev 6, If 0, Class=Vendor Specific Class, Driver=, 5000M | Port 1: Dev 6, If 1, Class=Vendor Specific Class, Driver=, 5000M | Port 1: Dev 6, If 2, Class=Audio, Driver=snd-usb-audio, 5000M | Port 1: Dev 6, If 3, Class=Audio, Driver=snd-usb-audio, 5000M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M | Port 3: Dev 7, If 0, Class=Human Interface Device, Driver=usbhid, 12M | Port 3: Dev 7, If 1, Class=Human Interface Device, Driver=usbhid, 12M | Port 4: Dev 3, If 1, Class=Wireless, Driver=btusb, 12M | Port 4: Dev 3, If 0, Class=Wireless, Driver=btusb, 12M | Port 5: Dev 4, If 0, Class=Video, Driver=uvcvideo, 480M | Port 5: Dev 4, If 1, Class=Video, Driver=uvcvideo, 480M

  4. lspci -nn

00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers [8086:5904] (rev 02) 00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 620 [8086:5916] (rev 02) 00:04.0 Signal processing controller [1180]: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem [8086:1903] (rev 02) 00:08.0 System peripheral [0880]: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model [8086:1911] 00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller [8086:9d2f] (rev 21) 00:14.2 Signal processing controller [1180]: Intel Corporation Sunrise Point-LP Thermal subsystem [8086:9d31] (rev 21) 00:16.0 Communication controller [0780]: Intel Corporation Sunrise Point-LP CSME HECI #1 [8086:9d3a] (rev 21) 00:17.0 SATA controller [0106]: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] [8086:9d03] (rev 21) 00:1c.0 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 [8086:9d10] (rev f1) 00:1c.4 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 [8086:9d14] (rev f1) 00:1c.5 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 [8086:9d15] (rev f1) 00:1f.0 ISA bridge [0601]: Intel Corporation Sunrise Point-LP LPC Controller [8086:9d58] (rev 21) 00:1f.2 Memory controller [0580]: Intel Corporation Sunrise Point-LP PMC [8086:9d21] (rev 21) 00:1f.3 Audio device [0403]: Intel Corporation Sunrise Point-LP HD Audio [8086:9d71] (rev 21) 00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-LP SMBus [8086:9d23] (rev 21) 01:00.0 Display controller [0380]: Advanced Micro Devices, Inc. [AMD/ATI] Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445 / 530/535 / 620/625 Mobile] [10... (rev 83) 02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller [10ec:8136] (rev 07) 03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]

S-K-project commented 1 year ago

I'm working on a similar project, in the libfreenect master read me it was mentionned that you need to : Set up udev rules for device access, before running the test.

Set up udev rules for device access: sudo cp ../platform/linux/udev/90-kinect2.rules /etc/udev/rules.d/, then replug the Kinect. Run the test program: ./bin/Protonect

Or Run OpenNI2 test (optional): sudo apt-get install openni2-utils && sudo make install-openni2 && NiViewer2.