Skip to content

Lenovo T480 #148

@http403

Description

@http403

Describe the bug
Segmentation fault during the configure process. Unknown reason.

How to reproduce
Fresh install OS with all packages up to date and Howdy installed via official PPA. Given how new the system is I have no idea how to reproduce.

Output of linux-enable-ir-emitter -d /dev/video0 configure

configure command output
INFO: Stand in front of and close to the camera and make sure the room is well lit.
INFO: Ensure to not use the camera during the execution.
INFO: Warning to do not kill the process !
INFO: Configuring the camera: /dev/v4l/by-path/pci-0000:00:14.0-usb-0:5:1.0-video-index0 .
Is the video flashing? Press Y or N in the window
N pressed
Segmentation fault

Output of linux-enable-ir-emitter -v -d /dev/video0 configure

first run
INFO: Stand in front of and close to the camera and make sure the room is well lit.
INFO: Ensure to not use the camera during the execution.
INFO: Warning to do not kill the process !
Segmentation fault
second run (after reboot)
INFO: Stand in front of and close to the camera and make sure the room is well lit.
INFO: Ensure to not use the camera during the execution.
INFO: Warning to do not kill the process !
INFO: Configuring the camera: /dev/v4l/by-path/pci-0000:00:14.0-usb-0:5:1.0-video-index0 .
Is the video flashing? Press Y or N in the window
N pressed
DEBUG: unit:  3  selector:  2
DEBUG: current: 2
DEBUG: minimum: 3
DEBUG: maximum: 3
DEBUG: new current: 3
DEBUG: 
DEBUG: unit:  4  selector:  2
DEBUG: current: 0 32
DEBUG: minimum: 0 0
DEBUG: maximum: 255 255
DEBUG: new current: 0 0
DEBUG: new current: 1 0
DEBUG: new current: 2 0
DEBUG: new current: 3 0
DEBUG: new current: 4 0
DEBUG: new current: 5 0
DEBUG: new current: 6 0
DEBUG: new current: 7 0
DEBUG: new current: 8 0
DEBUG: new current: 9 0
DEBUG: new current: 10 0
DEBUG: new current: 11 0
DEBUG: new current: 12 0
DEBUG: new current: 13 0
DEBUG: new current: 14 0
DEBUG: new current: 15 0
DEBUG: new current: 16 0
DEBUG: new current: 17 0
DEBUG: new current: 18 0
DEBUG: new current: 19 0
DEBUG: new current: 20 0
DEBUG: new current: 21 0
DEBUG: new current: 22 0
DEBUG: new current: 23 0
DEBUG: new current: 24 0
DEBUG: new current: 25 0
DEBUG: new current: 26 0
DEBUG: new current: 27 0
DEBUG: new current: 28 0
DEBUG: new current: 29 0
DEBUG: new current: 30 0
DEBUG: new current: 31 0
DEBUG: new current: 32 0
DEBUG: new current: 33 0
DEBUG: new current: 34 0
DEBUG: new current: 35 0
DEBUG: new current: 36 0
DEBUG: new current: 37 0
DEBUG: new current: 38 0
DEBUG: new current: 39 0
DEBUG: new current: 40 0
DEBUG: new current: 255 255
DEBUG: 
DEBUG: unit:  4  selector:  3
DEBUG: current: 0
DEBUG: minimum: 0
DEBUG: maximum: 255
DEBUG: new current: 1
Segmentation fault

Output of linux-enable-ir-emitter -v -d /dev/video0 configure -m

configure command output
INFO: Stand in front of and close to the camera and make sure the room is well lit.
INFO: Ensure to not use the camera during the execution.
INFO: Warning to do not kill the process !
INFO: Configuring the camera: /dev/v4l/by-path/pci-0000:00:14.0-usb-0:5:1.0-video-index0 .
Is the video flashing? Press Y or N in the window
terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(4.8.1) /home/runner/work/linux-enable-ir-emitter/linux-enable-ir-emitter/opencv/opencv-4.8.1/modules/highgui/src/window.cpp:971: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'imshow'

Aborted

Output of v4l2-ctl --list-devices

Integrated IR Camera: Integrate (usb-0000:00:14.0-5):
	/dev/video0
	/dev/video1
	/dev/media0

Integrated Camera: Integrated C (usb-0000:00:14.0-8):
	/dev/video2
	/dev/video3
	/dev/media1

Output of v4l2-ctl -d /dev/videoX --list-formats-ext

/dev/video0
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture

	[0]: 'MJPG' (Motion-JPEG, compressed)
		Size: Discrete 640x480
			Interval: Discrete 0.017s (60.000 fps)
		Size: Discrete 320x240
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 160x120
			Interval: Discrete 0.033s (30.000 fps)
	[1]: 'YUYV' (YUYV 4:2:2)
		Size: Discrete 400x480
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 400x400
			Interval: Discrete 0.033s (30.000 fps)
/dev/video1
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture
/dev/video2
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture

	[0]: 'MJPG' (Motion-JPEG, compressed)
		Size: Discrete 1280x720
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 320x180
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 320x240
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 352x288
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 424x240
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 640x360
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 640x480
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 848x480
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 960x540
			Interval: Discrete 0.033s (30.000 fps)
	[1]: 'YUYV' (YUYV 4:2:2)
		Size: Discrete 1280x720
			Interval: Discrete 0.100s (10.000 fps)
		Size: Discrete 320x180
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 320x240
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 352x288
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 424x240
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 640x360
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 640x480
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 848x480
			Interval: Discrete 0.050s (20.000 fps)
		Size: Discrete 960x540
			Interval: Discrete 0.067s (15.000 fps)
/dev/video3
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture

Output of ls -l /dev/v4l/by-path

total 0
lrwxrwxrwx 1 root root 12 Oct 26 03:01 pci-0000:00:14.0-usb-0:5:1.0-video-index0 -> ../../video0
lrwxrwxrwx 1 root root 12 Oct 26 03:01 pci-0000:00:14.0-usb-0:5:1.0-video-index1 -> ../../video1
lrwxrwxrwx 1 root root 12 Oct 26 03:01 pci-0000:00:14.0-usb-0:8:1.0-video-index0 -> ../../video2
lrwxrwxrwx 1 root root 12 Oct 26 03:01 pci-0000:00:14.0-usb-0:8:1.0-video-index1 -> ../../video3

Output of howdy test

test command ouput
[ WARN:0@10.244] global cap_v4l.cpp:1119 tryIoctl VIDEOIO(V4L2:/dev/video0): select() timeout.

Opening a window with a test feed

Press ctrl+C in this terminal to quit
Click on the image to enable or disable slow mode

[ WARN:0@21.438] global cap_v4l.cpp:1119 tryIoctl VIDEOIO(V4L2:/dev/video0): select() timeout.
Failed to read camera specified in your 'device_path', aborting

Give more information if you have
If I run configure twice in a row it will seg fault immediately. I ran mpv /dev/video0 after, mpv hangs and unable to output a video stream. I ran configure again with -m and OpenCV throws an exception. I had tried without -d but it unable to find any IR camera.

Additional info

  • Computer (or camera) model: Lenovo T480
  • Linux distribution: Linux Mint Xfce 21.2
  • Version of linux-enable-ir-emitter: 5.2.0 (but I did download the 5.2.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    lenovoIssue related to the Lenovo computer

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions