SHAPER_CALIBRATE internal error after update

Basic Information:

Printer Model: Voron 2.4
MCU / Printerboard: BTT M8P / EBB 2209 RP2040
Host / SBC: BTT CB1
klippy.log klippy.log (3.3 MB)

Describe your issue:

I updated from v0.13.0-87-gfd55dd9e to v0.13.0-110-g1af219fa to a avoid this bug but with the new version SHAPER_CALIBRATE no longer works. The printer moves to the XY position and then Klipper crashes immediately.

Downgrading Klipper to the previous version (without reflashing theM MCUs, so they still run 110) solves this issue, so this seems to me like a bug recently introduced.

Testing axis x
ADXL345 starting 'adxl345' measurements
Internal error on command:"SHAPER_CALIBRATE"
Traceback (most recent call last):
  File "/home/biqu/klipper/klippy/gcode.py", line 212, in _process_commands
    handler(gcmd)
  File "/home/biqu/klipper/klippy/gcode.py", line 140, in <lambda>
    func = lambda params: origfunc(self._get_extended_params(params))
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/biqu/klipper/klippy/extras/resonance_tester.py", line 373, in cmd_SHAPER_CALIBRATE
    calibration_data = self._run_test(gcmd, calibrate_axes, helper,
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/biqu/klipper/klippy/extras/resonance_tester.py", line 265, in _run_test
    self.executor.run_test(test_seq, axis, gcmd)
  File "/home/biqu/klipper/klippy/extras/resonance_tester.py", line 131, in run_test
    X, Y = thpos[:2]
           ^^^^^
NameError: name 'thpos' is not defined
Transition to shutdown state: Internal error on command:"SHAPER_CALIBRATE"

Commit 64d6f110a works fine, it breaks with 307c03e

1 Like

I created a PR:

4 Likes

Same thing is happening to me when TEST_RESONANCES

NameError: name 'thpos' is not defined
Transition to shutdown state: Internal error on command:"TEST_RESONANCES"

Update to latest Git. Should be fixed via resonance_tester: Fix typo · Klipper3d/klipper@ed36041 · GitHub

1 Like

Awesome, Thanks!