Sunday, April 03, 2005

iPhoto 5 crash on import bug solved

I was having one hell of a time troubleshooting an iPhoto 5 crash on import problem. The images were imported to the proper folder, but after the crash were not showing up in the iPhoto database. Re-importing would cause duplicates and more problems.

I rebuilt the database, first using the built in command and then manually (actually re-importing all 14,000 some odd photos. The issue was still happening regularly. I changed camera cords, but then noticed it was happening when I imported from the finder.

Finally I started looking at the Console logs. It was crashing with after writing an error re not being about to malloc. This led me to investigate my Virtual Memory setup. I had the swap on another drive (internal). Apparently iPhoto 5 does not like this and if it tries to allocate virtual memory it dies. I reset the swap to the default location. Problem solved.

I tried this on a second machine to see if it was a bug or something on that particular drive, the crash started happening on that second machine. I think it's a bug.