HISE Logo Forum
    • Categories
    • Register
    • Login

    [bug] Illegal operation, array resizing, but I'm not...

    Scheduled Pinned Locked Moved Bug Reports
    12 Posts 3 Posters 433 Views
    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.
    • d.healeyD
      d.healey
      last edited by d.healey

      I have a simple script that puts notes in an array as they are played and removes them as they are released.

      The array is declared in on init and reserved with 4 elements.

      So I hit compile, I play 4 notes, they are added to the array, I release the keys and they are removed from the array, everything is happy. Then I play 4 notes again and I get the illegal operation error, but 3 notes doesn't cause an issue... any ideas?

      HiseSnippet 729.3ocsUstaSCCE1tqYhDtHlDO.g+L0JMU0BkAREDi0KnJnaUzwDRHzjmiaqUcribbFTg3ofWTdCfiSxVZWm1kJQ9QTN2+7wemSFpUTVbrRivtGMOhgvOvYzboYZ6oDtD0uCB+HmAjXCS6moZ+4Qj3XV.Bi238VEX2xnzm+718IBhjxJTgPGq3T1G4gbSg1g68AtPziDvNhGtf2M2qOUIaqDpD.Oa3TGEQnyHSXGPrtUxAg2ra.2nziLDCKF7YeUv7QSUeWl4+w7X9oBlUnAZDjnL0n1S4hfgmeViQHb4gEm7MxN4OwY.Ofeg9hNviSM3WDwh8.boqCRMtCPBu.jJmAosbFQ07HSgEKdtuSeIbgLl.s5EgRlunR+F6zVAdHM0BIyX8zfvEQTY2502wGdUskmmlMwWp.b6+F+u9sVdoeWSyhY5yXUZVs03DI0vURek7.v1gxJU89omqPQIBeID0..VvMTsILi0gCRBOkoqXysKerekmlkQ3Z0.cy3Jxp9aucVIqIXxIlo9u1uYUOW2LcQIwSAmZ48KO+KW6wiu0E2Mq5qT7hBoYgJ3HtZorcNsRHrIxVsKY1xXuZK4AVQlhhc7OiHRXW3HbktLOYyaGOglcQtfiJYeI2bXDKWtmRDXu+seuJqBkyDfu9b+NDCwRzx0A9EwzFtEN3NryfI0LZmqSGV7LiJBlUWgSBSCpfDAwr7HhcWPtAnerDuzx8jwby7E2UbGlapesyM2VHtkyPtgN8pwXoq.iPm5+AFy217PmtiGynlB.V1o2WV2UK2P4+jJwvkSFPLZ9OPXGXRYDrjkxfpKkLAjbGbIKaISttU11AFwjAoB+EdxM1vJiyM13binPBUqNglMEX2mcuTM.ljoqucg+i.x9MPoSFK1mCg0qmPoKmpUB7YqafOecCr45F3KV2.2ccC7kqafu5lCz92u2kXTgYiMHzfgcSWkfwckDfAlxVQ+iHeI0j
      

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @d.healey
        last edited by

        @d-healey said in Illegal operation, array resizing, but I'm not...:

        HiseSnippet 729.3ocsUstaSCCE1tqYhDtHlDO.g+L0JMU0BkAREDi0KnJnaUzwDRHzjmiaqUcribbFTg3ofWTdCfiSxVZWm1kJQ9QTN2+7wemSFpUTVbrRivtGMOhgvOvYzboYZ6oDtD0uCB+HmAjXCS6moZ+4Qj3XV.Bi238VEX2xnzm+718IBhjxJTgPGq3T1G4gbSg1g68AtPziDvNhGtf2M2qOUIaqDpD.Oa3TGEQnyHSXGPrtUxAg2ra.2nziLDCKF7YeUv7QSUeWl4+w7X9oBlUnAZDjnL0n1S4hfgmeViQHb4gEm7MxN4OwY.Ofeg9hNviSM3WDwh8.boqCRMtCPBu.jJmAosbFQ07HSgEKdtuSeIbgLl.s5EgRlunR+F6zVAdHM0BIyX8zfvEQTY2502wGdUskmmlMwWp.b6+F+u9sVdoeWSyhY5yXUZVs03DI0vURek7.v1gxJU89omqPQIBeID0..VvMTsILi0gCRBOkoqXysKerekmlkQ3Z0.cy3Jxp9aucVIqIXxIlo9u1uYUOW2LcQIwSAmZ48KO+KW6wiu0E2Mq5qT7hBoYgJ3HtZorcNsRHrIxVsKY1xXuZK4AVQlhhc7OiHRXW3HbktLOYyaGOglcQtfiJYeI2bXDKWtmRDXu+seuJqBkyDfu9b+N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HmsRVYB2Lc90MWdbqx02CpuxaCVUb2vY.2PmrbdKsDdgt1+adms75dNcFMhQMEvVwo6mtwMU+aP4CpTCWNtOwn4eCzjvP1PXWNkAjHkLgUmhKYUT410s11NyPlLLy32v0rfMr13YAabdPTDgpUGSymNrqJuclGfIY1WIbgOWA19MPYSLPcN0qUGEAasOlRsshGCru7ZdxZTySWiZ1dMp4YqQM6rF0770nlWbi0X+f4aRMpn7wDvwfNYqQv3NRBnxxTjn+.ThsUeC
        

        HISE Development for hire.
        www.channelrobot.com

        d.healeyD 1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey @Lindon
          last edited by d.healey

          @Lindon Just to confirm, you hold down 1 or more notes and no error. Then you hold down 4 notes and no error? Do you have the audio thread guard enabled?

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          A LindonL 2 Replies Last reply Reply Quote 0
          • A
            aaronventure @d.healey
            last edited by aaronventure

            @d-healey Can confirm. Whatever reservation I make, always after the remove method knocks it down below 4, another push call triggers the ATG.

            using notes.insert(notes.length, n); instead of push in your on note callback bypasses the issue, but the bug still remains

            d.healeyD 1 Reply Last reply Reply Quote 1
            • d.healeyD
              d.healey @aaronventure
              last edited by

              @aaronventure Ah thanks for the workaround, and confirming the issue

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

              1 Reply Last reply Reply Quote 1
              • LindonL
                Lindon @d.healey
                last edited by

                @d-healey said in [bug] Illegal operation, array resizing, but I'm not...:

                @Lindon Do you have the audio thread guard enabled?
                I probably dont - given I have no idea how to do that...

                HISE Development for hire.
                www.channelrobot.com

                d.healeyD 1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey @Lindon
                  last edited by

                  @Lindon HISE Preferences checkbox

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  LindonL 1 Reply Last reply Reply Quote 0
                  • LindonL
                    Lindon @d.healey
                    last edited by

                    @d-healey said in [bug] Illegal operation, array resizing, but I'm not...:

                    @Lindon HISE Preferences checkbox

                    Hmm, well it seems I have that turned on.....so that aint it.

                    HISE Development for hire.
                    www.channelrobot.com

                    d.healeyD 1 Reply Last reply Reply Quote 0
                    • d.healeyD
                      d.healey @Lindon
                      last edited by

                      @Lindon Are you using the latest develop branch?

                      Libre Wave - Freedom respecting instruments and effects
                      My Patreon - HISE tutorials
                      YouTube Channel - Public HISE tutorials

                      LindonL A 2 Replies Last reply Reply Quote 0
                      • LindonL
                        Lindon @d.healey
                        last edited by

                        @d-healey said in [bug] Illegal operation, array resizing, but I'm not...:

                        @Lindon Are you using the latest develop branch?

                        Im sure I'm not - Im in the middle of a big build....so no updates for me...

                        HISE Development for hire.
                        www.channelrobot.com

                        1 Reply Last reply Reply Quote 0
                        • A
                          aaronventure @d.healey
                          last edited by

                          @d-healey I think the ATG needs to be enabled in the Projucer, no?

                          d.healeyD 1 Reply Last reply Reply Quote 0
                          • d.healeyD
                            d.healey @aaronventure
                            last edited by

                            @aaronventure You might be right, but in that case it must be default because I haven't changed it on my system.

                            Libre Wave - Freedom respecting instruments and effects
                            My Patreon - HISE tutorials
                            YouTube Channel - Public HISE tutorials

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post

                            22

                            Online

                            1.8k

                            Users

                            12.0k

                            Topics

                            104.5k

                            Posts