If you run Calibre in debug mode (there's an option under the 'Preferences' toolbar button) it'll save a debug log to your temporary directory. It should pop up after you quit Calibre but this isn't 100% reliable.
Library > Library maintenance > Check Library may also be useful for this case.
|