Preview stuck checking for unsaved changes before closing after scanning

Originator:jon
Number:rdar://12302873 Date Originated:14-Sep-2012 02:30 PM
Status:Open Resolved:
Product:Mac OS X Product Version:10.8.1 (12B19)
Classification:Crash/Hang/Data Loss Reproducible:Always
 
14-Sep-2012 02:30 PM Jon Stacey:
Summary:
Preview will get stuck "Checking for unsaved changes before closing" when trying to close a window with multiple documents that have been scanned.

Steps to Reproduce:
1. Open Preview
2. Goto File -> Import From Scanner -> Choose a scanner
3. Scan a several documents [3 or more]
4. In the Preview window with the documents, select all from the thumbnail preview on the left side.
5. Goto File -> Export Selected PDF Documents  and save the file somewhere temporarily
6. Now close the Preview Window with the red close button

The save dialog will popup asking "Do you want to keep this new document?"

Click "Delete"

Expected Results:
I expect Preview to not save any of the open documents and close the window.

Actual Results:
The progress bar progresses a ways and then gets stuck with the message "Checking for unsaved changes before closing." Upon force quit and reopening, all of the documents are then reopened in separate windows that must be closed.

Regression:

Notes:
I have attached a video of the bug exhibiting itself. This bug is _always_ reproducible on 3 or more documents. Preview appears to work properly on 1 or 2 scanned documents.

The step of exporting the selected PDF documents might not be required. I did not test without those steps, but if you follow the steps I list the bug is always producible.

I'm using a Canon CanoScan 5600F, but this should not affect the behavior of this portion of Preview.

I'm using Preview version 6.0 (765).

14-Sep-2012 02:30 PM Jon Stacey:
'Preview Bug Reproduction.mov' and 'iMac.spx' were successfully uploaded

Comments

Resolved

Great news! I upgraded to OS X 10.8.2 which was released earlier today and I can no longer reproduce this bug, so I believe it has been fixed.

There is now a UX problem [Preview repeatedly asks what to do for every single open file that's not saved], but I will create a new bug report for that.

For historical purposes, I do not recall a system beep shortly after the progress bar comes up, but since it seems to have been fixed in 10.8.2 it's moot.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!