Evince hangs on start attempting to stat non-existant file

Bug #106668 reported by Ryan Bair
6
Affects Status Importance Assigned to Milestone
evince (Ubuntu)
Invalid
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: evince

Evince hangs on start after a previously opened file is no longer available. In my case /pump an auto-mount point to a CIFS share that is currently unavailable. Evince hangs indefinitely while trying to stat this file.

Here's the interesting part of my strace:

time(NULL) = 1176599654
.....
time(NULL) = 1176599654
time(NULL) = 1176599654
stat64("/pump/data/IT/Pump Network IT/users.pdf",

Revision history for this message
Ryan Bair (dr.bair) wrote :

Full strace for problem:

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug. That's likely to build the "recently open" list and not list item which are not available, why do you think it's a bug?

Changed in evince:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: Unconfirmed → Needs Info
Revision history for this message
Sebastien Bacher (seb128) wrote :

We are closing this bug report as it lacks the information, described in the previous comments, we need to investigate the problem further. However, please reopen it if you can give us the missing information and don't hesitate to submit bug reports in the future.

Changed in evince:
status: Needs Info → Rejected
Revision history for this message
Ryan Bair (dr.bair) wrote :

Re-opening the bug after a long break...

When a document is on the recently opened items list that is on an auto-mounted CIFS share that is not available, evince will hang indefinitely. If the CIFS share is available, automounter is stopped, or the file was deleted (and the CIFS share is available) there is no issue.

I get hit with this issue quite often (almost daily). I've actually made myself a little wrapper script to clear out the recent files before it launches evince.

Steps to reproduce:
1. Set up an automounting CIFS share.
2. Open PDF document on the CIFS share with evince.
3. Close evince.
4. Pull network cable (make the share unavailable).
5. Try opening evince.
At this point, evince will appear not to launch. If you try launching it again with strace, you should see it hung up trying to stat the previously opened pdf document.

Changed in evince:
status: Invalid → New
Revision history for this message
Sebastien Bacher (seb128) wrote :

the bug might be due cifs hanging rather than evince

Revision history for this message
Sebastien Bacher (seb128) wrote :

can you trigger the bug without using cifs? does it happen with other applications, eog for example? Could you describe easy steps to set up a cifs configuration?

Changed in evince:
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for. Thanks!.

Changed in evince:
status: Incomplete → Invalid
Revision history for this message
Alexis de Lattre (alexis-via) wrote :

I am also affected by this bug on a daily basis ; it is quite annoying, and it's been around for a many years now ! The steps described by Ryan Bair in comment #4 are the exact steps needed to reproduce the bug.

Reply to comment #6 "Could you describe easy steps to set up a cifs configuration ?"
-> you just need to install a samba server and edit smb.conf to setup a share.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.