linux-enable-ir-emitter: Segmentation Fault
Ouput of linux-enable-ir-emitter -v configure
configure command output
$ sudo linux-enable-ir-emitter -v configure
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
Output of v4l2-ctl --list-devices
$ v4l2-ctl --list-devices
Integrated Camera: Integrated C (usb-0000:00:14.0-6):
/dev/video0
/dev/video1
/dev/video2
/dev/video3
/dev/media0
/dev/media1
Ouput of v4l2-ctl -d /dev/videoX --list-formats-ext
v4l2 device output
$ v4l2-ctl -d /dev/video0 --list-formats-ext
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 640x480
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 848x480
Interval: Discrete 0.050s (20.000 fps)
Size: Discrete 960x540
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 1280x720
Interval: Discrete 0.100s (10.000 fps)
$ v4l2-ctl -d /dev/video1 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture
$ v4l2-ctl -d /dev/video2 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture
[0]: 'GREY' (8-bit Greyscale)
Size: Discrete 360x360
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 640x360
Interval: Discrete 0.033s (30.000 fps)
$ v4l2-ctl -d /dev/video3 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture
$ v4l2-ctl -d /dev/media0 --list-formats-ext
Unable to detect what device /dev/media0 is, exiting.
$ v4l2-ctl -d /dev/media1 --list-formats-ext
Unable to detect what device /dev/media1 is, exiting.
Output of ls -l /dev/v4l/by-path
$ ls -l /dev/v4l/by-path
total 0
lrwxrwxrwx. 1 root root 12 Nov 28 17:09 pci-0000:00:14.0-usb-0:6:1.0-video-index0 -> ../../video0
lrwxrwxrwx. 1 root root 12 Nov 28 17:09 pci-0000:00:14.0-usb-0:6:1.0-video-index1 -> ../../video1
lrwxrwxrwx. 1 root root 12 Nov 28 17:09 pci-0000:00:14.0-usb-0:6:1.2-video-index0 -> ../../video2
lrwxrwxrwx. 1 root root 12 Nov 28 17:09 pci-0000:00:14.0-usb-0:6:1.2-video-index1 -> ../../video3
lrwxrwxrwx. 1 root root 12 Nov 28 17:09 pci-0000:00:14.0-usbv2-0:6:1.0-video-index0 -> ../../video0
lrwxrwxrwx. 1 root root 12 Nov 28 17:09 pci-0000:00:14.0-usbv2-0:6:1.0-video-index1 -> ../../video1
lrwxrwxrwx. 1 root root 12 Nov 28 17:09 pci-0000:00:14.0-usbv2-0:6:1.2-video-index0 -> ../../video2
lrwxrwxrwx. 1 root root 12 Nov 28 17:09 pci-0000:00:14.0-usbv2-0:6:1.2-video-index1 -> ../../video3
Give more information if you have
Additional info
- Computer (or camera) model: Razer Blade Stealth 13 (Late 2020)
- Linux distribution: Fedora 39
- Version of linux-enable-ir-emitter: 5.2.4
About this issue
- Original URL
- State: open
- Created 7 months ago
- Comments: 27 (14 by maintainers)
Apologies for taking so long to get back to you on this ticket. Got sidetracked with the holidays. I really appreciate you helping with this. This is a great project.
I don’t appear to be getting the segmentation fault with the latest v6 so that’s good. It’s now just hanging. It runs and I start to see the IR camera light up after video2 (I think, it happens quick). However it comes on. I did let it run for a few minutes and then halted it because it doesn’t seem to stop.
I did also try running it with -g and -m but that didn’t seem to change anything.
If you’d like I can open a new ticket for the configuration not working since it seems for me the segmentation fault at least is resolved.
Hmm I take it back, the segfault is intermittent. I’ve tried the latest build. It either hangs forever (well, I’ve let it sit for 5-10min), or finally segmentation faults. I am running with -v and -g:
For my machine (Lenovo Thinkpad AMD T16 Gen 1), what happens is at the point it asks if its flashing, the camera indicator and the IR emitter turn on solid until I answer No. Then throughout each of the first 10 tests, both the IR emitter and camera indicator turn on and off together. Then when it reaches the end, the camera indicator comes on permanently while it hands and then eventually dies.
This I was already using. As said, maybe it needs some print line before even something is happening 😃
It is a generation 13 Intel, the first cpu via /proc/cpuinfo
Hi,
first of all thank you for working on this. My setup is a ThinkPad X1 Yoga gen 8 which has a intel ipu6 system. It seems that the camera is not “connected” via USB but rather directly PCI.
/dev/video0 is the main camera and now properly working via a v4l2loopback.
and
I receive the same segmentation fault as the original author. I tried almost all versions v5 and v6 either the pre-compiled or self compiled. As the output is not very comprehensive, is there a way for a more verbose version? Interestingly I have no file in
It looks to me that the segmentation fault happens early on.
Thank you