I wrote a program for my Pi3-based guitar pedalboard and it works great at the moment.
Now I try to run it when the Pi starts up. I tried several solutions with /etc/init.d and /etc/rc.local and various “Required-Start” conditions.
In all cases, the program starts and run correctly, but after a few seconds, during the black screen before the desktop appears, the system freezes (not always, but most of the times), the ACT led stops blinking. I cannot even log with SSH.
Is there any reason for this? My program uses a lot of GPIO stuff (SPI, I2C, DMA…) and a USB soundcard via the ALSA drivers. It works fine when run manually. The system is a regular Raspbian Jessie updated today.
And when the freeze happens, how can I disable the program launch, given that the crash prevents me to edit any configuration file?