Follow

Cool, I made the stack overflows on macOS. I guess I shouldn't allocate 4096 samples times 32 channels (to allow max) times sizeof(float) on the stack. That's 512KiB, the entire stack size in one blow.

And really, the only way in Xcode to track stack usage is to break at the top of your thread's function chain, command `register read sp` to the lldb prompt, then step into functions until you find the huge stack bumps.

Sign in to participate in the conversation
Treehouse Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!