Saturday, October 09, 2021

Artists Don't Die, Prometheus Bug Hunting

Watched the Concert for George (Harrison) on Television. Reminded that artists don't die, they just change medium.

Prometheus crashed for the first time in over a week yesterday, this rare bug is so annoying. I've added a tracker. It

// Error trap: S0
    reportadd("S0");
// This will tell the playing/recording/rendering thread to stop as they operate while(playing)
    playing=0;
    globalerrorinstop=-1;
// Error trap: S1
    reportadd("S1");
// Wait for thread to finish
    if (waitforthreadtofinish)
        while (inplaythread)
            waitforafewmillisecs();
// Error trap: S2
    reportadd("S2");

Oddly, there are times when S0 appears in the report, followed by S2, but not S1. The thread is running at this point, so perhaps priorities in the file saving mean that internal thread called of reportadd are stopping it. The crash occurs between S1 and S2, so it must be in the thread, but oddly almost nothing in the thread seems to be running. My best guess is that the deallocation of the thread itself is causing the crash, so perhaps a memory leak or overrun elsewhere. Lack of stack? That shouldn't ever cause a crash as Windows handles allocation here. The crash only occurs when stopping, never playing, so the internal parts of the thread should be stable.

Recorded some vocals for Hitler in High Heels. Accidentally saved over the take when I clicked on a 'Save Changes?' dialogue. So annoying. SoundForge is great but has some really annoying parts. It creates stereo or mono blank files irrespective of the contents of the copy buffer. It also never remembers the filename of a new, pasted wave, even when saved, always keeps it as unsaved new, so any closing of the files askes for confirmation when they HAVE been saved. This is why accidents occur. Endlessly clicking on unwanted pop-ups.