Writing my master's thesis and changed how I define the sections from
\section*{\centering sectionname}
\addcontentsline{toc}{section}{sectionname}
to simply
section{sectionname}
This was done after feedback that I should number my sections.
The problem is that whenever I try to compile my document I get an error stating that the compilation timed out (using sharelatex.com free user, so the timeout occurs after 60 seconds).
The thing is that if I just comment out \tableofcontents the whole document compiles in about 20 seconds without any problems. The only other changes I did to the document which I can think of was to change the text in some of my sections, which shouldn't cause this problem at all. The only section commands I use now are \section{}, \subsection{} and \subsubsection{}.
I even tried to comment out a majority of my document and only compile a small part of it including \tableofcontents but I still get the same timeout message. Heads up is that I'm still very new to LaTeX.
\section{section name}(with a backslash), right? Have you considered deleting all auxiliary files and compiling again? – ebosi Jun 27 '16 at 15:26