ESA scientists finally resolve glitch that caused Euclid spacecraft to 'doodle' through space