On Startup: "That's new to me - A strange and unexplainable error occurred"

Hi all!
for some time i could perfectly work with processing 4.1 on my raspbi 3 B+, but two times now it happend that i cannot start the application anymore. I swear i did not do anything between a working processing and this error, it just stopped working:

That's new to me
A strange and unexplainable error occurred
while trying to create a new sketch.

java.io.IOException: Could not create directory /tmp/processing/02774c68-........6f8/sketch_230211a
at processing.app.Base.handleNew(Base.java:1115)
at processing...

My folder permissions for /tmp/processing is drwxr-xr-x. Is that somehow bad?

This might be related to my other post about missing libraries as i try to solve both?

thanks for any ideas!

some infos about my setup:
processing 4.1.2
Raspbian GNU/Linux 11 (bullseye)
Raspberry Pi 3 Model B Rev 1.2

If I open a sketch .pde file directly, processing opens it, as it does not have to create a folder in /tmp.
But if i rund it - even an emptied one! - it says:
“Build folder bad - Could not find a place to build a sketch.”

Cannot invoke "java.io.File.getAbsolutePath()" because "this.binFolder" is null

java.io.IOException: Permission denied
	at java.base/java.io.UnixFileSystem.createFileExclusively(Native Method)
	at java.base/java.io.File.createTempFile(File.java:2170)
	at processing.app.Util.createTempFolder(Util.java:229)
	at processing.app.Sketch.makeTempFolder(Sketch.java:1595)
	at processing.mode.java.JavaBuild.build(JavaBuild.java:92)
	at processing.mode.java.JavaMode.handleLaunch(JavaMode.java:108)
	at processing.mode.java.JavaEditor.lambda$handleLaunch$20(JavaEditor.java:608)
	at java.base/java.lang.Thread.run(Thread.java:833)
java.io.IOException: Permission denied
	at java.base/java.io.UnixFileSystem.createFileExclusively(Native Method)
	at java.base/java.io.File.createTempFile(File.java:2170)
	at processing.app.Util.createTempFolder(Util.java:229)
	at processing.app.Sketch.makeTempFolder(Sketch.java:1595)
	at processing.mode.java.JavaBuild.build(JavaBuild.java:92)
	at processing.mode.java.JavaMode.handleLaunch(JavaMode.java:108)
	at processing.mode.java.JavaEditor.lambda$handleLaunch$20(JavaEditor.java:608)
	at java.base/java.lang.Thread.run(Thread.java:833)
java.lang.NullPointerException: Cannot invoke "java.io.File.getAbsolutePath()" because "this.binFolder" is null
	at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:164)
	at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:145)
	at processing.mode.java.JavaBuild.build(JavaBuild.java:110)
	at processing.mode.java.JavaBuild.build(JavaBuild.java:92)
	at processing.mode.java.JavaMode.handleLaunch(JavaMode.java:108)
	at processing.mode.java.JavaEditor.lambda$handleLaunch$20(JavaEditor.java:608)
	at java.base/java.lang.Thread.run(Thread.java:833)

Any ideas?

Solved:
Somehow, the owner / group ownership got (?) changed for the folder /tmp/processing where tmp files are created for running a sketch. The owner/group was “root / root” and i’m not sure what the initial value was.

If I change those to my current user with

$ sudo chgrp GROUPNAME /tmp/proccessing
$ sudo chown OWNERNAME  /tmp/proccessing

It works again.
Not sure how long though. and what I did that those ownerships got changed or what else might be amiss.

EDIT: calling “sudo …/processing-java --sketch=… --run” inside home/USER/.config/lxsession/LXDE-pi/autostart sets user/group of /tmp/processing root/root somehow

1 Like