I had the same problem. Contacts were good and AA batteries were good. Although it didn't seem logical, as a last resort, I replaced the CR1220 button cell. This solved my problem on an SX160.
open