Open
Bug 664621
Opened 14 years ago
Updated 3 years ago
Directory Remains Locked Even After File In Associated Directory Is Closed
Categories
(Core :: Printing: Output, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: WRobertE, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Build Identifier: Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
I use doPDF as a virtual printer to save output from a web page in PDF format.
I also use TrueCrypt volumes to save confidential information, such as PDF files, created via doPDF.
If I create a PDF file using doPDF when printing a web page from within Firefox and save it to a TrueCrypt mounted volume, Firefox maintains a lock on the drive letter and directory where the PDF file was saved.
Then, when I attempt to dismount the TrueCrypt volume, I get a warning message saying files are still in use, even though I'm no longer accessing the PDF file I "printed to" via doPDF.
The only way to close the TrueCrypt volume safely is to shut down Firefox first so that the lock on the directory held by Firefox is released.
In other words, Firefox is not releasing file handles for directories that have been accessed even though files within the directory are no longer open.
I confirmed this using the SysInternals tool named "handle.exe".
For example, the following excerpt from handle.exe shows the locked directory in a recent occurrence of this problem:
FCD4: File (RW-) Z:\_Me\Financial\2011
In this example, I had previously mounted a TrueCrypt volume as drive letter Z: and I had saved a doPDF-generated PDF file in the directory path \_Me\Financial\2011.
So, now Firefox retains a lock on the Z:\_Me\Financial\2011 directory even though the PDF file is no longer open in the PDF reader. So, TrueCrypt will not allow the virtual volume to be dismounted without generating an error.
Reproducible: Always
Steps to Reproduce:
(see Details section above)
Expected Results:
Firefox should release a lock on a directory if it doesn't also have a lock on a file within that directory.
Updated•14 years ago
|
Component: File Handling → General
Product: Firefox → Core
QA Contact: file.handling → general
Comment 1•14 years ago
|
||
Reporter -> Are you still experiencing this issue with the latest version of Firefox 6? Does the issue occur with the latest nightly? http://nightly.mozilla.org/
Does it happen with all PDF printers (i.e. Adobe or CutePDF)?
Comment 3•14 years ago
|
||
Closing bug as Incomplete - if you are still experiencing this issue or have more information to provide feel free to post back here and we can re-open the bug. You can also get assistance by visiting the Firefox help site -> https://support.mozilla.com/en-US/kb/ask
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
| Reporter | ||
Comment 4•14 years ago
|
||
I just tested with the latest version, Firefox 8.0, and the behavior I initially reported is still present. I have to close Firefox in order to release the lock.
Comment 5•14 years ago
|
||
Presumably this would be printing code, if anything.
Status: RESOLVED → UNCONFIRMED
Component: General → Printing: Output
QA Contact: general → printing
Resolution: INCOMPLETE → ---
Comment 6•14 years ago
|
||
Does it happen with all PDF printers (i.e. Adobe or CutePDF)?
Does it happen on non-TrueCrypt volumes?
Version: unspecified → 8 Branch
| Reporter | ||
Comment 7•14 years ago
|
||
It happens for non-Truecrypt volumes and for other virtual printer software, not just doPDF.
It's easy to re-create as follows:
1. Start Firefox and browse to a web site. I used iGoogle.com for this recent test.
2. Insert a flash drive.
3. In Firefox, print to the flash drive using your choice of virtual printer driver.
4. Without closing Firefox, in the system tray, click on the "Safely Remove Hardware" icon and then click on "Safely Remove USB Mass Storage Device". You will get the error: "The device cannot be stopped right now. Try stopping the device later".
5. Close Firefox.
6. Repeat the "Safely Remove Hardware" procedure in Step 4.
7. No error occurs and the device is now removed.
Firefox has the directory on the removable device locked. Closing Firefox removes the lock.
Hope that helps.
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•