I was having an issue in my plugin and I managed to reproduce the issue with the example plugin "getter".
Here's what I do. I open two .PSD files then select File->Automate->Getter
For me it crashes in PIUGetInfoByIndex called from GetDocumentInfo()
This crash happens on the Mac in version 14.1.2x64. Funny thing is that it didn't crash in version 14.1.0x64.
Any help would be appreciated!