HISE Logo Forum
    • Categories
    • Register
    • Login

    LAF Function Continuously Spamming the Console Log, but No Other Methods Get Executed

    Scheduled Pinned Locked Moved General Questions
    5 Posts 2 Posters 128 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.
    • A
      aaronventure
      last edited by aaronventure

      If you put the print method into a LAF function of a rotary slider, it will keep getting executed on some hidden timer while the component is visible (if you move the screen away in HISE, it will stop).

      But no other methods actually get executed, so if you're printing the current note number, you still need to send the repaint message.

      Has this always been the case? I don't remember. I think I used to regularly use the print method to debug LAF functions, but this makes it very annoying.

      It doesn't happen with a panel

      The snippet:

      HiseSnippet 1047.3ocsV0kaaaDDdornQjZRPSPN.D5IZTAEo5zzhFTjXKKEHDKGBK6f9VvZxkRa0xcI3tL1JA4sdd5Unmi9XuA8FzNC+wj1xvNQ.UOXyc986a1YFRuDkOSqUIDqVmrJlQrtu8rURyhgKnbIYxADqGZOkpMrDmbQ6uJlp0r.hk0VuFEX0pII62+7x8oBpzmUIhPdmh6yNjGwMUR8d0a3BwXZ.6DdTMqe1ql3qjCUBUJfmsr6Sho9KoyYGQQyZXSr1dT.2nRlYnFlFrYeUvpYKTmKys+cbM+LACOLfLCBTtXxvEbQfWIW0DhUSuJluUNyeh8Td.+R4UUfuMSgSkG0qAVMtMHM3q.RV0fTybH8H6Y9I7XSkFDOei8DIbgDRgRccnjaKowe0vdnBrPZ5EQWxFm.GtzC2m2ueWG3O67h1sgxs13.3137KNk9PCBdiTclaGTdmtNf40LVPCqYqeBCn8gJep3PkZ4dxfwLlvELOgM2Qp.iRi.66+h1fi8.gbrWZbpz2vUR2NAIzyOVYnIqlI3ArDHegkJm20Qc1usS6O0t07dZlIuyvM+e5dmufaXPl.kXT1SvmKYAmvtv3Vj3L+6QAL10oiOf2DVPGzi1s.BnUBVu3Dtz314v8F+yNcb9NmQx4bIq2bl4zXCzc5tCX+mQ5iUCDEqQVfXUkmXpjItZwzCEAUyXo.X2tX4e2rxelsXH8fNMywpTCjZ2J5mw7qAzrfc6PsL.NJ4QPc3sR2r.UcYLEZkfoJzSzfiRiNik3lWWd5SK3oL3XVLhqBqQ8etsy0CdXXdzulNj9IJg.i6MnFm6StMGckYfpqyGnhT1kFBCFWcZa6uroM+7aiZFpjSjbyaiYEmGqDA3TD975yljhqSbJs.gfolrYzGVLil2+R3PP11FKhjLrWeYH4zIGPMzxn.ADRRLKwvQtXc.6Cvxx7I+V1GvzKMpXXu2PUTrRho2592UNufXYagoZU4CZyJrfrsMNTSh3AABlmRywBdsk2+ILWFOi+wL.+om7Gu9u+3u+xn562IjH5E0W2qSCC4WjsXNjKhzF.RShfdEh0isOUybBXgzTgwQuDhifKWBimpL6I03TybN8fxccXGdIkfYlbJ00pfR3Cj02TB6nUAoBp4pKtw2PUn.oa8sk3FQITFVUmReEay6eqay+Rg3ir83F+E2LFabCXDZd9+.iEuC7A1iBCY9lJ.1zd7utouv6NRe9Fu4SoPiCdICKhlAa18YP1kPSfFuuafSe4m6W1ROC1Nkc3egeEJGfmsJTNnTIzx5mndue9LK9V16kIAvjL6iJZAecCb1Yv5SqvnB+899WMTq432uoNt6l53y1TG+gM0wmuoN9iapi+zc6H9MY6kZTQ4iMDxTuQYaWsrFIoPGXV2J4+vTZJA2
      

      Here's the perfetto trace where you can see the timer calls. I imagine that's the HISE interface timer?
      3f4c5ec0-77e5-4473-857a-0b73c609d641-image.png

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

        @aaronventure I loaded your snippet, I'm not seeing it constantly print to the Console. For me it prints on init and then again when interacting with the knob, and it shows the last note played.

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

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

          @d-healey

          macOS 14.5
          cd51dc7 20.08.2024. at 20:09 - multipage: added warning message when selecting existing directory

          consolespam.gif

          The panel doesn't spam, just the laf.

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

            @aaronventure Might be OS specific.

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

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

              @d-healey I guess I'll add it to the Github list.

              Fun fact: I have reached 100 reports in a year!

              d9f1b3f2-f964-4fc7-a480-1072f8d5c9b4-image.png

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

              13

              Online

              1.7k

              Users

              11.9k

              Topics

              103.5k

              Posts