Encounter 0 when calculating log power spectrum
Typically, one's data has some sort of noise floor (-96 dB, etc.).  So one common way to deal with the FFT bins that are zero (or tiny) is to replace anything below the noise floor with the noise floor level, since any value below that value is most likely not useful data.  Doing this before taking the log() function may provide some computational efficiency.