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

Closed
1 task done
andrademf opened this issue Nov 24, 2024 · 1 comment
Closed
1 task done

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

andrademf opened this issue Nov 24, 2024 · 1 comment

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
Copy link

Greetings from the Marlin AutoBot!
This issue has had no activity for the last 90 days.
Do you still see this issue with the latest bugfix-2.1.x code?
Please add a reply within 14 days or this issue will be automatically closed.
To keep a confirmed issue open we can also add a "Bug: Confirmed" tag.

Disclaimer: This is an open community project with lots of activity and limited
resources. The main project contributors will do a bug sweep ahead of the next
release, but any skilled member of the community may jump in at any time to fix
this issue. That can take a while depending on our busy lives so please be patient,
and take advantage of other resources such as the MarlinFirmware Discord to help
solve the issue.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 10, 2025
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