Reasonable-quality audio/video recording equipment is becoming nearly ubiquitous, being embedded in cell phones.
Yet the only "footage" that is available is grainy and poor quality.
As the quality and availability of audio/video recording equipment grows, one would expect the quality of "sighting" recordings to increase, but they aren't.
I think that's very telling.
Try to single-step it in debugger from the beginning up to main loop.
Agreed and good IDE and debugger is a "life saver"; however that does not mean we should not document the code.
Memory fault -- brain fried