What causes cardiac arrhythmias?

Drugs, genetics, external conditions, trauma, hypoxia just to name a few