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

    3.4RC1 QOI thumbnail parsing fails on SBC

    Scheduled Pinned Locked Moved
    Beta Firmware
    2
    3
    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.
    • resamundefined
      resam
      last edited by

      I'm now running 3.4RC1 on my Duet2Wifi with SBC.

      This input file generated by Cura with the Cura-DuetRRF plugin:
      CFFFP_Dont_Panic.gcode

      Causes M36 to fail with an error, and the SBC throws an exception:

      [debug] Waiting for execution of M36 "CFFFP_Dont_Panic.gcode"
      [debug] Processing M36 "CFFFP_Dont_Panic.gcode"
      [debug] Found Prusa Slicer QOI Image
      [debug] Failed to return file information
         DuetControlServer.Files.ImageProcessing.ImageProcessingException: Exception of type 'DuetControlServer.Files.ImageProcessing.ImageProcessingException' was thrown.
         at DuetControlServer.Files.ImageProcessing.PrusaSlicerImageParser.ProcessAsync(StreamReader reader, CodeParserBuffer codeParserBuffer, GCodeFileInfo parsedFileInfo, Code code, Boolean readThumbnailContent, ThumbnailInfoFormat format) in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Files/ImageProcessing/PrusaSlicerImageParser.cs:line 77
         at DuetControlServer.Files.InfoParser.ParseThumbnails(StreamReader reader, Code code, CodeParserBuffer codeParserBuffer, GCodeFileInfo parsedFileInfo, Boolean readThumbnailContent) in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Files/InfoParser.cs:line 538
         at DuetControlServer.Files.InfoParser.ParseHeader(StreamReader reader, Boolean readThumbnailContent, GCodeFileInfo partialFileInfo) in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Files/InfoParser.cs:line 105
         at DuetControlServer.Files.InfoParser.Parse(String fileName, Boolean readThumbnailContent) in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Files/InfoParser.cs:line 51
         at DuetControlServer.Codes.MCodes.Process(Code code) in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Codes/MCodes.cs:line 363
      [debug] Waiting for finish of M36 "CFFFP_Dont_Panic.gcode" => {"err":1}
      [debug] Completed M36 "CFFFP_Dont_Panic.gcode" => {"err":1}
      

      I believe this is due to the incorrect thumbnail end tag parsing at https://github.com/Duet3D/DuetSoftwareFramework/blob/v3.4-dev/src/DuetControlServer/Files/ImageProcessing/PrusaSlicerImageParser.cs#L80.

      The correct end tag is the same as the beginning tag: thumbnail_QOI begin and thumbnail_QOI end
      See RRF change here: https://github.com/Duet3D/RepRapFirmware/commit/2f5da09e7dda9b8c95fffb572ce9a2c202b06673

      Also nitpick: It identifies the thumbnail as "Prusa Slicer QOI Image", while this gcode file was generated with Cura (which doesn't matter either way, so I suggest renaming the DCS source code classes to a generic name and changing the log output).

      @chrishamm I've sent a PR with both changes and included a new unit test for QOI thumbnails:
      https://github.com/Duet3D/DuetSoftwareFramework/pull/179

      Kriechi opened this pull request in Duet3D/DuetSoftwareFramework

      closed Thumbnail fixes #179

      0 dc42 committed to Duet3D/RepRapFirmware
      Recognise Prusa slicer thumbnail_QOI end comment
      1 Reply Last reply Reply Quote 2
      • dc42undefined
        dc42 administrators
        last edited by

        @resam yes we know about this. RRF and DSF source code have both been updated and we will release an update soon.

        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

        resamundefined 1 Reply Last reply Reply Quote 0
        • resamundefined
          resam @dc42
          last edited by

          @dc42 Cura-DuetRRF Plugin to embed thumbnails just landed on the public Ultimaker Cura Marketplace - but due to this issue it is not yet compatible with 3.4-rc1.

          So, with the next RC it should immediately work with the latest Cura plugin version v1.2.5.

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