my old emac had a problem similar to this, and after doing a fresh install of the OS it ran fine. I would recommend using an external drive to save all your data and doing an erase and install.
The line only last for less than a second and happens suddenly without warning, no time to take picture. The line is in the center of screen for only an instant.