Emacs crashes randomly (and frequently) crashing when opening images files from magit buffer. IIRC I had reported similar bug which was fixed long ago (a year). I am attaching the backtrace here.