For about 3 months I have been having a problem with my Macbook running OS X Tiger with 3GB of RAM. The problem seems to only occur when I run a resource intensive application such as Photoshop, Illustrator, Premiere, Final Cut or even Garage Band. What happens is normally when I close those applications then put the notebook to sleep (safe sleep aka hibernation), when I wake it up it goes through the process slowly (slower than normal wake up from hibernation) then it crashes. Because I very rarely shut the notebook down, this seems to happen at least two or three times a day.
Annoying? Well what do you think? The waking up process, which is supposed to be quicker than starting it cold, takes a lot longer and then you have to force the notebook to reboot. This is unacceptably inefficient and not to mention scary. I keep thinking that there is something wrong with the hardware, but it does not get worse, it just seems to happen with any resource-intensive application.
The solution is apparently very simple: just open terminal and type sudo rm /var/vm/sleepimage, then enter your password and then if there is no error, you have just deleted the sleepimage file, which is where the content of your RAM gets dumped when the computer goes to sleep. When done, just reboot the machine and all should be fine. I even tried running Photoshop and then putting the Macbook to sleep and it wakes up fine.
So if your MacBook has a crash on wake up (that’s what happens to me in the mornings), then just delete that sleepimage file in /var/rm and it should be recreated afterwards and everything should be fine. It is particularly wise to do this after upgrading your RAM. I upgraded mine from 1GB to 3GB and did not know that I had to do this.