Setting a variable on a contract to something and then trying to set it back to the default value will result in Remix failing to estimate gas.
I was debugging a more complex contract and it took me hours to find out the transaction was reverting because of this.