Wednesday 12 November 2008

Matlab fatal error on startup

Had the situation where Matlab fails as soon as you open it and posts a very unhelpful message - "Fatal error on startup" with no useful extra information.

A hunt on Google suggested renaming the folder with the matlab.prf preferences file in it (see matlab support here) so that Matlab creates a new one on startup. That didn't help.

Next thing Google suggested was killing the spoolsv.exe (windows printer spooling service) process in task manager. This allowed Matlab to be opened successfully but I don't want to have to choose between Matlab and printing!

Further investigation found that changing the default printer to a different one on the network allowed Matlab to be opened once spoolsv.exe had come back. Assume that Matlab tries to connect to the default printer on startup but the original default printer was unreachable so Matlab just falls over. Problem is solved by simply changing to a different printer.

No comments: