Closed http403 closed 9 months ago
Hum, I think this is an issue related to OpenCV.
Could you past the output of ldd /usr/lib64/linux-enable-ir-emitter/libcommands.so
please?
Hum, I uploaded the wrong package on the release; the v5.2.0 again instead of the v5.2.1 Please reinstall the one attached and try again. linux-enable-ir-emitter-5.2.1.systemd.x86-64.tar.gz
Unfortunately, the newer version doesn't solve the problem. It still seg fault when running configure
and behave just like before. After the fault no other application seems able to access the device until a reboot.
However, after a reboot, -m
does get pass unit 4 selector 3. It doesn't seg fault til the end but an seemingly unrelated exception from OpenCV instead.
Still, after this exception, no other application seemingly able to open the video stream again. Here an capture from Hodwy after a reboot.
I successfully setup Windows Hello on the same machine in a very dark room (it is a dual boot laptop) which I saw the IR emitters (2 total) are being triggered. This proofs the hardware isn't the problem, although I need to install a separate driver for it to work. Here's the device details. Hope this helps.
I just realized I never use -e 2
to configure as it have two emitters. Still, specifying it doesn't change the situation.
Output of linux-enable-ir-emitter -v -d /dev/video0 configure -e 2 -m
I will try to provide you a solution today
In pr #150 there's a bot comment that contains a link to download a tarball where I've added a --no-gui
option that should solve your problem.
Please try again using the command sudo linux-enable-ir-emitter -v configure -e 2 --no-gui
.
It seg fault again on unit 4 selector 3.
I have no clue about what could be the issue, I tried using Valgrind to find a reason but there doesn't seem to be any problem on my side.
Could you try building the project yourself? All the instructions are in the readme, but if you need any help, please don't hesitate.
I had compiled the opencv_err
branch with opencv 4.5.4 accroding to the gh action, then run with -e 2 -l -1 --no-gui
. I'm about 1/3 (180 86) into the configure which doesn't seg fault yet. Hopefully it split out anything other than seg fault and exceptions.
Did you tried without -l -1
? This will takes so much time and maybe you do not need the fully exhaustive search.
You could kill the process and reboot, then retry with the default parameters (just add -e 2
and also -v
)
If the configuration fails, show me the output I will guide you.
It's on 223 so not far from completing. If I quit now, its kind of wasteful.
It is wasteful. I thought is went passed unit 4 selector 3, but it is not. It just segfault on that spot again.
I rebooted and run with -m -e 2 -g
, went pass unit 4 selector 3. However, when got into it, the current is different from pair to single, and significantly slower. I'm talking 2-3 seconds before the Y/N prompt show up. However, there is good news, if I do it slow enough, it does NOT segfault.
Hum, sadly I don't think your camera gives enough information to let my tool find an instruction which enable your emitter
Seems like a dead end for now, and I'm not very expert in low level hardware things. Sorry didn't help much.
Do you wish to keep this issue up?
I will keep issue in mind. I hope find a way to enable your emitter in the coming releases!
Hey, please try the v6 https://github.com/EmixamPP/linux-enable-ir-emitter/pull/154. There is a bot comment with a link to the tarball. Please uninstall any existing version first:
sudo rm -rf /usr/lib64/linux-enable-ir-emitter \
/usr/bin/linux-enable-ir-emitter \
/usr/lib/systemd/system/linux-enable-ir-emitter.service \
/etc/udev/rules.d/99-linux-enable-ir-emitter.rules \
/usr/share/bash-completition/completitions/linux-enable-ir-emitter \
/etc/linux-enable-ir-emitter
Execute sudo linux-enable-ir-emitter -v configure
And paste here the content of the file which is inside /etc/linux-enable-ir-emitter
, from this point I can explain you how to manually tweak any instructions of your camera.
Sorry I couldn't. For some reason that the IR cam isn't recognizable via v4l2-ctl
. Not working in Windows either with a 3 minutes check. It does shown up in lsusb
and Windows' Device Mgr. I have quite a long time not booted into Windows thus not using the IR camera. I don't know at what point can cause a problem.
I think I've solved the problem of segfault #155 you had. You can give a new try to the v6 if you want to (sudo linux-enable-ir-emitter -v configure -l 4
).
But if you no longer want to use this tool (at least for now), no problem of course!
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
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
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 ranmpv /dev/video0
after, mpv hangs and unable to output a video stream. I ranconfigure
again with-m
and OpenCV throws an exception. I had tried without-d
but it unable to find any IR camera.Additional info