MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.3k stars 19.25k forks source link

[BUG] MMU2S: LCD freezes when printing #26544

Open rerickson1 opened 11 months ago

rerickson1 commented 11 months ago

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

Yes, and the problem still exists.

Bug Description

  1. MMU2S enabled in Marlin
  2. When the print starts the LCD freezes and never updates
  3. The print works fine and completes
  4. The LCD unfreezes

Bug Timeline

Has been present since the v2.1.2.1 release

Expected behavior

Should be able to use the MMU2S without affecting the LCD operation.

Actual behavior

No response

Steps to Reproduce

No response

Version of Marlin Firmware

https://github.com/rerickson1/Marlin/tree/rde/2.1.x_2/a8%2B_custom

Printer model

Modified Anet A8+

Electronics

MKS SGEN L V2

LCD/Controller

Anet A8+ LCD

Other add-ons

No response

Bed Leveling

UBL Bilinear mesh

Your Slicer

Prusa Slicer

Host Software

OctoPrint

Don't forget to include

Additional information & file uploads

No response

rerickson1 commented 11 months ago

My config: config.zip

My code: https://github.com/rerickson1/Marlin/tree/rde/2.1.x_2/a8%2B_custom

rerickson1 commented 11 months ago

I have tried increasing all buffers and it did not make a difference. Maybe more adjustments are needed?

Recv: D576 P:0 0 (0) B:3 42 (14)
Recv: D576 P:0 0 (0) B:3 36 (10)
Recv: D576 P:0 0 (0) B:3 109 (41)
robherc commented 11 months ago

ummm...you're using a remix & not official marlin ... and you also haven't told what control board you're using.

rerickson1 commented 11 months ago

Control board is listed up in the description. What do you mean by remix? I have taken vanilla marlin and applied the config settings for my board:

image

Without any customizations to marlin, this issue happens.

rerickson1 commented 11 months ago

I have noticed the LCD only freezes when printing is in progress and there is motion in X/Y directions. During a tool change when there is no X/Y motion, the LCD unfreezes. Video: https://youtu.be/nyE4K4mlIH8 What can I try to troubleshoot this issue?

eoyilmaz commented 11 months ago

This is a duplicate of #24813

I looked into this recently and found a couple of possible sources that can cause this, but it is still freezing... Hopefully this will fix it 😉 : #26523

rerickson1 commented 3 months ago

@thisiskeithb I would really like to help get to the bottom of this. This issue is present with this PR: https://github.com/MarlinFirmware/Marlin/pull/26635

There must be some loop starving the LCD update task. How can I enable some advanced debug? I tried increasing buffers and it didn't solve the issue, but maybe I did it wrong.

tommylux commented 1 week ago

I'm experiencing slow performance with the LCD when printing through OctoPrint. The LCD seems to lag, moving only one notch when I turn the dial, and often appears frozen. Pressing the dial selects a different menu because the selection hasn't updated. If I wait too long, the menu often closes out. I'm wondering if the buffer is getting overloaded and if there's a way to limit the number of commands OctoPrint sends. Any suggestions would be greatly appreciated. Thanks!

Look forward to any suggestion.

Thanks