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

**URL:** https://discourse.processing.org/t/on-startup-thats-new-to-me-a-strange-and-unexplainable-error-occurred/40899
**Category:** Processing for Pi
**Created:** [February 11, 2023, 11:47am UTC](https://discourse.processing.org/t/on-startup-thats-new-to-me-a-strange-and-unexplainable-error-occurred/40899 "2023-02-11T11:47:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![fabianluscher](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/fabianluscher/32/17959_2.png) [@fabianluscher](https://discourse.processing.org/u/fabianluscher)
#### Post date: [February 11, 2023, 11:47am UTC](https://discourse.processing.org/t/on-startup-thats-new-to-me-a-strange-and-unexplainable-error-occurred/40899/1 "2023-02-11T11:47:10Z")

</div>

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:

```auto
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?

> [@Cannot run processing-java from bashfile; but works directly from terminal](https://discourse.processing.org/t/cannot-run-processing-java-from-bashfile-but-works-directly-from-terminal/40898):
>
> Hi all! I want to run a processing sketch on startup of my raspberry pi. therefore I added this line to /home/esc/.config/lxsession/LXDE-pi/autorun: sudo /home/esc/Applications/processing-4.1.2/processing-java --sketch=/home/esc/Applications/sketchbook/elisas\_synchronotron --run this does not work - same when running the same line from a bashfile startSketch.sh: #!/usr/bin/env bash sudo /home/esc/Applications/processing-4.1.2/processing-java --sketch=/home/esc/Applications/sketchbook/elisas…

thanks for any ideas!

 ![2023-02-11-120233_832x624_scrot](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/6/9/69f53374ba08dcdf711ce6b8eec821edbb69f2a0.png)

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

---

<div class="post-metadata">

### Author: ![fabianluscher](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/fabianluscher/32/17959_2.png) [@fabianluscher](https://discourse.processing.org/u/fabianluscher)
#### Post date: [February 13, 2023, 9:28am UTC](https://discourse.processing.org/t/on-startup-thats-new-to-me-a-strange-and-unexplainable-error-occurred/40899/2 "2023-02-13T09:28:31Z")

</div>

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.”

```auto
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?

---

<div class="post-metadata">

### Author: ![fabianluscher](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/fabianluscher/32/17959_2.png) [@fabianluscher](https://discourse.processing.org/u/fabianluscher)
#### Post date: [February 13, 2023, 10:04am UTC](https://discourse.processing.org/t/on-startup-thats-new-to-me-a-strange-and-unexplainable-error-occurred/40899/3 "2023-02-13T10:04:43Z")

</div>

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

```auto
$ 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
