linux-enable-ir-emitter icon indicating copy to clipboard operation
linux-enable-ir-emitter copied to clipboard

fix: Assertion '__n < this->size()' failed

Open EmixamPP opened this issue 1 year ago • 1 comments

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

EmixamPP avatar May 13 '24 06:05 EmixamPP

: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:

  1. Download the tarball in the artifacts section here.
  2. Uninstall the previous version if you have one
  3. Unzip: unzip linux-enable-ir-emitter*.tar.gz.zip
  4. Install: sudo tar -C / --no-same-owner -m -h -vxzf linux-enable-ir-emitter*.tar.gz
  5. Enable the boot service: sudo systemctl enable --now linux-enable-ir-emitter

github-actions[bot] avatar May 13 '24 12:05 github-actions[bot]

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)

elegos avatar May 15 '24 23:05 elegos