Lorenz
January 23, 2023, 2:24pm
1
Hello,
Since a couple of days the newly installed processing 4 crashes on start-up and shows the following error:
“There is a Problem with the “permission” for the sketchbook folder”.
It is suggested to get rid of the problem entering the following code line in the terminal:
tccutil reset All org.processing.four
Unfortunately entering this line of code does solve the problem.
Has anybody a suggestion?
Tech stack:
Chip: Apple M1 Pro
macOs Ventura 13.1
Processing 4
josephh
January 23, 2023, 10:14pm
2
Hi @Lorenz ,
Welcome to the forum!
Can you provide the link to the fix you found? Is it an issue on GitHub? (I can’t find it on the Processing 4 issues )
Lorenz
January 24, 2023, 10:03am
3
Hi Joseph,
Thanks for your reply.
I can’t find it on GitHub either.
The fix is suggested in the pop-up window that appears after Processing crashed. Therefore I assume the fix is suggested by Processing.
When I enter the suggested line of code (tccutil reset All org.processing.four) into the Terminal, it returns the following:
Successfully reset All approval status for org.processing.four
But when I restart processing the problem persists.
Any suggestion?
josephh
January 24, 2023, 10:21am
4
Ok, I found the original issue:
opened 09:30AM - 24 Oct 22 UTC
closed 10:49PM - 24 Nov 22 UTC
Hi!
I have an issue with Processing
**Description**
I have installed Proces… sing 4.0.1. When I close the program and restart again, it shows me this error message:
![error](https://user-images.githubusercontent.com/46849400/197497193-e0103693-ef5a-43d4-98d0-3120a825803a.png)
I have changed permission for /Documents/Processing/modes folder, allowing to everybody to write and read, but it doesn't work.
After trying different things, I have found a way to make it work:
1. Uninstall Processing.
2. Delete /Documents/Processing folder.
3. Install Processing.
4. Run Processing - it says to me that there is no /Documents/Processing folder, so it's going to create it.
5. While running Processing, I go and change permission allowing to everybody write and read to /Documents/Processing folder. I do the same with every folder that is contained in it.
6. Now, I can close Processing and restarting with no problem.
I have opened this issue as @SableRaf told me. I think that it's a good idea because, if you fix it, some users will not have this problem.
**My Environment**
* Processing version: 4.0.1
* Operating System and OS version: macOS Big Sur
**Possible Solution**
Can't you modify /Processing folder permission when Processing creates them?
Thanks.
From the source code:
/**
* Updates all the flagged Mode and Tool folders.
*/
static private void updateFlagged(Base base, File root) throws Exception {
// https://github.com/processing/processing/issues/6034
if (!root.exists()) return; // folder doesn't exist, nothing to update
if (!root.canRead() || !root.canWrite()) {
// Sometimes macOS users disallow access to the Documents folder,
// then wonder why there's a problem accessing the Documents folder.
// https://github.com/processing/processing4/issues/581
// TODO would like this to be in a more central location, but this is
// where it's triggered most consistently, so it's here for now.
if (Platform.isMacOS()) {
// we're on the EDT here, so it's safe to show the error
Messages.showError("Cannot access sketchbook",
"""
There is a problem with the “permissions” for the sketchbook folder.
Processing needs access to the Documents folder to save your work.
Try the fix SmantikVJ found at the end of the issue and let me know if it works. Or reinstall Processing and allow access to the sketchbook folder. (if it doesn’t work, try to run thetccutil
as root with sudo
?)
Lorenz
January 24, 2023, 2:09pm
5
Thanks!
I reinstalled processing and gave it the permissions as suggested. For now it is running (fingers crossed).
Hopfully the problem will not reoccur.
1 Like