protoloft / klipper_z_calibration

Klipper plugin for self-calibrating z-offset
GNU General Public License v3.0
1.05k stars 151 forks source link

Internal error on command:"CALIBRATE_Z" Internal error on command:"BASE_CALIBRATE_Z" #105

Closed BelgarionNL closed 3 months ago

BelgarionNL commented 1 year ago

Quad gantry level works fine.

I start the calibrate_z it starts probing on the Z endstop with and without the probe. Then the moment it touches the bed. klipper crashes.

22:46 Internal error on command:"CALIBRATE_Z" 22:46 Internal error on command:"BASE_CALIBRATE_Z" 22:46 Klipper state: Shutdown

BelgarionNL commented 1 year ago

config-20230602-225305.zip

22 | (125.0, 185.0) | (125.0, 210.0) 23 | (167.5, 185.0) | (167.5, 210.0) 24 | (210.0, 185.0) | (210.0, 210.0) bed_mesh: relative_reference_index 12 is (125.00, 125.00) Starting heater checks for extruder Write g-code response Traceback (most recent call last): File "/home/dietpi/klipper/klippy/gcode.py", line 446, in _respond_raw os.write(self.fd, (msg+"\n").encode()) BlockingIOError: [Errno 11] Resource temporarily unavailable Stats 5525.1: gcodein=0 mcu: mcu_awake=0.000 mcu_task_avg=0.000000 mcu_task_stddev=0.000000 bytes_write=1937 bytes_read=5055 bytes_retransmit=9 bytes_invalid=0 send_seq=186 receive_seq=186 retransmit_seq=2 srtt=0.000 rttvar=0.000 rto=0.025 ready_bytes=0 upcoming_bytes=0 freq=99993564 z: mcu_awake=0.000 mcu_task_avg=0.000000 mcu_task_stddev=0.000000 bytes_write=2191 bytes_read=5393 bytes_retransmit=9 bytes_invalid=0 send_seq=195 receive_seq=195 retransmit_seq=2 srtt=0.000 rttvar=0.000 rto=0.025 ready_bytes=0 upcoming_bytes=0 freq=99988876 adj=99989583 heater_bed: target=0 temp=0.0 pwm=0.000 Pi: temp=46.7 sysload=0.09 cputime=169.010 memavail=1802684 print_time=0.009 buffer_time=0.000 print_stall=0 extruder: target=0 temp=0.0 pwm=0.000 webhooks: registering remote method 'shutdown_machine' for connection id: 547773057360 webhooks: registering remote method 'reboot_machine' for connection id: 547773057360 webhooks: registering remote method 'pause_job_queue' for connection id: 547773057360 webhooks: registering remote method 'start_job_queue' for connection id: 547773057360

TitusLabs commented 1 year ago

Is this the only error in your log? And this error is repeatable?

BelgarionNL commented 1 year ago

Exception in flush_handler Once the underlying issue is corrected, use the "FIRMWARE_RESTART" command to reset the firmware, reload the config, and restart the host software. Printer is shutdown

yep every single time. the moment the clicky probe touches the bed for z calibration its dead.

reinstalled klipper on new sd card + updated the skr boards with the latest klipper.

klippy (5).log config-20230602-225305.zip

I thought it had something to do that I dont probe my bed because its glass so its always flat.

TitusLabs commented 1 year ago

You also had this error in your dockable probe extension. I don't think this is related to z calibration.

I found this:

  File "/home/pi/klipper/klippy/stepper.py", line 228, in generate_steps
    raise error("Internal error in stepcompress")
stepper.error: Internal error in stepcompress

and this error:

  File "/home/pi/klipper/klippy/stepper.py", line 180, in note_homing_end
    raise error("Internal error in stepcompress")
stepper.error: Internal error in stepcompress

Here is a first starting point on this: https://github.com/Klipper3d/klipper/issues/4097

BelgarionNL commented 1 year ago

I cleared the klipper log and ran calibrate_z once. klippy (6).log

BelgarionNL commented 1 year ago

you were correct. I tried the new dockable_probe (https://klipper.discourse.group/t/reviving-the-dockable-probe/4256/51) instead of the one I had been using for years from mental.

reverted back to old one and it works fine.

kdb424 commented 1 year ago

Confirmed this is the case, and mentioned in their PR. Mental's module works fine so this is an external issue.

TitusLabs commented 4 months ago

Is this still a problem? I had unfortunately forgotten the PR regarding the trial session on the develop branch. However, it is now released. But I'm not sure if this is somehow related to this :thinking: