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

Receiving error "Could not find the first line of the end gcode block. Missing ; Filament-specific end gcode comment."; however, the line is in the g-code #23

Open
SpoolItUp opened this issue Dec 13, 2024 · 3 comments

Comments

@SpoolItUp
Copy link

As mentioned in the title, I am getting the error that the "; Filalament-specific end gcode comment" is missing; however, it's in the the g-code. Sliced on Prusaslicer 2.8.1.

@krom
Copy link

krom commented Dec 23, 2024

I have the same issue PrusaSlicer 2.9.0
My gcode

...
;TYPE:Custom
; Filament-specific end gcode 
;END gcode for filament
END_PRINT
...
; end_filament_gcode = "; Filament-specific end gcode \n;END gcode for filament\n"
; end_gcode = END_PRINT
...

@garethky
Copy link
Owner

garethky commented Dec 23, 2024

Looks like a space has been added at the end of the line:

Original:

; Filament-specific end gcode\n

New:

; Filament-specific end gcode \n
                             ^

The lines are not exactly the same so they fail to match. I could make this check more lenient by allowing additional whitespace at the end of the line.

Before deciding what to do, I would really like to understand is how you got this extra space in there? I have 2.9.0 and I don't see it in my sliced GCode files with the Prusament profiles. What filament profile is this?

@krom
Copy link

krom commented Dec 23, 2024

Looks like a space has been added at the end of the line:

Thank you, this helped

how you got this extra space in there?

I Imported custom profile provided by my teammate at least one year ago

also I added manually to .gcode fille

printer_model = Kingroon KP3S Pro V2

Because my Slicer don't provided this value
And I got error

Test pattern generation failed: No max value found, all values are null or 0!

And I guess it's because this printer is not supported but it uses standard klipper commands

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants