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

    Crash when creating a variable from an Object Model array

    Scheduled Pinned Locked Moved
    Firmware developers
    2
    3
    176
    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.
    • leoneundefined
      leone
      last edited by

      Hi all,
      I'm getting software crashes when I try to set variables from certain Object Model items:

      echo state.restorePoints[0].coords     --> OK
      var a = state.restorePoints[0].coords  --> OK
      
      echo state.restorePoints[1].coords     --> OK
      var b = state.restorePoints[1].coords  --> KO
      
      var c = state.restorePoints[1].toolNumber  --> OK
      

      it crashes also with var z = tools[1].extruders.
      It seems like the problem is when copying the array field from the second element of an array of objects.
      I'm currently using RRF 3.5.2, but I tried also 3.5.0 and the issue is the same.

      Can you replicate the issue or am I missing something?

      Thanks

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

        @leone thanks, I can replicate that. I've created https://github.com/Duet3D/RepRapFirmware/issues/1029.

        dc42 created this issue in Duet3D/RepRapFirmware

        closed Crash when creating a variable from an Object Model array #1029

        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

        leoneundefined 1 Reply Last reply Reply Quote 1
        • leoneundefined
          leone @dc42
          last edited by

          @dc42 thanks!

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