Engine.compressJSON( ) & Engine.uncompressJSON( ) causes crashes in the compiled plugin file
-
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 usingJSON.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.
Plugin Test (Successfully) after removing the Engine methods.
-
@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.
-
@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 :)
-
@diablo99 There was a bug that caused compilation with the latest VS2022 to fail, it was fixed the other day. Can you try again?
-
@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.