{"id":112,"date":"2004-11-16T17:14:10","date_gmt":"2004-11-16T21:14:10","guid":{"rendered":"http:\/\/shadow.sombragris.org\/?p=112"},"modified":"2004-11-16T17:33:25","modified_gmt":"2004-11-16T21:33:25","slug":"please-dont-crash-on-me","status":"publish","type":"post","link":"https:\/\/shadow.sombragris.org\/?p=112","title":{"rendered":"Please Don&#8217;t Crash On Me"},"content":{"rendered":"<p>I am in the process of typesetting a fairly large book using LaTeX. It usually is a straightforward task, and often it even poses interesting challenges. The best part of it is that LaTeX is a workhorse of a typesetting engine, and together with TeX it would chew enormous chunks of text without even giving a hiccup. The stability of the whole system was impressive.<\/p>\n<p>Or so I thought&#8230;<\/p>\n<p>Last Friday I emailed home the LaTeX code I was working on. At the time the work was about 20% of the final book, and used only three floats, although a significant number of packages were loaded.<\/p>\n<p>I began to work on it at home, using the code I emailed myself from office. I generated each now and then some PDFs, while continuing my typesetting.<\/p>\n<p>Suddenly, I noticed that I&#8217;m not seeing my PDF file. Moreover, it seemed that pdfLaTeX was stuck near the end of the document, inactive, producing no output, and eating ~95% of CPU.<\/p>\n<p>Oh my&#8230; I couldn&#8217;t do anything save for killing the process. Trying to compile the source with a different engine, such as <tt>latex<\/tt> or <tt>pslatex<\/tt> didn&#8217;t do anything. Each of them was stuck eating way too much CPU at precisely the same point.<\/p>\n<p>I hunted the probable cause of the problem, and it looked like a certain float located near the end of the document was the culprit. I commented it out (for LaTeX, the percentile sign, <tt>%<\/tt> is the comment marker) and voil\u00c3\u00a1! the document compiled like a charm. I was dumbfounded to say the least.<\/p>\n<p>Perhaps a filesystem problem? I did fsck three times with badblocks and optimize directories, and nothing came out. Phew, this was not the cause, thankfully.<\/p>\n<p>At that moment it was near midnight and I was so sleepy I couldn&#8217;t think with clarity. So, I hit the sheets and slept soundly till Saturday&#8230; noon&#8230; *blushes* ;). Then I woke up, and after getting up to speed, booted the laptop, decommented the suspect code, and lo and behold, the PDF came out like business as usual.<\/p>\n<p>I&#8217;m still amazed and dumbfounded, and at a loss for an answer. The most probable explanation was that the laptop&#8217;s refrigeration system couldn&#8217;t cool either the CPU or some other component, and the instability was because of the overheating. Any other explanation&#8230;?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am in the process of typesetting a fairly large book using LaTeX. It usually is a straightforward task, and often it even poses interesting challenges. The best part of it is that LaTeX is a workhorse of a typesetting engine, and together with TeX it would chew enormous chunks of text without even giving&#8230;<\/p>\n","protected":false},"author":159,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-112","post","type-post","status-publish","format-standard","hentry","category-computers"],"_links":{"self":[{"href":"https:\/\/shadow.sombragris.org\/index.php?rest_route=\/wp\/v2\/posts\/112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shadow.sombragris.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shadow.sombragris.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shadow.sombragris.org\/index.php?rest_route=\/wp\/v2\/users\/159"}],"replies":[{"embeddable":true,"href":"https:\/\/shadow.sombragris.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=112"}],"version-history":[{"count":0,"href":"https:\/\/shadow.sombragris.org\/index.php?rest_route=\/wp\/v2\/posts\/112\/revisions"}],"wp:attachment":[{"href":"https:\/\/shadow.sombragris.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shadow.sombragris.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shadow.sombragris.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}