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

Array index out of bounds error on object model node

Scheduled Pinned Locked Moved
Gcode meta commands
object model
5
25
1.1k
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.
  • undefined
    dc42 administrators @oozeBot
    last edited by 15 Nov 2023, 08:42

    @curieos I've put a 6XD build at https://www.dropbox.com/scl/fo/tb6tn4txjwopuvdwry3oz/h?rlkey=ipef1q3exolt3v9olczt3d545&dl=0 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

    undefined undefined 2 Replies Last reply 15 Nov 2023, 19:08 Reply Quote 0
    • undefined
      curieos @dc42
      last edited by 15 Nov 2023, 19:08

      @dc42 That build fixes the issue I was having too. I think we can leave it on the test machine for now, I'll let you know if anything comes up.

      She/Her
      I work at a local 3D printing shop.
      Printers: Micron+ w/Duet 3 Mini, in-progress adaptation of the Jubilee REL onto an E3D MS, Prusa i3 MK3S.

      1 Reply Last reply Reply Quote 0
      • undefined
        oozeBot @dc42
        last edited by 11 Jan 2024, 20:20

        @dc42 - has there been any further consideration of releasing 3.4.7 of RRF? Or could you provide me the 3.4.7 deb file for our package server? The issue is that during the apt-update process, it tries to downgrade from 3.4.6+ to 3.4.6.. Thanks

        undefined 1 Reply Last reply 18 Jan 2024, 22:37 Reply Quote 0
        • undefined
          oozeBot @oozeBot
          last edited by oozeBot 18 Jan 2024, 22:37

          @dc42 - bumping this.

          ** edit ** I was able to rebuild the deb file and resign it with the updated 3.4.6+ firmware. Still would like to know if there will be a 3.4.7 prior to 3.5's release though.

          Thanks

          @oozeBot said in Array index out of bounds error on object model node:

          @dc42 - has there been any further consideration of releasing 3.4.7 of RRF? Or could you provide me the 3.4.7 deb file for our package server? The issue is that during the apt-update process, it tries to downgrade from 3.4.6+ to 3.4.6.. Thanks

          undefined 1 Reply Last reply 19 Jan 2024, 08:30 Reply Quote 0
          • undefined
            dc42 administrators @oozeBot
            last edited by dc42 19 Jan 2024, 08:30

            @oozeBot as we how to release 3.5.0 RSN it's likely that we will release 3.4.7 just before or just after 3.5.0, when we're happy that there are no bugs in 3.5 that we fixed that also affect 3.4 and that we want to back-port.

            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

            undefined 1 Reply Last reply 23 Aug 2024, 13:32 Reply Quote 1
            • undefined
              Tinchus @dc42
              last edited by 23 Aug 2024, 13:32

              @dc42 seems the bug is back?

              Im having this error:

              8/23/2024, 10:31:22 AM Error: in file daemon.g line 4: line 0: array index out of bounds

              This the daemon.g fiile:

              while true
              if state.status != "processing"
              if (heat.heaters[0].current > 60) | (heat.heaters[1].current > 65) | (heat.heaters[2].current > 65) | (heat.heaters[0].avgPwm > 0.01)
              M42 P3 S1
              M42 P3 S1
              else
              M42 P3 S0
              G4 S2

              Im running duet3, SBC, and version 3.5.2 firmware

              undefined 1 Reply Last reply 23 Aug 2024, 13:47 Reply Quote 0
              • undefined
                dc42 administrators @Tinchus
                last edited by 23 Aug 2024, 13:47

                @Tinchus that's not the same issue, it's not an array of arrays that is being indexed. Please check using the object model browser that you really do have heaters 0, 1 and 2 configured.

                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

                undefined 1 Reply Last reply 23 Aug 2024, 13:58 Reply Quote 0
                • undefined
                  Tinchus @dc42
                  last edited by 23 Aug 2024, 13:58

                  @dc42 Yes I have them. This is not a new installation. I re flasehd the image with a new sd card (the other was too old and giving problems)

                  This daemon file was the old one, no change at all.
                  heater 0 is my chamber, heter 1 is T0 heater 2 is T1

                  undefined 1 Reply Last reply 23 Aug 2024, 21:58 Reply Quote 0
                  • undefined
                    OwenD @Tinchus
                    last edited by OwenD 23 Aug 2024, 21:58

                    @Tinchus
                    My guess is daemon.g is starting to run before the heaters are defined in config.g
                    Try something like this

                    if state.status != "processing"
                       if #heat.heaters = 3 ; edit to suit number of heaters you have in total
                          if (heat.heaters[0].current > 60) | (heat.heaters[1].current > 65) | (heat.heaters[2].current > 65) |  (heat.heaters[0].avgPwm > 0.01)
                             M42 P3 S1
                             M42 P3 S1
                          else
                             M42 P3 S0
                             G4 S2
                       else
                          echo "Only " ^ #heat.heaters ^ " heaters initialized yet"
                    
                    undefined 1 Reply Last reply 23 Aug 2024, 22:43 Reply Quote 0
                    • undefined
                      Tinchus @OwenD
                      last edited by 23 Aug 2024, 22:43

                      @OwenD Im sure you are right about the reason, but solution is not working because the status whuile the error is being reported is "idle". As I have posted on another topic, what I see is that seems like config.g is not being fully processed?
                      When error happens, in DWC the re is no tool configured, heaters, nothing... and status is "idle".
                      If I click on config.g, and save it and confirm the restart, everything goes normal again.
                      My guess real problem is the raspi image version Im using. 32 bit full version doesnt work, image is not bootong. 32 bit lite works, but not usefull for me because I have a touch screen connected.
                      So Im using the 64 bits full version.
                      I have a raspi 3 B+
                      What do you think?

                      undefined 1 Reply Last reply 23 Aug 2024, 22:48 Reply Quote 0
                      • undefined
                        OwenD @Tinchus
                        last edited by 23 Aug 2024, 22:48

                        @Tinchus
                        The code I wrote will work when the status is idle, however I had a typo (now fixed).
                        I had #heat.heater instead of #heat.heaters
                        I don't run SBC, so I have no idea on that.

                        undefined 1 Reply Last reply 23 Aug 2024, 22:56 Reply Quote 0
                        • undefined
                          Tinchus @OwenD
                          last edited by 23 Aug 2024, 22:56

                          @OwenD Yes! I didnt noticed the typo either. Ok, will add this and try it further but question remains regarding why is this happening, it started after falshing the new raspi image and version 3.5.2. Can you confirm there should not be a problem using the 64 bit version on my raspi? because there are other problem like for example DWC not starting on my touch screen, there is just a linux desktop instead (DWC working through web interface conncection)

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