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

deleting plugins always fails [macOs] #281

Open
verstaerkermusic opened this issue Dec 19, 2024 · 12 comments
Open

deleting plugins always fails [macOs] #281

verstaerkermusic opened this issue Dec 19, 2024 · 12 comments
Assignees
Labels
macOS Type: Bug Bug or Bug fixes

Comments

@verstaerkermusic
Copy link

i'm testing OwlPlug 1.27.1 on macOs 15.2 to sort my plugin collection . Unfortunately it's not possible to remove any plugin. All i'm getting is an "Error during plugin removal"
I gave OwlPlug full harddrive access.

Anything i could be oding wrong? Can i provide you more information?

@DropSnorz
Copy link
Owner

Hello @verstaerkermusic,

Thanks for reporting the issue. To help me understanding the root cause, can you extract error logs from your home directory:

/home/{you}/.owlplug/logs

Troubleshooting OwlPlug

@DropSnorz DropSnorz added Status: Need More Info Lacks enough info to make progress macOS labels Dec 23, 2024
@verstaerkermusic
Copy link
Author

here's one of the log files
owlplug.log

@verstaerkermusic
Copy link
Author

and here a log in debug mode
owlplug.log

@DropSnorz
Copy link
Owner

DropSnorz commented Dec 30, 2024

Hello, thanks for the logs !

It seems the apache-commons library used to delete the directory is trying to perform file permission switch before the delete operation.

41823 ERROR c.o.core.tasks.PluginRemoveTask - Plugin File can't be removed: /Library/Audio/Plug-ins/VST3/DC Snares.vst3
...
Caused by: java.io.IOException: Cannot delete file: /Library/Audio/Plug-ins/VST3/DC Snares.vst3/Contents
...
Caused by: java.nio.file.FileSystemException: /Library/Audio/Plug-ins/VST3/DC Snares.vst3/Contents/_CodeSignature/CodeResources: Operation not permitted
	at java.base/sun.nio.fs.UnixException.translateToIOException(Unknown Source)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source)
	at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setMode(Unknown Source)
	at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(Unknown Source)
	at java.base/java.nio.file.Files.setPosixFilePermissions(Unknown Source)
	at org.apache.commons.io.file.PathUtils.setReadOnly(PathUtils.java:933)

It looks like we are facing bug IO-751. The apache-commons lib tries to change file permission on POSIX system even if it's not necessary. After checking the code, the library ignores the readOnly flag set to false and tries to put the file in read-only mode which doesn't make sense for a delete operation.

This bug has been fixed so I'll change the dependency version. The next OwlPlug release should fix the issue 👍

@DropSnorz DropSnorz added Type: Bug Bug or Bug fixes and removed Status: Need More Info Lacks enough info to make progress labels Dec 30, 2024
@DropSnorz DropSnorz self-assigned this Dec 30, 2024
@verstaerkermusic
Copy link
Author

👍

@DropSnorz
Copy link
Owner

Hello @verstaerkermusic

I've published a fix in OwlPlug 1.28.0, can you still reproduce the issue ?

@verstaerkermusic
Copy link
Author

verstaerkermusic commented Jan 13, 2025

unfortunately i'm not able to run the app . It just says it's damaged and i should throw into bin. There are no options to open in any security settings .

@DropSnorz
Copy link
Owner

Unfortunately the app is not notarized by Apple (#31), so the damaged app message will be back after each update 😢

The workaround to bypass the error message change with each version of macOS and i don't have a mac to test.

@verstaerkermusic
Copy link
Author

strange - allowed to run all apps, removed quarantine attribute .. still no success. 1.2.7.1 starts without problems

@verstaerkermusic
Copy link
Author

1.28.1 runs properly. However deleting plugins is not working

debug log in debug mode

owlplug.log

@DropSnorz
Copy link
Owner

Does the following file has specific file permission ? OwlPlug can't delete it and throws an AccessDeniedException.

/Library/Audio/Plug-ins/VST3/DC Snares.vst3/Contents/_CodeSignature/CodeResources

@verstaerkermusic
Copy link
Author

nothing uncommon .. it requires a sudo command to delete in terminal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macOS Type: Bug Bug or Bug fixes
Projects
None yet
Development

No branches or pull requests

2 participants