Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Error gcode file too long

    Scheduled Pinned Locked Moved
    General Discussion
    6
    22
    1.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • daoustundefined
      daoust @infiniteloop
      last edited by

      @infiniteloop it stop after 6h30 min in a 10 to 11h print

      infiniteloopundefined 1 Reply Last reply Reply Quote 0
      • infiniteloopundefined
        infiniteloop @daoust
        last edited by

        @daoust OK, let's have a look at the file as you see it in notepad: If it is complete, it should end with a bunch of commented lines similar to this:

        ; wipe = 0
        ; z_offset = 0
        ; clip_multipart_objects = 1
        ; dont_support_bridges = 1
        ; extrusion_width = 0.45
        ; first_layer_height = 0.25
        ; infill_only_where_needed = 0
        ; interface_shells = 0
        ; layer_height = 0.15
        ; raft_layers = 0
        ; seam_position = nearest
        ; support_material = 0
        ; support_material_angle = 0
        ; support_material_buildplate_only = 0
        ; support_material_contact_distance = 0.15
        ; support_material_enforce_layers = 0
        ; support_material_extruder = 1
        ; support_material_extrusion_width = 0.35
        ; support_material_interface_contact_loops = 0
        ; support_material_interface_extruder = 1
        ; support_material_interface_layers = 2
        ; support_material_interface_spacing = 0.2
        ; support_material_interface_speed = 100%
        ; support_material_pattern = rectilinear
        ; support_material_spacing = 2
        ; support_material_speed = 50
        ; support_material_synchronize_layers = 0
        ; support_material_threshold = 35
        ; support_material_with_sheath = 0
        ; support_material_xy_spacing = 60%
        ; xy_size_compensation = 0
        ; bottom_solid_layers = 4
        ; bridge_flow_ratio = 0.8
        ; bridge_speed = 20
        ; ensure_vertical_shell_thickness = 1
        ; external_fill_pattern = concentric
        ; external_perimeter_extrusion_width = 0.45
        ; external_perimeter_speed = 25
        ; external_perimeters_first = 0
        ; extra_perimeters = 0
        ; fill_angle = 45
        ; fill_density = 25%
        ; fill_pattern = honeycomb
        ; gap_fill_speed = 40
        ; infill_every_layers = 2
        ; infill_extruder = 1
        ; infill_extrusion_width = 0.45
        ; infill_overlap = 25%
        ; infill_speed = 80
        ; overhangs = 0
        ; perimeter_extruder = 1
        ; perimeter_extrusion_width = 0.45
        ; perimeter_speed = 60
        ; perimeters = 3
        ; small_perimeter_speed = 20
        ; solid_infill_below_area = 0
        ; solid_infill_every_layers = 65
        ; solid_infill_extruder = 1
        ; solid_infill_extrusion_width = 0.45
        ; solid_infill_speed = 40
        ; thin_walls = 0
        ; top_infill_extrusion_width = 0.45
        ; top_solid_infill_speed = 30
        ; top_solid_layers = 4
        

        All these lines start with a colon, the are appended by Cura to the GCodes making up the print. If you don't see anything like this, the file "CFFFP_700w heater2.gcode" is truncated by notepad. In that case, use LibreOffice instead.

        As I'm on the Mac, I use Xcode which give me line-numbering - not sure which app you could use on a PC to offer this capability. Nevertheless: When you have ensured to get the whole file, just scroll around in the area short after half of the file. You will notice that most of the lines consist of G1 commands - the other ones are mostly layer changes etc.

        These G1-lines all are of (approximately) the same length - just look for a line which extends prominently to the right: that's our culprit!

        daoustundefined 1 Reply Last reply Reply Quote 0
        • daoustundefined
          daoust @infiniteloop
          last edited by

          @infiniteloop I tested 3 differents gcode viewer, all 3 have the same line count of 941 463. All 2 mark ; end of gcode at line 941 443. After looking for a long gcode line, I don t find anything longer near the midle of the print. Should I try again the same gcode to see if the probleme still there? 20230117_164747.jpg

          daoustundefined infiniteloopundefined 2 Replies Last reply Reply Quote 0
          • daoustundefined
            daoust @daoust
            last edited by

            @daoust ![alt text]20230117_204225.jpg

            1 Reply Last reply Reply Quote 0
            • Phaedruxundefined
              Phaedrux Moderator
              last edited by

              Can you please share the actual file?

              Also please share the results of M122.

              Z-Bot CoreXY Build | Thingiverse Profile

              1 Reply Last reply Reply Quote 0
              • dc42undefined
                dc42 administrators @daoust
                last edited by

                @daoust said in Error gcode file too long:

                @infiniteloop I use cura 5.0 with reprap firmware.

                It almost stop in mid print but when I open with notepad++ it only have 941463 line of command for the complet gcode so I don t understand how it can be a probleme with the line 995655

                Current versions of RRF double count line numbers when the line ending is CRLF. So try looking at line 497828.

                Duet WiFi hardware designer and firmware engineer
                Please do not ask me for Duet support via PM or email, use the forum
                http://www.escher3d.com, https://miscsolutions.wordpress.com

                infiniteloopundefined 1 Reply Last reply Reply Quote 0
                • infiniteloopundefined
                  infiniteloop @dc42
                  last edited by

                  @dc42 said in Error gcode file too long:

                  Current versions of RRF double count line numbers when the line ending is CRLF.

                  Thanks for the missing link!

                  1 Reply Last reply Reply Quote 0
                  • infiniteloopundefined
                    infiniteloop @daoust
                    last edited by

                    @daoust said in Error gcode file too long:

                    Should I try again the same gcode to see if the probleme still there?

                    You can try a simulation run, so no waste of filament. But the original problem has to be found in the file, and @dc42 told us where to look:

                    Current versions of RRF double count line numbers when the line ending is CRLF. So try looking at line 497828

                    Be it a line more or less - if you can share the file as @Phaedrux proposes, we can throw our editors with line numbering at it 😊

                    1 Reply Last reply Reply Quote 0
                    • daoustundefined
                      daoust
                      last edited by

                      so here is the m122 , for the gcode, it say my file size is too big too share, so how to ? file size is
                      29 921kb

                      console.txt

                      infiniteloopundefined 1 Reply Last reply Reply Quote 0
                      • daoustundefined
                        daoust
                        last edited by

                        Here is the line that should have fail20230118_192037.jpg

                        1 Reply Last reply Reply Quote 0
                        • infiniteloopundefined
                          infiniteloop @daoust
                          last edited by infiniteloop

                          @daoust

                          for the gcode, it say my file size is too big too share, so how to?

                          Dropbox, Google Drive? As I don't use any of these, I can't give a recommendation. Maybe @Phaedrux has an idea?

                          Thanks for the screenshot - all lines look pretty common, so I wonder what's going on there. I really want to examine the binary, and if nothing else helps, run the file in simulation mode on my printer.

                          The M122 report would be more telling if you made it in the event of the error, that is when you actually print (or simulate) the file.

                          daoustundefined 2 Replies Last reply Reply Quote 1
                          • daoustundefined
                            daoust @infiniteloop
                            last edited by

                            @infiniteloop the m122 was done after the error hapen, the printer was never close after the event.

                            I will look at dropbox to send the file. Now I m suspecting a bad sd card maybe

                            1 Reply Last reply Reply Quote 0
                            • daoustundefined
                              daoust @infiniteloop
                              last edited by

                              @infiniteloop here is the file. it is available for 7 days https://www.transfernow.net/dl/20230120EGawtxia

                              Thank you

                              dc42undefined 1 Reply Last reply Reply Quote 0
                              • dc42undefined
                                dc42 administrators @daoust
                                last edited by

                                @daoust thanks, I am running your file in simulation mode now.

                                Duet WiFi hardware designer and firmware engineer
                                Please do not ask me for Duet support via PM or email, use the forum
                                http://www.escher3d.com, https://miscsolutions.wordpress.com

                                infiniteloopundefined 1 Reply Last reply Reply Quote 0
                                • infiniteloopundefined
                                  infiniteloop @dc42
                                  last edited by

                                  @daoust, @dc42 said in Error gcode file too long:

                                  thanks, I am running your file in simulation mode now.

                                  Mee too. Simulation shows no problems. I've also looked at the file: no hidden characters, no line even near to the limit of 255 chars. So your file is OK. Maybe you're right suspecting the sd card.

                                  1 Reply Last reply Reply Quote 1
                                  • dc42undefined
                                    dc42 administrators
                                    last edited by

                                    @daoust my simulation ran OK too.

                                    I am wondering whether the file might have become corrupted. How did you upload the file to the Duet? If you uploaded it from DWC, do you have "Use CRC32 checksums for uploads" enabled on the Settings/Machine Specific tab?

                                    You could download the file from the Duet and check whether the downloaded one matches the original.

                                    Duet WiFi hardware designer and firmware engineer
                                    Please do not ask me for Duet support via PM or email, use the forum
                                    http://www.escher3d.com, https://miscsolutions.wordpress.com

                                    daoustundefined 1 Reply Last reply Reply Quote 0
                                    • daoustundefined
                                      daoust @dc42
                                      last edited by

                                      @dc42 I always use a sdcard because I need a wifi booster but I don t have any. I got some trouble lately that make me belive my sd card is the only thing that where not try yet.

                                      1 Reply Last reply Reply Quote 0
                                      • R006undefined R006 referenced this topic
                                      • First post
                                        Last post
                                      Unless otherwise noted, all forum content is licensed under CC-BY-SA