HISE Logo Forum
    • Categories
    • Register
    • Login

    Unable to set label text from Message onNoteOn and onController- HISE plugin only

    Scheduled Pinned Locked Moved Bug Reports
    5 Posts 2 Posters 191 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.
    • gorangroovesG
      gorangrooves
      last edited by

      Setting label text with message received onNoteOn or onController works perfectly in the HISE standalone, but throws an error in HISE plugin:

      Illegal operation in audio thread: String creation
      

      Here is a HISE snippet that contains nothing more than a label for which the text gets set onNoteOn.

      HiseSnippet 750.3ocsU0taSCCE0tsFsVXBpDO.V8WchwTKrM.gPTV+.Uw5VEYLw+17bbWsVhcTh6XQHdW3Qj2.35jrlzQ2DphkeT06GGmiu2y8lwgZtHJRGhvUOJNPfvOh3DqLS6NkIUng8P35jdxn.OVLcjzURAu6EGvhhDtHLt7GsogqVAk77q2uGyio3hbWHzwZIWruzWZx8NtymjddCXthij9Exd6NC4ZUWsmdFPoxjVn.F+B14hCX1zJQP3Gz2UZzgNFlQDgvU1S6F6LU+MUZ9GKijm4IrFsQNvAk5df1y0xXqWT2oRO2wWe0iPvoLNuPTNsP7Th89N2edA4IIAn4HJVOvkVjdkWfdsKRuVEn2RnDt.kpjRo5DGdnLvjGwxmGRFpLhvILnrWjJo4hJ0FS5pgLTls7YWHFDBFyQzb2Vs1jB+rwaqAU9HC8RVHce1YBu1z2QuF34BSWsefVAFMajFtA.o1jYJtQpUTs5.sQbnp4F09dspoYrUj.x1HtxzXSZiQC6MDjOTYDsA8YzQvM.Zr1i1h7fY9mIBatAbn+nF8lG6jIom6MhYoWn1yyBbIgsZqv6BXSUxacS3R6MSLOQnfuXWjb6cwhhLdZ0pPhZ0PkzbXfPcaROTVIF92WF1iYX1VelOHu.QnQZo.tm3RXNJUHTkzSDcgQGjjaVeAnoII55Yxjjl.RBhg0HoMDzUyG05bZm34F+7zN1tDB+XRgtzNuAFT+KQHH+0ty7XlEmIrKBxB.k3EDhVwlJRZhKtn3+1fx+JEqSFKM7oKmikVBGgFw8AGyVurNo+jIBtImfUHC958ytDzm0yLR04iXlPIHAHvvlCrgkKf2tRI7rRbbIqXL0tk01VAbDJ2DieCOYAaaswYAaecPjOiGpOgmNXYWfsVhGfSpjc2UIir1z1njgM.Go0VsP9vtzS3b60+4v7wxw7hU.yKWALauBX1YEvr6Jf4Uq.lWemXreF6CyLZ+zwAvw39Iafv39JFnrRTgn+P6NBiX
      

      All of my plugins are now getting that error. However, when compiled, they display as they should.
      Tested with HISE Develop branch from Oct 13, 2022.

      Goran Rista
      https://gorangrooves.com

      Handy Drums and Handy Grooves
      https://library.gorangrooves.com

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @gorangrooves
        last edited by

        @gorangrooves its as David said - the clue is in the error message - dont use the audio thread

        start by trying to defer the callbacks and see if that helps...

        HiseSnippet 767.3ocsUstaRDDEdFfwTPazl3CvD9EMVIf1KlXLhkKFhkVhTa7esC6NTlzYmYyrC0RL9t3inuA5Y1cAVpzFCwt+fv4x2rey47cNaei1iGEoMHbwSmFxQ3mPFLUYG2bLSnPcagvaQZIhBkrozdBeAE7d3zPVTD2Ggw4+nKMbwBn3me89CYRlxiuvEBclV3wORDHrK71uwmDRYGlO+TQPlr2sQWOspoVpm.TJOoFJj4cE6R9wLWZ4HH7iZ6KrZy.KyxiP3BGp8mNXr9apj7OSDIFJ4Ni5nAvAk3tiV56XryKp4Xgzu+rqdDBNk9KJD4SJDOm3tuy8unf7r3.zEHxVOv4Vld4Whd0yRuZYn2JnDNCkJjPosHC7LhP6hHN97XRWkkaFwfxdVpjjKJ2QXRSMjgxVMfcEuiALlinx90psCE9Y62VJtwW0mOhaZxjxgPkOph0LgCwftRjkdMyPOhMjKqSeGc1gdI21TGDpUfQkxIgKCPFMQ4YEZEUqNVa4mnprcouWpXRBUi3PxV9M1x6PK2qaqtfxhJhnkouf1CtbPO2cxNjGOIXH2TYa3L+QI5sO1QiRN2aEywNiVJc.WQXmrybe.qnheq6.2YITAlkHzKVtASt6FbV8mWRwJShZUWkvdRHWcWpRTZEF92W51hYYNUQpOHuPtwJbT.2heMLhknQJRZwitxpCiyMss.zzFGcyTETbS.I.cxFjjFB5l4SgMtnwz4F+7hFttDB+TRltzdfj8u0mvjg1ehjYWdbwsiHM.ThWRi5zgpHgcZ1cH+2lg9Wo3Vj9Bq23UywbqfiPi3gfioad1jzdzHtmcAAKP570Gl0LnOqmXEpK6wrFAHAHvv1.X4qGGd6JEW5j33bNwXhcMmsqBLfq7iM9M7jFrtyFmFr9rfn.lmQetWxfka21Fwd.NohWqWjzyYSqihG1.bjZUqgBf0rm644t9uDlOVMlWsFXd8ZfY20.ydqAl8WCLGrFXdy8hw8EtOLwpCRFG.G8aGuABiaqXfxJVEh9CTil5nH
        

        HISE Development for hire.
        www.channelrobot.com

        gorangroovesG 1 Reply Last reply Reply Quote 0
        • gorangroovesG
          gorangrooves @Lindon
          last edited by

          @Lindon Yeah, but it is not a practical solution. It throws a wrench into other code, which normally works perfectly (code you wrote for me, btw).
          Let's just have the ability to set the label in the plugin in the same way as it works in the standalone. Way simpler than going 100 miles around.

          Goran Rista
          https://gorangrooves.com

          Handy Drums and Handy Grooves
          https://library.gorangrooves.com

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @gorangrooves
            last edited by Lindon

            @gorangrooves its as David says - you will have to reorganise your code....like the rest of us.

            HISE Development for hire.
            www.channelrobot.com

            gorangroovesG 1 Reply Last reply Reply Quote 0
            • gorangroovesG
              gorangrooves @Lindon
              last edited by

              @Lindon 😫😭 mamaaaa 😭😭😭😭

              Goran Rista
              https://gorangrooves.com

              Handy Drums and Handy Grooves
              https://library.gorangrooves.com

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

              21

              Online

              1.7k

              Users

              11.8k

              Topics

              102.5k

              Posts