I have a half-completed attempt at using a Cassette pass to find the first NaN
that gets returned from any function. Needs some more work, but it found the NaN I was hunting for and then I moved on:
https://github.com/mbauman/TheNaNTrap.jl/