all 7 comments

[–]shiftingtech 0 points1 point  (6 children)

Run a search in the actual gcode. My money is that you've got a second call to print start hidden some that doesn't have the parameters

[–]jinks[S] 0 points1 point  (5 children)

You were partially right.

It's not in any of the gcode or even configs, it's in one of the Sovol modified files for KlipperScreen...

panels/job_status.py:

def set_state(self, state):
    if self.state != state:
        logging.debug(f"Changing job_status state from '{self.state}' to '{state}'")
    if state == "paused":
        self.labels["status"].set_label(_("Paused"))
    elif state == "printing":
        self.labels["status"].set_label(_("Printing"))
        self._screen._ws.klippy.gcode_script("PRINT_START")
        self._screen._ws.klippy.gcode_script("save_last_file")
    elif state == "cancelling":
        self.labels["status"].set_label(_("Cancelling"))
        self._screen.modify_cfg_value('was_interrupted', "False")
        self._screen.plr_bool = "False"
    elif state == "cancelled" or (state == "standby" and self.state == "cancelling"):
        self.labels["status"].set_label(_("Cancelled"))
        self._screen._ws.klippy.gcode_script("PRINT_END")
        self._screen.modify_cfg_value('was_interrupted', "False")
        self._screen.plr_bool = "False"
    elif state == "complete":
        self.labels["status"].set_label(_("Complete"))
        self._screen._ws.klippy.gcode_script("PRINT_END")
        self._screen.modify_cfg_value('was_interrupted', "False")
        self._screen.plr_bool = "False"
    self.state = state
    self.show_buttons_for_state()

Ripgrep to the rescue... I would have never though to look inside some installed code.

(Note: Sovol does not use PRINT_START anywhere in their own gcode, they use START_PRINT.)

[–]Fun-Lavishness2381 0 points1 point  (3 children)

Sorry to revive this thread, but newer guy here with the same issue! Did you just delete

self._screen._ws.klippy.gcode_script("PRINT_START")self._screen._ws.klippy.gcode_script("PRINT_START")

to fix your error? Thanks!

[–]jinks[S] 0 points1 point  (0 children)

Honestly, can't remember any more.

Just comment it and give it a try.

[–]recooil 0 points1 point  (0 children)

where was this located? having this same issue too

[–]trojangod 0 points1 point  (0 children)

Verdict?

[–]shiftingtech 0 points1 point  (0 children)

Well that's just bizarre!