linux-enable-ir-emitter
linux-enable-ir-emitter copied to clipboard
fix: Assertion '__n < this->size()' failed
Fix for #172 Assertion '__n < this->size()' failed error. It arrives when no frames have been captured during the automatic configuration. The proposed solution is to increase the capture time, if that happens
:arrow_right: Commit 0827cc1b7ca24a1b90328df70bafcdfa000b47c3
:clipboard: Logs
:mag: Linting results: :heavy_check_mark:
:hammer_and_wrench: Building result: :heavy_check_mark:
:package: Artifacts:
If the building step was successfull:
- Download the tarball in the artifacts section here.
- Uninstall the previous version if you have one
- Unzip:
unzip linux-enable-ir-emitter*.tar.gz.zip - Install:
sudo tar -C / --no-same-owner -m -h -vxzf linux-enable-ir-emitter*.tar.gz - Enable the boot service:
sudo systemctl enable --now linux-enable-ir-emitter
This PR seems not to fix the issue, or at least the configuration process does not crash anymore, but does not fix the issue. Follows the log:
❯ sudo linux-enable-ir-emitter -v -d /dev/video2 configure
DEBUG: Executing configure command.
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: Configuring the camera /dev/video2
DEBUG: yaml error: bad file: /etc/linux-enable-ir-emitter/pci-0000:0c:00.3-usb-0:2.2.1:1.2-video-index0
DEBUG: No previous configuration found.
INFO: Scanning camera instructions progression: 100 %
DEBUG: Configuration for /dev/video2 saved here: /etc/linux-enable-ir-emitter/pci-0000:0c:00.3-usb-0:2.2.1:1.2-video-index0
Is the video flashing? Press Y or N in the window.
** (linux-enable-ir-emitter:7062): WARNING **: 01:46:12.683: AT-SPI: Could not obtain desktop path or name
** (linux-enable-ir-emitter:7062): WARNING **: 01:46:12.685: atk-bridge: GetRegisteredEvents returned message with unknown signature
** (linux-enable-ir-emitter:7062): WARNING **: 01:46:12.685: atk-bridge: get_device_events_reply: unknown signature
N pressed.
DEBUG: Instruction applied: unit: 4, selector: 6, control: 1 3 2 0 0 0 0 0 0
DEBUG: Instruction applied: unit: 4, selector: 6, control: 1 3 3 0 0 0 0 0 0
DEBUG: Reseting to the instruction: unit: 4, selector: 6, control: 1 3 1 0 0 0 0 0 0
DEBUG: Instruction applied: unit: 4, selector: 9, control: 1 0 0 0
DEBUG: Reseting to the instruction: unit: 4, selector: 9, control: 1 0 0 0
ERROR: The configuration failed.
INFO: Please retry in manual mode by adding the '-m' option.
INFO: Do not hesitate to visit the GitHub!
INFO: https://github.com/EmixamPP/linux-enable-ir-emitter/blob/master/docs/README.md
The manual mode seems to succesfully configure the device (still need to deeply test the configuration after reboot)