Filed under: Troubleshooting
CSI Mac: How did that file get so big?

I don't know much about real-world forensics, except for what I see on television, but one thing I do know is that when you're faced with a troubleshooting mystery, you have a couple of choices: shrug your shoulders and fix the problem, or figure out what went wrong in the first place to try and prevent it from coming back again. While I don't always have the time or the smarts to suss out the root cause of every Mac issue, sometimes the issue is so curious and the cause so interesting that I feel compelled to investigate until I get to the bottom of it.
Recently, when one of my colleagues came in with a slightly-full hard drive, I went to my go-to disk space checker (the capable OmniDiskSweeper) to see where we could save a gigabyte or two. In addition to the usual suspects of iTunes podcasts long gone stale and legacy backups of Entourage databases, I came across the file you see above; it lives in ~/Library/Application Support/Chess. Why on earth would a support file for Chess.app be 1.5 gigabytes? That's crazy talk. I would love to delete it, but a file that large... might be useful or important.
Where did this bulky bucket of bits come from? Read on for the answer.
Since the .lrn sounded like it might be a "learning" file of previous chess games, I asked the user if he played chess on his Mac, and he said no. I searched for "standard.lrn large" and found no major clues, although I did learn that Apple apparently based Mac OS X's Chess.app on the freeware Sjeng engine. I decided to sleep on it... and the next morning, I had figured it out.
I remembered that on a previous machine, this user had experienced some odd issues that we suspected were hardware-related. In order to do a bit of a torture test on the processor, my IT colleagues and I decided to do overnight CPU exercises, by having Chess.app play itself for hours on end. Hence the massive .lrn file, which had carried over in the user folder through a machine migration. File deleted, mystery solved, apologies extended, user happy, and another case tucked away in the CSI: Mac archives.

![TUAW [Cafepress]](http://www.blogsmithmedia.com/www.tuaw.com/media/tuaw-cafepress-promo.png)


Reader Comments (Page 1 of 2)
Flunky Carter said 11:16AM on 8-22-2008
csi...
Myek!~!
Reply
Shunnabunich said 11:18AM on 8-22-2008
Haha, my standard.lrn file is 72 BYTES. Does this mean I'm an uncivilized, pedestrian boor? :D
Reply
tumantorak said 1:38PM on 8-22-2008
Only to Garry Kasparov and Deep Blue.
BLUEFROG said 4:41PM on 8-22-2008
Yes, but it has nothing to do with Chess! ;^)
Sorry, couldn't resist!
Rafe H. said 11:18AM on 8-22-2008
"I asked the user if he played chess on his Mac, and he said no." But actually he had, mystery solved.
Reply
KarlW said 9:09PM on 8-22-2008
Everybody lies
Joseph Crawford said 11:28AM on 8-22-2008
That's too funny... He said he did not play chess but in-fact had.
Reply
Michael Rose said 11:37AM on 8-22-2008
No, he hadn't -- we (the IT folks) did, in testing his machine. I'll clarify the post.
Brian said 11:31AM on 8-22-2008
Terminal goodness for finding large files / directories in any directory:
du -k | sort -n | tail -f
If you drop the tail command at the end, this command will sort out all files in the directory that you ran this from, in order of smallest to largest. See man pages for further manipulations!
Reply
Jesper said 11:35AM on 8-22-2008
To quote another show in response to Rafe H: "Everybody lies"
Reply
teh_dahl said 12:14PM on 8-22-2008
At least it wasn't lupus.
It's never lupus.
KarlW said 9:14PM on 8-22-2008
I just posted that as a reply before seeing this. Fantastic.
Author should've done a differential diagnosis. Tox screen to rule out toxins, and an MRI to rule out cancer.
keith4298 said 11:57AM on 8-22-2008
Number of players: 0? Can I interest you in a game of Chess Dr. Falken?
Reply
Michael Rose said 12:38PM on 8-22-2008
An interesting game. The only winning move is not to play.
Michael Rose said 12:39PM on 8-22-2008
Mr. McKittrick, after careful consideration, I have come to the conclusion that your new system sucks.
[man, i love that movie]
Martin said 12:28PM on 8-22-2008
Taking away acquired wisdom from a program is like boxing a cylon. Shame on you!
Reply
Slobi said 12:43PM on 8-22-2008
Riiight, a Chess file *may* be important. I hope that was a joke...
Reply
Shunnabunich said 2:45PM on 8-22-2008
"May be important", as in, "Chess.app may or may not ever work again if this file goes missing", not "may be an essential system file". (I'm assuming, anyway.)
Tom said 1:09PM on 8-22-2008
So - Did the app play chess much better after playing itself??
Reply
Tim said 1:19PM on 8-22-2008
Congrats you've been promoted to Detective....
Great story.
Reply