Thanks hamoid, just checked and I’m not declaring arrays beyond the standard Processing lighting arrays. I guess something similar might be happening.
Since I don’t usually use Macs, I will put it on Github in case someone find it useful and wants to fix it.