Closing tab keeps « something » (file descriptor ?) open

Bug #1854219 reported by Da Long on 2019-11-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qpdfview
Undecided
Unassigned

Bug Description

Gentoo, qpdfview 0.4.16.

When closing a tab, there still exists « some » link to the opened PDF file. If the file is on a USB key (or anything removable), this prevents unmounting the key since it is still seen as busy. Lsof show the file as still open.

Example : mount a key on /mnt/usb, open several PDF filest in tabs, close tabs (without closing qpdfview), try to unmount the key.

umount: /mnt/usb/: target is busy.

$ lsof /mnt/usb/
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
qpdfview 17596 XXX 18r REG 8,33 3304869 274 /mnt/usb/some path/name.pdf
qpdfview 17596 XXX 21r REG 8,33 120844 280 /mnt/usb/another/path.pdf

Note the problem occurs with any file, not only with files from USB keys and the like :

File 02-comments.pdf is from the hard disk, has been opened in a tab then closed.

$ lsof ~/Expertises/2019/02-comments.pdf
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
qpdfview 17596 XXX 22r REG 254,2 822013 21233927 /home/pyb/Expertises/2019/02-comments.pdf

Closing qpdfview closes everything, but this is bothersome if working on several PDF files.

Adam Reichold (adamreichold) wrote :

Hello Da Long,

could you check whether the "Keep recently closed " option on the behavior tab of the settings dialog is enabled? If so, qpdfview will only "hide" and really close the most recently viewed tabs. Please try to disable the option and restart the application. Does that fix the observed behavior?

Best regards,
Adam

Changed in qpdfview:
status: New → Incomplete
Da Long (dalong) wrote :

Hello Adam.

The « Keep recently closed » checkbox was enabled. Unchecking it seems to solve the observed behaviour.

So does this mean nothing is wrong, except I did not understand properly the meaning of the checkbox ?

Adam Reichold (adamreichold) wrote :

Hello again,

yes, everything seems to work as intended then.

Best regards,
Adam

Changed in qpdfview:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers