[ error ] ofImage: saveImage(): couldn't save "PRINT_163600.jpg", pixels are not allocated
Everything is running fine in macOS
I am aware openGL is quite different between macOS and RPi so i would say something is wrong there, but i can’t figure it out. What would you the problem could be ?
Not sure what’s going on but i would change the following things anyway to make things faster, might even fix it as well
you are clearing the image right after allocating it so the allocation doesn’t have any effect and will slow down things:
i would also store the image as an instance variable in your class so you don’t have to allocate it every frame which can be really slow in the RPI
and also add a second image so you can crop with allocating too
by passing the pixels to an image it’ll also upload them unnecessarily to a texture if you only want to save them (if you want to preview them you can then later use an ofTexture and loadData)
everything ran fine under macOS and Linux (Debian 8.7) so it was something definitely dealing with the Raspberry Pi and obviously was the source of the saving image issue i had.
I had already done it earlier but upgrading the raspberry pi firmware seems to have all the custom settings reset to defaults. So i set GPU memory split back to 128M instead of 64M and everything is running fine now !