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

    File seems to crash the firmware (Maybe Line Endings?)

    Scheduled Pinned Locked Moved
    Firmware installation
    3
    7
    345
    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.
    • dgratundefined
      dgrat
      last edited by

      I noticed that the firmware/WebApp seems to crash if I upload and execute this file.
      Copying the content with Notepad++ into a new file seems to work.

      lin_adv.gcode

      dc42undefined chrishammundefined 2 Replies Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators @dgrat
        last edited by

        @dgrat the line ending shouldn't matter. Which board and firmware version are you using?

        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

        dgratundefined 1 Reply Last reply Reply Quote 0
        • dgratundefined
          dgrat @dc42
          last edited by

          @dc42

          Board: Duet 2 WiFi (2WiFi)
          Firmware: RepRapFirmware for Duet 2 WiFi/Ethernet 3.4.1 (2022-06-01)
          Duet WiFi Server Version: 1.26

          dgratundefined 1 Reply Last reply Reply Quote 0
          • dgratundefined
            dgrat @dgrat
            last edited by dgrat

            @dgrat
            I think it might be the coding. I was piping the output of a python script with powershell. Maybe a coding check (warning) in the web-app or firmware would be beneficial.

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

              @dgrat yes, that file is UTF16 encoded. RRF only accepts UTF8 and plain ASCII.

              76613897-7055-4daa-84cc-32982f30df8c-image.png

              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
              • chrishammundefined
                chrishamm administrators @dgrat
                last edited by

                @dgrat In SBC mode it may be possible to use UTF-16 files because the file readers should auto-determine the underlying encoding. I have not tested this yet, though.

                Duet software engineer

                dgratundefined 1 Reply Last reply Reply Quote 0
                • dgratundefined
                  dgrat @chrishamm
                  last edited by

                  Do you think it makes sense to check encoding in the firmware and reject the file to avoid UB.

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