Hise crashes when compiling Script FX as DLL.
-
Hey all, I finished a plug-in on windows and I'm currently working on the Mac version. I've run into an issue where running the "compile DSP networks as DLL" is causing Hise to crash every time. I'm running Sonoma Version 14.6.1. even a blank script fx causes it to crash every time. Im running hise 4.1.
The error report I get is
Crashed Thread: 0 JUCE Message Thread Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x000000010bdaf000
Exception Codes: 0x0000000000000002, 0x000000010bdaf000Termination Reason: Namespace SIGNAL, Code 10 Bus error: 10
Terminating Process: exc handler [609]I've double checked all of the security and permissions, drive access, etc.
Does anyone have a clue how to solve this? -
-
Mac dont compile DLL
-
@WepaAudio yes but I read it should still compile the dsp to a .dylib unless I’m doing it wrong
-
If you don't mind sharing a snippet I can take a look at it in the morning.
(send me a dm if it's classified material ) -
@Matt_SF here's an example
HiseSnippet 999.3ocuV80aaaCDmxIzo1scXEne.7it.AA1ascCXOrFaGuYzYGgprr9VACEcMgoHEHoRh6vdeer5Go9MX8nnrkzhQRi2ejALzw6Nd+3c+tiJTqnLiQoQAsNaUJCE7HbzJocwvEDtDMYDJ3qvSIFKS2wuzfUoDigEiBB16mbKDzZeT9ym9wADAQRYkKgPmq3T1uvS31xUCe0q4BwXRL6LdREqe9qlPUxgJgJCvyd3dnTBcI48rYDmYMvnflmDysJcjkXYFvlAp3UQKTWI81eN2vuPvbB8QQvF4WFMbAWDGt9rZPnf8CKO464O4OEOkGy2rdYF3qyUzozip4ffF2Fj5eOfTPEHsuGROAGQ07TaoFGddHdhDJHyIPptJT71hB9HdnBLPZOJgrjMVCBabn6K606vNveO6GlmIoVtR1QImorrSkceV6eucq1+Q6N+cUymuUctvnUBASuU0tpq91brqLK4Bl9vNWRDYrMFBG+54zleY4Tp+TWwPkbhjaOMkUHOVIhc4J262rBfJRava+5jQDKwUTJVCrKkosbGbBFwtDX09RTK7HlYoUkB75aT+.liJNSPr0oSt9lBEP9nVMzUnjFtcU09p6AGq2sxw9Rg3SvgbKcw1wXisfQHS8eAFK5LeL9j4yYTaI.2GO9s6ZaXu6caX6h1PHltf+nBwNiea+s1.9m3RxdplkRzryTgBxptFRRpf8F.iG14BghtLh+A1M6PR8PXfyhtzEDojIL6RiTy+kFNgdiJyxkueJwp4WiBvyxRhfwzT1vBzAqEzv0C4k64jc7hHlLNW3ufmBk8cxAEJ6uVYk1uYL6UJ8x7xQw6nfCb49GiGYRKVpO5XgPc0PURJufl5OULsIW3.buifedyBUhUoKTRN0Up7NsF8Gmnxf.WbD9Yh4LBW3n5QYFX3Q7oxHv37q1bTsYpX3sliITH2tJjXW3ZYbie.9ISeDcCOsNbK4J4rPnNDRzvcavrYiG5tcd8Ef97G.zDWRI+5u8b58YkbHfcw3AXM6Rl9BTM77P77qOpPQ83dGwnQELANrQB5Flxkm6HXfetLKZJ45Mx8AYGZf4g.GGnJnJl9Bnq9dtOGf+MdLbP9msKMwtFLzwYVUBzBrdzeko4U1Se2ekHTYGtqfUSY9sFRVdSpAUSD4YOShqT21DR2pEwqFDymI4jfItM7SflXN2okRDqCMPcGnTKSH48M61MX+ezkmPnZ06n9AWtC2CxWApLx7OyqE78lfbm9nK8Grx6XRfOC6cTZ8s5FN9M6pie6t53y2UGewt53K2UG+tc0wu+tcz8UxEcZNlNBMM7jbRXPvIRBbOS9kjnOSdk3lv
but it crashes no matter what is in the script fx even if its blank.
-
@DW given it crashes on any attempt to compile a network, I suggest there's either something wrong with your version of HISE or your project. The snippet compiles fine on my side. If it crashes for you on a new project and not just your finished plugin, then it's most probably the mac HISE version you are using.
I had a hard time setting up compilation when I started using HISE, but eventually it worked. Make sure you build yourself versions of HISE from the exact same repository for PC and MAC so they match perfectly.
I remember Christoph making some changes for the latest mac versions a couple of weeks ago, if you're on Sonoma or Sequoia that might even be it. Make sure you're on the latest version of HISE from the develop branch on Github
Also (and this is an untested but often agreed upon theory) changing parameter or node names at a later stage of development can sometimes lead to problems. Also avoid spaces in scriptnode or parameter names at all costs especially when you are using faust. It messes up the XML
-
@Morphoice yeah I think so too, although I think Ive tried everything.. creating new projects, rebuilding hise 4.0 / 4.1. And none seem to fix the issue, but everything else compiles and works fine.
-
does it happen right from the start or only after you succesfully compiled on PC and then try it on MAC?
@DW sometimes also the "Clean Build Directory" option helps, although I never really figured out what it does. Make sure you save your already compiled PC vst3 to a seperate folder before ;)
-
@Morphoice thank you good sir I will give this a go
-
@Morphoice also it seems to happen from the start even with a clean build
-
@DW It compiles just fine here on Mac & PC (I don't even have the same build on both!).
So my guess, as Morphoice said, is that the issue comes from your build.(In David's voice) How many copies/versions of the source code do you have on your system?
And which branch are you using ? (Release / develop)
-
@Matt_SF happens on the newest version 4.1, completely uninstalled and tried version 4.0 and it crashes with that as well.
-
@DW said in Hise crashes when compiling Script FX as DLL.:
completely uninstalled
Have you compiled HISE?
-
@d-healey yes, I was sure this would solve but it still crashes
-
@DW As Matt asked, How many copies of the HISE source code are on your system?
-
@d-healey there is only one copy of the source code
-
@DW And that matches the source code from which you built the one and only version of the HISE executable you have?
-
@d-healey what’s also strange is I tried to compile a DLL of a minimal test on my friends Mac and it happened to him as well. I’m thinking it may be a permissions or a issue running a script somewhere maybe. but I checked the permissions in all the obvious places
-
@d-healey yes that is correct
-
@DW Where on your system is the HISE source code folder?