greatest-ape / OctaSine

Frequency modulation synthesizer plugin (VST2, CLAP). Runs on macOS, Windows and Linux.
https://www.octasine.com/
GNU Affero General Public License v3.0
615 stars 16 forks source link

CouldNotReadMetadataException during Bitwig Studio plugin scan #178

Open josb opened 1 year ago

josb commented 1 year ago

Describe the bug Trying to scan the OctaSine CLAP plugin, Bitwig Studio 4.4.10 on Apple Silicon M2 produces the following error:

com.bitwig.flt.library.metadata.reader.exception.CouldNotReadMetadataException: could not read metadata: Could not load executable: The bundle couldn’t be loaded.

What did you try to do

Expected behavior No error during plugin scan.

Screenshots

Log file contents N/A, don't get that far.

Software (please complete the following information):

Additional context

greatest-ape commented 1 year ago

Thanks.

greatest-ape commented 1 year ago

Did you do the permissions shenanigans written on https://www.octasine.com/?

josb commented 1 year ago

I ran the xattr command from Terminal to delete the quarantine flag, per https://github.com/greatest-ape/OctaSine/issues/162 (I found a reference to this somewhere else but can't offhand find it now). What else needs to be done? I checked that the files are readable by everyone. Please let me know what else I can check. Thanks for your help!

greatest-ape commented 1 year ago

Ok! Did/does version 0.8.6 work?

josb commented 1 year ago

Let me try and get back to you.

josb commented 1 year ago

Same error with with OctaSine-v0.8.6-macOS.zip.

/Library/Audio/Plug-Ins/CLAP% sudo xattr -dr com.apple.quarantine /Library/Audio/Plug-Ins/**/OctaSine*
# Load Bitwig Studio, observe same OctaSine plugin scan error in Settings -> Plug-ins
/Library/Audio/Plug-Ins/CLAP% find . -ls
4033960        0 drwxr-xr-x    3 root             wheel                  96 Jun  4 16:58 .
4191227        0 drwxr-xr-x    3 root             wheel                  96 Apr 12 09:39 ./OctaSine v0.8.clap
4191228        0 drwxr-xr-x    6 root             wheel                 192 Apr 12 09:39 ./OctaSine v0.8.clap/Contents
4191229        0 drwxr-xr-x    3 root             wheel                  96 Apr 12 09:39 ./OctaSine v0.8.clap/Contents/_CodeSignature
4191230        8 -rw-r--r--    1 root             wheel                2200 Apr 12 09:39 ./OctaSine v0.8.clap/Contents/_CodeSignature/CodeResources
4191231        0 drwxr-xr-x    3 root             wheel                  96 Apr 12 09:39 ./OctaSine v0.8.clap/Contents/MacOS
4191232    18096 -rwxr-xr-x    1 root             wheel             9263840 Apr 12 09:39 ./OctaSine v0.8.clap/Contents/MacOS/octasine
4191234        8 -rw-r--r--    1 root             wheel                 857 Apr 12 09:39 ./OctaSine v0.8.clap/Contents/Info.plist
4191235        8 -rw-r--r--    1 root             wheel                   8 Apr 12 09:39 ./OctaSine v0.8.clap/Contents/PkgInfo
/Library/Audio/Plug-Ins/CLAP%

Anything else you'd like me to try?

greatest-ape commented 1 year ago

Thanks. Strange. Does the VST work?

josb commented 1 year ago

I just tried the OctaSine-0.8.7 VST2 and it comes up fine. So it appears to be a CLAP plugin issue. Let me know how I can help debug this - least I can do since I asked for CLAP support. :-)

greatest-ape commented 1 year ago

Ok, great, then at least M2 works in general!

Does the first release with clap work? (0.8.3)

I should also mention that I didn’t get the gui to work properly with clap in Bitwig yet (resources were not freed when closing the window, leading to very high cpu use, so I tried to trick Bitwig into not recognizing the GUI at all ).

josb commented 1 year ago

Same error with 0.8.3.

greatest-ape commented 1 year ago

Alright, thanks.

josb commented 11 months ago

Progress! I just installed Bitwig Studio 5.0.4; now the OctaSine CLAP plugin scans without errors and I can add it to a track, but the GUI doesn't show up, which I take it is https://github.com/greatest-ape/OctaSine/issues/145.

greatest-ape commented 11 months ago

Great, thanks for trying it out!

Should this issue be closed, then?

josb commented 11 months ago

I think so.

josb commented 11 months ago

With OctaSine v0.9 the scan error is back.

josb commented 9 months ago

I just built the iced-0.10 branch of OctaSine and iced_baseview with rustc 1.72.1. BWS 5.0.9 does not show the plugin scan error but the plugin GUI doesn't appear.

josb commented 4 months ago

I upgraded iced_baseview to master (https://github.com/BillyDM/iced_baseview/commit/4feacc03bc1135023f73167093aea953a858a7c2), upgraded the window-handle-hack crate in iced_baseview and OctaSine to 0.5.2, removed the rwh0{4,5} crates and made OctaSine's iced-0.10 branch build with those changes. Branch is here: https://github.com/josb/OctaSine/tree/bugfix/fix-absent-clap-plugin-window

Again no plugin scan issues in Bitwig Studio 5.1.3, but no plugin window either, and the Show device window button is missing on the device.

josb commented 4 months ago

Going to close this bug; if I see the scan error again I'll reopen it.

greatest-ape commented 4 months ago

Thanks for looking into this.

If you have time, could you please try this build out and see if it works?

OctaSine-tmp-2024-03-16-macOS.zip

josb commented 4 months ago

Same error again in Bitwig Studio 5.1.6, Sonoma 14.4.

greatest-ape commented 4 months ago

Ok, thanks.On 16 Mar 2024, at 18:16, Jos Backus @.***> wrote: Same error again in Bitwig Studio 5.1.6.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>