OpenKinect / libfreenect2

Open source drivers for the Kinect for Windows v2 device
2.08k stars 752 forks source link

Viewer not responding #1180

Open carlo-p-tech opened 1 year ago

carlo-p-tech commented 1 year ago

When I run ./bin/Protonect it outputs the following

Version: 0.2.0
Environment variables: LOGFILE=<protonect.log>
Usage: ./bin/Protonect [-gpu=<id>] [gl | cl | clkde | cuda | cudakde | cpu] [<device serial>]
        [-noviewer] [-norgb | -nodepth] [-help] [-version]
        [-frames <number of frames to process>]
To pause and unpause: pkill -USR1 Protonect
[Info] [Freenect2Impl] enumerating devices...
[Info] [Freenect2Impl] 11 usb devices connected
[Info] [Freenect2Impl] found valid Kinect v2 @2:6 with serial 015076245347
[Info] [Freenect2Impl] found 1 devices
[Info] [Freenect2DeviceImpl] opening...
[Info] [Freenect2DeviceImpl] transfer pool sizes rgb: 20*16384 ir: 60*8*33792
[Info] [Freenect2DeviceImpl] opened
[Info] [Freenect2DeviceImpl] starting...
[Debug] [Freenect2DeviceImpl] status 0x090000: 9729
[Debug] [Freenect2DeviceImpl] status 0x090000: 9731
[Info] [Freenect2DeviceImpl] submitting rgb transfers...
[Info] [Freenect2DeviceImpl] submitting depth transfers...
[Info] [Freenect2DeviceImpl] started
device serial: 015076245347
device firmware: 4.0.3917.0
[Info] [TurboJpegRgbPacketProcessor] avg. time: 14.6731ms -> ~68.1519Hz
[Info] [TurboJpegRgbPacketProcessor] avg. time: 14.8602ms -> ~67.2938Hz
[Info] [TurboJpegRgbPacketProcessor] avg. time: 16.836ms -> ~59.3964Hz
[Info] [TurboJpegRgbPacketProcessor] avg. time: 16.2895ms -> ~61.3892Hz
[Info] [TurboJpegRgbPacketProcessor] avg. time: 17.2111ms -> ~58.1022Hz

However, the viewer goes to not responding. In the dmesg output I get the following:

[ 2572.806845] xhci_hcd 0000:01:00.0: Looking for event-dma 00000000c0638760 trb-start 00000000c8142000 trb-end 0000000000000000 seg-start 00000000c8142000 seg-end 00000000c8142ff0
[ 2572.806845] xhci_hcd 0000:01:00.0: Looking for event-dma 00000000c0638760 trb-start 00000000cd50f000 trb-end 0000000000000000 seg-start 00000000cd50f000 seg-end 00000000cd50fff0
[ 2572.806845] xhci_hcd 0000:01:00.0: Looking for event-dma 00000000c0638760 trb-start 00000000c88e1000 trb-end 0000000000000000 seg-start 00000000c88e1000 seg-end 00000000c88e1ff0
[ 2572.806845] xhci_hcd 0000:01:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 8 comp_code 13
[ 2572.806845] xhci_hcd 0000:01:00.0: Looking for event-dma 00000000c0638770 trb-start 00000000b7d3d000 trb-end 0000000000000000 seg-start 00000000b7d3d000 seg-end 00000000b7d3dff0
[ 2572.806845] xhci_hcd 0000:01:00.0: Looking for event-dma 00000000c0638770 trb-start 00000000bcf92000 trb-end 0000000000000000 seg-start 00000000bcf92000 seg-end 00000000bcf92ff0
[ 2572.806845] xhci_hcd 0000:01:00.0: Looking for event-dma 00000000c0638770 trb-start 00000000c89d4000 trb-end 0000000000000000 seg-start 00000000c89d4000 seg-end 00000000c89d4ff0
[ 2572.806845] xhci_hcd 0000:01:00.0: Looking for event-dma 00000000c0638770 trb-start 00000000c8baf000 trb-end 0000000000000000 seg-start 00000000c8baf000 seg-end 00000000c8bafff0
[ 2572.806845] xhci_hcd 0000:01:00.0: Looking for event-dma 00000000c0638770 trb-start 00000000bd768000 trb-end 0000000000000000 seg-start 00000000bd768000 seg-end 00000000bd768ff0
[ 2572.806845] xhci_hcd 0000:01:00.0: Looking for event-dma 00000000c0638770 trb-start 00000000cfaba000 trb-end 0000000000000000 seg-start 00000000cfaba000 seg-end 00000000cfabaff0
[ 2572.806845] xhci_hcd 0000:01:00.0: Looking for event-dma 00000000c0638770 trb-start 00000000b7c60000 trb-end 0000000000000000 seg-start 00000000b7c60000 seg-end 00000000b7c60ff0
[ 2572.806845] xhci_hcd 0000:01:00.0: Looking for event-dma 00000000c0

Here is the output of lsusb -t. The kinect is on Bus 02.

carlo@Carlo-Desktop:~/libfreenect2$ lsusb -t
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
    |__ Port 2: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 2: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
    |__ Port 3: Dev 6, If 0, Class=Vendor Specific Class, Driver=usbfs, 5000M
    |__ Port 3: Dev 6, If 1, Class=Vendor Specific Class, Driver=usbfs, 5000M
    |__ Port 3: Dev 6, If 2, Class=Audio, Driver=snd-usb-audio, 5000M
    |__ Port 3: Dev 6, If 3, Class=Audio, Driver=snd-usb-audio, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 480M
    |__ Port 5: Dev 5, If 1, Class=Wireless, Driver=btusb, 12M
    |__ Port 5: Dev 5, If 0, Class=Wireless, Driver=btusb, 12M
    |__ Port 6: Dev 3, If 2, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 6: Dev 3, If 0, Class=Vendor Specific Class, Driver=, 12M
    |__ Port 7: Dev 4, If 0, Class=Hub, Driver=hub/4p, 480M

I am running: DISTRIB_DESCRIPTION="Ubuntu 22.04.2 LTS"

I have an AMD and no graphics card. Running AMD 5700G (using APU)