Most commonly, it occurs with ADHD, Autism, Fibromyalgia, and Anxiety Disorders. It can also occur with migraines and many other conditions.
I get it with migraines (and I'm going to be honest, the Anxiety and the synaesthesia probably don't help with this.) It is a freaking b**ch.