HISE Logo Forum
    • Categories
    • Register
    • Login

    Engine.compressJSON( ) & Engine.uncompressJSON( ) causes crashes in the compiled plugin file

    Scheduled Pinned Locked Moved Bug Reports
    5 Posts 3 Posters 381 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.
    • diablo99D
      diablo99
      last edited by

      I was getting a plugin crash after adding a namespace for my personal HISEScript library, but I was not able to figure out what was causing the crash, so I spent several hours removing part of the code and compiling again just to realize that the problem was the Engine.compressJSON( ) & Engine.uncompressJSON( ) methods usage; After removing them and using JSON.stringify( ) & String.parseAsJSON( ) instead I got no crashes.

      The crashes happens only in the compiled plugin, not in the HISE Standalone app. Anyways, I don't need to compress the objects. I just reporting this possible bug. I currently using HISE 3.6.2 (latest release from Github), Visual Studio always thrown me an error during HISE (app) compilation, so I just gave up and using the lastest release instead (I hate VS, anyways, too heavy for my poor computer).

      I'm 100% sure about the bug 'cause I remove them (methods) and added again just to be sure. I have no idea about how to debug compiled plugins, as I read, I need to compile HISE by myself, but I can't (because Visual Studio throwing errors).

      Note: Is weird, because the methods are inside a function and the plugin crashes even when I don't call that function. Maybe that methods can't be used in a compiled plugin and I looking as a dumb, but I don't found anything in the docs.

      Plugin Test (Error) using the said methods.
      CaptureError.PNG

      Plugin Test (Successfully) after removing the Engine methods.
      Capture-Success.PNG

      A 1 Reply Last reply Reply Quote 0
      • A
        aaronventure @diablo99
        last edited by

        @diablo99 said in Engine.compressJSON( ) & Engine.uncompressJSON( ) causes crashes in the compiled plugin file:

        I currently using HISE 3.6.2 (latest release from Github)

        the master branch is 8 months behind, use the latest or one of the recent develop commits and try that.

        diablo99D 1 Reply Last reply Reply Quote 0
        • diablo99D
          diablo99 @aaronventure
          last edited by

          @aaronventure Like is said in the original post, Visual Studio always thrown me errors when trying compiling the HISE app to get latest additions. So, I just gave up, anyways I always try to look for solutions by myself instead of just waiting for a new release.

          I just post this to report the bug :)

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

            @diablo99 There was a bug that caused compilation with the latest VS2022 to fail, it was fixed the other day. Can you try again?

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

              @diablo99 said in Engine.compressJSON( ) & Engine.uncompressJSON( ) causes crashes in the compiled plugin file:

              So, I just gave up, anyways I always try to look for solutions by myself instead of just waiting for a new release.

              If you can compile your plugin you should be able to compile HISE.

              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

              34

              Online

              1.7k

              Users

              11.8k

              Topics

              103.1k

              Posts