davidramiro / Marlin-Ai3M

🖨 Marlin firmware optimized for the Anycubic i3 Mega 3D printer
GNU General Public License v3.0
521 stars 186 forks source link

[BUG] Marlin seems to crash completely with the provided gcode file #113

Closed Xeno8888 closed 3 years ago

Xeno8888 commented 3 years ago

Describe the bug I created a small object with Fusion360, added this to Cura 4.8.0 five times, used "Auto Orientation -> Calculate extended optimal printing orientation" and arranged them all via Cura "Arrange All Models".

Then I sent it via USB to my Anycubic I3 Mega which has your Marlin-Ai3M firmware running. Originally I had the Marlin-AI3M-181227-TMC2208_reversed.hex flashed, where it crashed and then upgraded to Marlin-Ai3M-v1.4.6-TMC2208_reversed.hex where it also crashes.

When it crashes all FANs are running but the bed and extruder have no temperature (luckily). The TFT also stays at the stuck values (see attached image).

I can print my five objects without any issue if I just align the X/Y positions of every object to an integer value (like X 2,341 gets 3).

EDIT: I had some issues with getting a log, but now I understand what happens: Marlin kills itself because of a "Heating failed" error - this also happens in dry-run mode?! I also retuned PIDs but didnt help. What could possibly go wrong at my printer?

With debug I got this:

AI3M_test pipe v7 13mm_crash.gcode, 1292985 lines
25.18m of filament used in this print
The print goes:
- from 0.00 mm to 154.96 mm in X and is 154.96 mm wide
- from 0.00 mm to 160.38 mm in Y and is 160.38 mm deep
- from 0.00 mm to 79.81 mm in Z and is 79.81 mm high
Estimated duration: 399 layers, 4:17:19
Print started at: 11:27:41
echo:Unknown command: "G21"
>>> M111 S38 ; LEVELING, ERRORS, INFO 
SENDING:M111 S38 ; LEVELING, ERRORS, INFO
echo:DEBUG:INFO,ERRORS
>>> M111 S8 
SENDING:M111 S8
echo:DEBUG:DRYRUN
echo:Unknown command: "G5"
Error:Heating failed, system stopped! Heater_ID: 0
Error:Heating failed, system stopped! Heater_ID: 0

Error:Printer halted. kill() called!
Error:Printer halted. kill() called!

Disconnected.

Here is the generated gcode: test gcode To Reproduce Steps to reproduce the behavior:

  1. load my object into cura 4.8.0
  2. duplicate it 4 times
  3. use the Extension "Auto Orientation" and Curas "Arrange All Models"
  4. print it
  5. after a short time of printing the printer stops and is unresponsive

Expected behavior I expect a responsive printer that just prints.

Photos of the print / output of the terminal IMG_6776

Printer (please complete the following information):

M503 Output

>>> M503
SENDING:M503
echo:  G21    ; (mm)
echo:Filament settings: Disabled
echo:  M200 D1.75
echo:  M200 D0
echo:Steps per unit:
echo:  M92 X80.00 Y80.00 Z400.00 E95.46
echo:Maximum feedrates (units/s):
echo:  M203 X500.00 Y500.00 Z6.00 E60.00
echo:Maximum Acceleration (units/s2):
echo:  M201 X3000 Y3000 Z60 E10000
echo:Acceleration (units/s2): P<print_accel> R<retract_accel> T<travel_accel>
echo:  M204 P4000.00 R3000.00 T4000.00
echo:Advanced: Q<min_segment_time_us> S<min_feedrate> T<min_travel_feedrate> X<max_x_jerk> Y<max_y_jerk> Z<max_z_jerk> E<max_e_jerk>
echo:  M205 Q20000 S0.00 T0.00 X20.00 Y20.00 Z0.40 E5.00
echo:Home offset:
echo:  M206 X0.00 Y0.00 Z0.00
echo:Mesh Bed Leveling:
echo:  M420 S0 Z0.00
echo:Endstop adjustment:
echo:  M666 Z0.00
echo:PID settings:
echo:  M301 P15.94 I1.17 D54.19
echo:  M304 P216.53 I41.30 D283.81
echo:Linear Advance:
echo:  M900 K0.00
echo:Filament load/unload lengths:
echo:  M603 L0.00 U0.00
Xeno8888 commented 3 years ago

ok, seems to be a problem with the extruder - sorry for the noise.