Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Toolhead crashes when attempting retraction before stopping #27544

Open
1 task done
andrademf opened this issue Nov 24, 2024 · 0 comments
Open
1 task done

[BUG] Toolhead crashes when attempting retraction before stopping #27544

andrademf opened this issue Nov 24, 2024 · 0 comments

Comments

@andrademf
Copy link

andrademf commented Nov 24, 2024

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

When attempting to configure retraction during a print stop to avoid filament leakage, I came across this previous issue: MarlinFirmware Issue #16406. Based on this, I tried the following configuration:

#define EVENT_GCODE_SD_ABORT "G1 E-3\nG28 X Y\nM84"  

However, for some reason, the printer stops executing the expected actions, instead of performing the retraction, it moves in the direction of a negative Y value (as indicated by its movement).

This even causes it to crash into the bed limits, not even doing the retraction neither the homing.

I also tried different combinations with G90, G91, and G92, but all resulted in the same behavior.

The issue has been consistently reproducible during my tests.

Bug Timeline

After adds retraction to EVENT_GCODE_SD_ABORT

Expected behavior

I would expect a normal retraction movement and homing in sequence

This short video shows the printer homing when stopped (no retraction)
#define EVENT_GCODE_SD_ABORT "G28 X Y\nM84"

stop_homing_no_retraction.mp4

Actual behavior

Toolhead trying to move beyond it's limits

This short video shows the printer misbehaving when stopped (with retraction)
#define EVENT_GCODE_SD_ABORT "G1 E-3\nG28 X Y\nM84"

stop_misbehaving_with_retraction.mp4

(Sorry for the rush, I had to quickly hit the power-off switch)

Steps to Reproduce

  1. Add retraction to EVENT_GCODE_SD_ABORT
  2. Start a print
  3. Wait until the first layer starts
  4. Stop

Version of Marlin Firmware

Bugfix-2.1.x

Printer model

Two Trees SP5

Electronics

MKS Robin Nano V3.1

LCD/Controller

MKS TFT 3.5

Other add-ons

MKS Wifi, BLTouch

Bed Leveling

UBL Bilinear mesh

Your Slicer

Other (explain below)

Host Software

SD Card (headless)

Don't forget to include

  • A ZIP file containing your Configuration.h and Configuration_adv.h.

Additional information & file uploads

Configuration_andrademf_20241124.zip

@andrademf andrademf changed the title [BUG] Toolhead crash when trying retraction before stop [BUG] Toolhead crashes when attempting retraction before stopping Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant