fullScreen(SPAN) in apple silicon Processing version 4.4.1

Hi guys, it seems there is an issue on version 4.4.1 with the fullScreen(SPAN) command, I get the following error, thank you.

java.lang.RuntimeException: Exception while attempting defaults read com.apple.spaces spans-displays
	at processing.core.PApplet.exec(PApplet.java:3193)
	at processing.core.PApplet.handleSettings(PApplet.java:858)
	at processing.core.PApplet.runSketch(PApplet.java:10117)
	at processing.core.PApplet.main(PApplet.java:9849)
Caused by: java.io.IOException: Cannot run program "defaults": error=0, posix_spawn failed
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
	at java.base/java.lang.Runtime.exec(Runtime.java:594)
	at java.base/java.lang.Runtime.exec(Runtime.java:453)
	at processing.core.PApplet.exec(PApplet.java:3191)
	... 3 more
Caused by: java.io.IOException: error=0, posix_spawn failed
	at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
	at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:314)
	at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
	... 7 more

Hi @hbarragan, thank you for reporting this issue! I suspect it is similar to this one: Using `Runtime.getRuntime().exec` results in `Cannot run program "": error=0, posix_spawn failed` · Issue #1044 · processing/processing4 · GitHub

There is already a draft fix for it, so hopefully we will have it fixed in the next beta!

3 Likes

hi @stefterv, now the full screen works. There is another issue related to performance when drawing a group of images on top of each other (no transparency) which are moving as a group around the screen using the image command on the draw(). Version 4.4.1 works well, but 4.4.4 makes interaction impossible much like a step by step jumping. I am testing with the same code, which is straight forward, just presenting here an excerpt:

for (int z=0; z< html_source[j1]._images.size(); z++) {
   int tW = ((PImage)html_source[j1]._images.elementAt(z)).width;
   int tH = ((PImage)html_source[j1]._images.elementAt(z)).height;
   image((PImage)html_source[j1]._images.elementAt(z), lpicx[j1] + l3, lpicy[j1] + i4);
}

Thank you!