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

    Duet 0.6 randomly reboots

    Scheduled Pinned Locked Moved
    General Discussion
    2
    14
    1.7k
    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
      last edited by dc42

      Looks like it's hit an assertion failure within LWIP and it's trying to print a debug message to USB. If you attach a PC running YAT or Pronterface to the USB port, you will probably see a message on it when this situation occurs, and it probably won't reboot. Take precautions against USB ground loops (see the wiki page about them) when using a USB connection.

      [Note for me when I look into this: looks like mdns_responder populate_record.constprop.11 is calling pbuf_cat with one of the args being null. It could be that the pbuf allocation in populate_record failed.]

      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

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

        I've looked into this further. The MDNS responder in lwip version 1 is contributed code and is not up to the standard of the main lwip code. In particular, in multiple places fails to do any error handling when it fails to allocate a buffer. This is producing the assertion failure.

        I looked to see if there are any updates to lwip 1 to address this, but I didn't find any. In lwip 2 it looks like the MDNS responder has been completely rewritten, and it is part of the core code. So there are no MDNS fixes that I can back-port to lwip 1.

        Ideally the network code for the legacy Duets would be changed to use lwip 2 instead of lwip 1, but that would be a large undertaking. So I'm not going to do that because I have lots of Duet 2 and Duet 3 work to do, and I don't receive any remuneration for working on code for the legacy Duets. Unless someone else wants to take that project on, or to add the missing error handling to the mdns source code, I think the best thing to do is to disable mdns. This would mean that you have to use the IP address in your browser, instead of local names such as "Duet.local".

        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
        • Spaceskaterundefined
          Spaceskater
          last edited by

          I don't use MDNS any way since I have a small local network for my "lab". How do I disable it though?
          I will try the USB output to see if I get anything.

          Thanks!

          1 Reply Last reply Reply Quote 0
          • Spaceskaterundefined
            Spaceskater
            last edited by

            Also I totally understand it is pointless for you to spend so much time integrating lwip 2 for the old hardware. I hope disabling the mDNS works. Otherwise I will try to go to an older FW version. Is the integration of mDNS a recent addition? I wonder why I didn't have this problem in the older firmware.

            1 Reply Last reply Reply Quote 0
            • Spaceskaterundefined
              Spaceskater
              last edited by

              Well after some effort I got the following error in Pronterface. For some reason that didn't come up every time the printer rebooted.

              Assertion "(h != NULL) && (t != NULL) (programmer violates API)" failed at line 752 in ../src/Duet/Lwip/lwip/src/core/pbuf.c

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

                That's exactly the message I expected so it confirms my diagnosis. I'll disable MDNS support in the next build.

                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
                • Spaceskaterundefined
                  Spaceskater
                  last edited by

                  Thank you David. Your help is much appreciated!

                  I hoped there was an easy way to disable mDNS and not affect every future build for the early duets.

                  I have been contemplating on upgrading my Ormerod 1 to a newer Duet but I don't think my old and not so reliable in terms of print quality/success Ormerod 1 is worth the extra money. I already have changed everything else including the aluminum parts and your dual-nozzle Z sensor.

                  I wish you have you have a great new year's eve!

                  1 Reply Last reply Reply Quote 0
                  • Spaceskaterundefined
                    Spaceskater
                    last edited by

                    @dc42 said in Duet 0.6 randomly reboots:

                    I'll disable MDNS support in the next build.

                    Hello David, hope all is well!

                    Any update on that?

                    Regards,
                    Achilles

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

                      You can try the 2.03 early beta build at https://www.dropbox.com/s/ozuw60nflckpq6c/RepRapFirmware.bin?dl=0 if you like, but it's untested so exercise 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

                      1 Reply Last reply Reply Quote 0
                      • Spaceskaterundefined
                        Spaceskater
                        last edited by

                        Thank you, will cautiously proceed and let you know!

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

                          I included a Duet 086/06 build in the 2.03beta1 release too.

                          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