groupgets / GetThermal

Cross-platform USB thermal camera viewer
MIT License
234 stars 94 forks source link

Segmentation fault on pi4 with Lepton3.5&pt2 #28

Open HanzhenX opened 4 years ago

HanzhenX commented 4 years ago

Hi,

I have builded the software on to my raspberry pi4 following the steps, and running the script is resulting in a segmentation failure and it is not working. It does say the script found and opened the device. Following are copied lines from the terminal:

./GetThermal qt5ct: using qt5ct plugin UVC initialized Device found Device opened DEVICE CONFIGURATION (1e4e:0100/v1.1.0) --- Status: idle VideoControl: bcdUVC: 0x0100 VideoStreaming(1): bEndpointAddress: 129 Formats: UncompressedFormat(1) bits per pixel: 16 GUID: 5559565900001000800000aa00389b71 (UYVY) default frame: 1 aspect ratio: 0x0 interlace flags: 00 copy protect: 00 FrameDescriptor(1) capabilities: 02 size: 160x120 bit rate: 2764800-2764800 max frame size: 38400 default interval: 1/9 interval[0]: 1/9 UncompressedFormat(2) bits per pixel: 16 GUID: 5931362000001000800000aa00389b71 (Y16 ) default frame: 1 aspect ratio: 0x0 interlace flags: 00 copy protect: 00 FrameDescriptor(1) capabilities: 02 size: 160x120 bit rate: 2764800-2764800 max frame size: 38400 default interval: 1/9 interval[0]: 1/9 FrameDescriptor(2) capabilities: 02 size: 160x122 bit rate: 2810880-2810880 max frame size: 39040 default interval: 1/9 interval[0]: 1/9 UncompressedFormat(3) bits per pixel: 8 GUID: 5938202000001000800000aa00389b71 (Y8 ) default frame: 1 aspect ratio: 0x0 interlace flags: 00 copy protect: 00 FrameDescriptor(1) capabilities: 02 size: 160x120 bit rate: 1382400-1382400 max frame size: 19200 default interval: 1/9 interval[0]: 1/9 UncompressedFormat(4) bits per pixel: 16 GUID: 5247425000001000800000aa00389b71 (RGBP) default frame: 1 aspect ratio: 0x0 interlace flags: 00 copy protect: 00 FrameDescriptor(1) capabilities: 02 size: 160x120 bit rate: 2764800-2764800 max frame size: 38400 default interval: 1/9 interval[0]: 1/9 UncompressedFormat(5) bits per pixel: 24 GUID: 7deb36e44f52ce119f530020af0ba770 (}�6�OR��S) default frame: 1 aspect ratio: 0x0 interlace flags: 00 copy protect: 00 FrameDescriptor(1) capabilities: 02 size: 160x120 bit rate: 4147200-4147200 max frame size: 57600 default interval: 1/9 interval[0]: 1/9 END DEVICE CONFIGURATION Initializing lepton SDK with UVC backend... Using GroupGets PureThermal 1 with firmware v1.1.0 OK Found extension unit ID 3, controls: 000fffff, GUID: 70 74 31 2d 6c 65 70 2d 61 67 63 2d 30 30 30 30 Found extension unit ID 4, controls: 7fffffbf, GUID: 70 74 31 2d 6c 65 70 2d 6f 65 6d 2d 30 30 30 30 Found extension unit ID 5, controls: 3ffcffc81ffffff, GUID: 70 74 31 2d 6c 65 70 2d 72 61 64 2d 30 30 30 30 Found extension unit ID 6, controls: 007fffff, GUID: 70 74 31 2d 6c 65 70 2d 73 79 73 2d 30 30 30 30 Found extension unit ID 7, controls: 00003fff, GUID: 70 74 31 2d 6c 65 70 2d 76 69 64 2d 30 30 30 30 Found extension unit ID 21, controls: 07ff9ff9, GUID: 70 74 31 2d 6c 65 70 2d 72 61 64 32 30 30 30 30 Found extension unit ID 254, controls: 0000003f, GUID: 70 74 31 2d 6c 65 70 2d 63 75 73 74 30 30 30 30 bmHint: 0000 bFormatIndex: 2 bFrameIndex: 1 dwFrameInterval: 1111111 wKeyFrameRate: 0 wPFrameRate: 0 wCompQuality: 0 wCompWindowSize: 0 wDelay: 0 dwMaxVideoFrameSize: 38400 dwMaxPayloadTransferSize: 962 bInterfaceNumber: 1 Estimated / selected altsetting bandwith : 18 / 962. start_streaming: Unknown error (-99) Device closed Segmentation fault

kekiefer commented 4 years ago

Hi, the problem may be that at least the 1.3.0 firmware on your PureThermal board is required for raspberry pi 4. Please try it: https://github.com/groupgets/purethermal1-firmware/releases/tag/1.3.0