It occurs during the "reading file details..." portion of the database rebuild.
Aha. Then it's likely some kind of garbage attached to one of the files that's screwing up its tag parser. Stuff like JPEG album covers, nonstandard tags, huge comment fields, that sort of thing. Check for that.