Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CouldNotReadMetadataException during Bitwig Studio plugin scan #178

Open
josb opened this issue Jun 3, 2023 · 21 comments
Open

CouldNotReadMetadataException during Bitwig Studio plugin scan #178

josb opened this issue Jun 3, 2023 · 21 comments
Labels
bug Something isn't working

Comments

@josb
Copy link

josb commented Jun 3, 2023

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):

  • Bitwig Studio: 4.4.10.
  • OS: macOS Ventura 13.4
  • OctaSine: 0.8.7

Additional context

@greatest-ape greatest-ape added the bug Something isn't working label Jun 3, 2023
@greatest-ape
Copy link
Owner

Thanks.

@greatest-ape
Copy link
Owner

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

@josb
Copy link
Author

josb commented Jun 3, 2023

I ran the xattr command from Terminal to delete the quarantine flag, per #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
Copy link
Owner

Ok! Did/does version 0.8.6 work?

@josb
Copy link
Author

josb commented Jun 4, 2023

Let me try and get back to you.

@josb
Copy link
Author

josb commented Jun 5, 2023

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
Copy link
Owner

Thanks. Strange. Does the VST work?

@josb
Copy link
Author

josb commented Jun 5, 2023

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
Copy link
Owner

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
Copy link
Author

josb commented Jun 7, 2023

Same error with 0.8.3.

@greatest-ape
Copy link
Owner

Alright, thanks.

@josb
Copy link
Author

josb commented Jul 30, 2023

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 #145.

@greatest-ape
Copy link
Owner

Great, thanks for trying it out!

Should this issue be closed, then?

@josb
Copy link
Author

josb commented Aug 1, 2023

I think so.

@josb josb closed this as completed Aug 1, 2023
@josb josb reopened this Aug 6, 2023
@josb
Copy link
Author

josb commented Aug 6, 2023

With OctaSine v0.9 the scan error is back.

@josb
Copy link
Author

josb commented Sep 30, 2023

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
Copy link
Author

josb commented Mar 10, 2024

I upgraded iced_baseview to master (BillyDM/iced_baseview@4feacc0), 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
Copy link
Author

josb commented Mar 11, 2024

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

@josb josb closed this as completed Mar 11, 2024
@greatest-ape
Copy link
Owner

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

@greatest-ape greatest-ape reopened this Mar 16, 2024
@josb
Copy link
Author

josb commented Mar 16, 2024

Same error again in Bitwig Studio 5.1.6, Sonoma 14.4.

@greatest-ape
Copy link
Owner

greatest-ape commented Mar 17, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants