I'm playing with a modified Carousel class from the demos to create a slideshow player that does static slides, a GL overlay HUD, and movies in the framebuffer. This is for a kiosk-type display I'm working on running under Python 3.5. I'd eventually like to get the whole thing running as a subprocess in node.js, and have a basic REST control wrapper for it, but I have so many problems with the Python program that I figure I'd better solve that before getting any more complex.
Sometimes pi3d's Display class either fails to initialize or freezes, and I don't get any error output, the whole thing just hangs on a black screen. If I kill the running python3 process and try to re-run it, it can't grab the display and fails to initialize. I end up having to reboot.
I've tried setting the Logger's loglevel to DEBUG, but that a) stops all program framebuffer functionality due to commandeering STDOUT/STDERR and b) hangs the entire system because it dumps ALL running programs' debug output to the tty.
Is there any way to tell Python to log errors to file or something so that I can debug my issue?
On a related note, is there any way to run pi3d detached? If I try to run it detached using the demo files, I lose all STDOUT and STDERR, and the framebuffer never kicks in (is the framebuffer redirecting STDOUT or something? Any way around that?) If I try to run the python3 program under node,js, I have to run the thing with stdio set to "inherit," otherwise I get no screen output. This is annoying on many levels since it means I have to use an ssh session to run the node program and leave it open. Would much rather have it running on its own and not requiring a shell.
TIA for any help anyone can provide.
--Aaron