Debug mysterious issue with quartic solver