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

    3.5b1 Reset reason: StuckInSpinLoop?

    Scheduled Pinned Locked Moved Solved
    Beta Firmware
    2
    33
    1.5k
    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.
    • dc42undefined
      dc42 administrators @Diamondback
      last edited by

      @Diamondback I suspect it's an interaction between DWC polling the object model (which involves reading some values from the heap) and garbage collection of the heap taking place because string or array variables are being reassigned.

      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

      Diamondbackundefined 1 Reply Last reply Reply Quote 0
      • Diamondbackundefined
        Diamondback @dc42
        last edited by

        @dc42 I played around with the DWC polling time this morning but didn't get any immediate results, I'll play around with it some more and see if I can maybe make it go away by setting it much higher?

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

          @Diamondback my next step will be to disconnect DWC completely and then see if I can provoke the reset by sending the command to run the macro over USB.

          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

          Diamondbackundefined dc42undefined 2 Replies Last reply Reply Quote 0
          • Diamondbackundefined
            Diamondback @dc42
            last edited by

            @dc42 Hm, I guess I can try the same by having the issue triggered by daemon.g and not having any browser connected to it? Or does DWC still do stuff in the background then somehow?

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

              Confirmed, if I send the command over USB with DWC not connected, it doesn't reset. If I connect DWC and send the command over USB, it resets.

              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 1
              • dc42undefined
                dc42 administrators @Diamondback
                last edited by

                @Diamondback please try the firmware at https://www.dropbox.com/sh/z9f9v517t9txqh9/AACG2Dycr_EghlN4p1HsYVUNa?dl=0. It fixes the case that I was able to reproduce. The change is quite extensive, so please use it with caution.

                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

                Diamondbackundefined 1 Reply Last reply Reply Quote 1
                • Diamondbackundefined
                  Diamondback @dc42
                  last edited by

                  @dc42 Will do! 🙂 This includes the previous array memory leak fix?

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

                    @Diamondback yes it does. If you get any resets, please post a subsequent M122 report.

                    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

                    Diamondbackundefined 3 Replies Last reply Reply Quote 1
                    • Diamondbackundefined
                      Diamondback @dc42
                      last edited by

                      @dc42 Looking promising so far, no more resets atm. 🙂
                      I also yesterday played around more with the DWC polling frequency between 50ms and 60s and as you assumed, with lower values it was happening much quicker.

                      1 Reply Last reply Reply Quote 0
                      • Diamondbackundefined
                        Diamondback @dc42
                        last edited by

                        @dc42 Finally working 🙂
                        https://www.dropbox.com/s/fyguad75k8g2ffe/VID_20230124_102416.mp4?dl=0

                        1 Reply Last reply Reply Quote 2
                        • dc42undefined dc42 has marked this topic as solved
                        • Diamondbackundefined
                          Diamondback @dc42
                          last edited by

                          @dc42 happy to report, no further resets over the day 🙂 Many thanks!

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