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

    Duet rebooting mid print

    Scheduled Pinned Locked Moved
    Using Duet Controllers
    5
    14
    631
    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.
    • vrghostundefined
      vrghost
      last edited by

      Ugh, I've just noticed the

      @vrghost said in Duet rebooting mid print:

      reason: OutOfMemory

      message.

      I guess I've got little bit too carried away with the scripting. Is there any way I can release a variable or get more RAM? 🤡

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

        @vrghost I am surprised that you are running out of memory. Please share the file that you are trying to print.

        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

        vrghostundefined 1 Reply Last reply Reply Quote 0
        • vrghostundefined
          vrghost @dc42
          last edited by

          @dc42
          Here is the file
          Tool-Changer Cover Long.gcode

          And here is the event log from the last print I've attempted (with the gcode whereabouts)
          eventlog.txt

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

            Can you also share your config.g and any other macros that get called along the way?

            Z-Bot CoreXY Build | Thingiverse Profile

            vrghostundefined 1 Reply Last reply Reply Quote 0
            • mrenz999undefined
              mrenz999 @vrghost
              last edited by

              @vrghost I had a similar issue. Did not reboot just stopped printing twice now. Once 3 mins in the second time 6 mins in. I checked on printer both times to find the heaters off, bed and tool, and it stopped. No errors reported just not printing.

              gloomyandyundefined dc42undefined 2 Replies Last reply Reply Quote 0
              • vrghostundefined
                vrghost @Phaedrux
                last edited by

                @phaedrux
                Of course I can.

                https://github.com/VRGhost/tc-rrf/blob/main/dist/ilo-tc/sys/config.g

                All other scripts can be found in that repo too.

                1 Reply Last reply Reply Quote 1
                • gloomyandyundefined
                  gloomyandy @mrenz999
                  last edited by

                  @mrenz999 If your board is not resetting it is likely that you have a different problem, so you will probably get better help if you start a new thread and describe exactly what happens along with posting the output from running m122 along with your config.g file.

                  mrenz999undefined 1 Reply Last reply Reply Quote 1
                  • mrenz999undefined
                    mrenz999 @gloomyandy
                    last edited by

                    @gloomyandy Will do. My heaters just turned off mid print. So no board reset.

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

                      @mrenz999 said in Duet rebooting mid print:

                      @vrghost I had a similar issue. Did not reboot just stopped printing twice now. Once 3 mins in the second time 6 mins in. I checked on printer both times to find the heaters off, bed and tool, and it stopped. No errors reported just not printing.

                      Did you run M122 and check the last reset time, to see if it was caused by a power glitch?

                      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

                      1 Reply Last reply Reply Quote 0
                      • vrghostundefined
                        vrghost
                        last edited by

                        Hello,

                        In my attempts to make a minimal code to replicate the issue, I've stumbled on another bit of unexpected behavior.

                        If one declares a local variable on the top level of a "job" (a file that is put into the "gcodes" directory on the duet), that local variable is NOT released upon completion of the job. So, a second run of the same gcode is aborted with the

                        M32 "0:/gcodes/min_bug.gcode"
                        File 0:/gcodes/min_bug.gcode selected for printing
                        Error: in GCode file line 2 column 16: meta command: variable 'outer_idx' already exists
                        Cancelled printing file 0:/gcodes/min_bug.gcode, print time was 0h 0m
                        

                        message.

                        To replicate just run this gcode file as a print job twice.
                        min_var_bug.gcode

                        dc42undefined 1 Reply Last reply Reply Quote 0
                        • vrghostundefined
                          vrghost
                          last edited by

                          Also, is "abort" command preventing GC of local vars?

                          The file below works as expected on the first run, but the execution starts with "outer_idx" set to 3 when running the job second time.

                          min_abort_bug.gcode

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

                            @vrghost said in Duet rebooting mid print:

                            If one declares a local variable on the top level of a "job" (a file that is put into the "gcodes" directory on the duet), that local variable is NOT released upon completion of the job.

                            That one has already been reported, and fixed in 3.4beta3.

                            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

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

                              @vrghost I've run that macro several times, using M98 from DWC, and it produces the same output each time. So I think this one is also fixed already.

                              Did you manage to create a file that causes all the memory to be used up?

                              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

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