evince fails to open all PDF - grey screen

Asked by Twigathy on 2009-08-18

All PDFs I try and load with evince end with evince showing me a wonderful grey screen with no content, and the window controls as usual (Max/min/close). PDFs open just fine with xpdf. This was working until about a week ago....

Upon launching from terminal, I get this:
** (evince:7414): WARNING **: Failed to create dbus proxy for org.gnome.SettingsDaemon: Could not get owner of name 'org.gnome.SettingsDaemon': no such name

** (evince:7414): WARNING **: Failed to create file '/home/twigathy/.gnome2/evince/evince-crashed.HMQ0YU': No such file or directory

I don't know if these two warnings are related to the app failure.

I tried removing .gnome2/ and that didn't help either.

Version is GNOME Document Viewer 2.27.90 / 2.27.90-0ubuntu5 in Karmic.

Running it through strace seems to end up in an infinite loop of these:
poll([{fd=4, events=POLLIN}, {fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=12, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}, {fd=3, events=POLLIN}], 9, 0) = 1 ([{fd=15, revents=POLLHUP}])
read(6, 0x98be900, 4096) = -1 EAGAIN (Resource temporarily unavailable)

Description: Ubuntu karmic (development branch)
Release: 9.10
evince:
  Installed: 2.27.90-0ubuntu5
  Candidate: 2.27.90-0ubuntu5
  Version table:
 *** 2.27.90-0ubuntu5 0
        500 http://gb.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status
Expected: PDF files to be displayed onscreen
Actual: Grey screen of death

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu evince Edit question
Assignee:
No assignee Edit question
Last query:
2009-08-18
Last reply:
2009-08-25
Jamie Strandboge (jdstrand) said : #1

Thank you for using Ubuntu and taking the time to report a bug. Can you attach your /var/log/kern.log right after you try to open a PDF? It is possible that the new apparmor profile is causing you trouble.

Twigathy (twigathy) said : #2

Good intelligent guesswork! My kern.log has a lot of these in:

Aug 18 23:56:11 corona kernel: [14335.422844] type=1503 audit(1250636171.706:27): operation="mknod" info="Failed name lookup - deleted entry" error=-2 pid=7731 parent=4075 profile="/usr/bin/evince" requested_mask="w::" denied_mask="w::" fsuid=1000 ouid=1000 name=2F686F6D652F74776967617468792F2E726563656E746C792D757365642E7862656C2E444555495955202864656C6574656429

Jamie Strandboge (jdstrand) said : #3

Thanks. This decodes to:
/home/twigathy/.recently-used.xbel.DEUIYU (deleted)

Can you attach your entire /var/log/kern.log right after you try to open a PDF to make sure we can address all of the paths?

Twigathy (twigathy) said : #4

Sure - pasted below [apparently only two...]

Aug 19 14:14:51 corona kernel: [ 748.256584] type=1503 audit(1250687691.088:12): operation="mknod" info="Failed name lookup - deleted entry" error=-2 pid=3846 parent=3621 profile="/usr/bin/evince" requested_mask="w::" denied_mask="w::" fsuid=1000 ouid=1000 name=2F746D702F6F726269742D74776967617468792F6C696E632D6630362D302D32343134643233643135633963202864656C6574656429
Aug 19 14:14:51 corona kernel: [ 748.260835] type=1503 audit(1250687691.092:13): operation="mknod" info="Failed name lookup - deleted entry" error=-2 pid=3846 parent=3621 profile="/usr/bin/evince" requested_mask="w::" denied_mask="w::" fsuid=1000 ouid=1000 name=2F686F6D652F74776967617468792F2E676E6F6D65322F6576696E63652F6576696E63652D637261736865642E385757555955202864656C6574656429

Jamie Strandboge (jdstrand) said : #5

$ cat /tmp/415632 | aa-decode
Processing: 2F746D702F6F726269742D74776967617468792F6C696E632D6630362D302D32343134643233643135633963202864656C6574656429
Aug 19 14:14:51 corona kernel: [ 748.256584] type=1503 audit(1250687691.088:12): operation="mknod" info="Failed name lookup - deleted entry" error=-2 pid=3846 parent=3621 profile="/usr/bin/evince" requested_mask="w::" denied_mask="w::" fsuid=1000 ouid=1000 name='/tmp/orbit-twigathy/linc-f06-0-2414d23d15c9c (deleted)'
Processing: 2F686F6D652F74776967617468792F2E676E6F6D65322F6576696E63652F6576696E63652D637261736865642E385757555955202864656C6574656429
Aug 19 14:14:51 corona kernel: [ 748.260835] type=1503 audit(1250687691.092:13): operation="mknod" info="Failed name lookup - deleted entry" error=-2 pid=3846 parent=3621 profile="/usr/bin/evince" requested_mask="w::" denied_mask="w::" fsuid=1000 ouid=1000 name='/home/twigathy/.gnome2/evince/evince-crashed.8WWUYU (deleted)'

Thanks! I'll get this fixed up and uploaded in a few minutes.

Twigathy (twigathy) said : #6

Excellent - cheers :)

I'll have to remember that aa-decode tool. Could come in handy some time...

Jamie Strandboge (jdstrand) said : #7

Well, I just wrote it this morning. See http://bazaar.launchpad.net/~ubuntu-core-dev/apparmor/profiles-devel/annotate/head%3A/bin/aa-decode. I may try to get that into apparmor proper.

Launchpad Janitor (janitor) said : #8

This bug was fixed in the package evince - 2.27.90-0ubuntu6

---------------
evince (2.27.90-0ubuntu6) karmic; urgency=low

  * debian/apparmor-profile.abstraction: include abstractions/user-tmp
    (LP: #415632)
  * debian/apparmor-profile*:
    - add support for DVI
    - add support for EPS
    - add epiphany-browser
    - add email clients (evolution, kmail, thunderbird and mutt)
    - add comments on using mutt via xterm and konsole (but don't allow
      by default)
  * add apport hook:
    - add debian/evince.apport
    - debian/evince.dirs: add usr/share/apport/package-hooks
    - debian/rules: install evince.apport

 -- Jamie Strandboge <email address hidden> Wed, 19 Aug 2009 09:11:41 -0500

Twigathy (twigathy) said : #9

Not fixed for me -- see comments

Twigathy (twigathy) said : #10

Still getting this problem. I removed .recently-used.xbel and that didn't help either. Created a new user and they can use evince just fine.... So some conf file somewhere has got borked. What should I remove to stop this happening and make evince work again?

twigathy@corona:~$ evince zigbee.pdf

** (evince:11941): WARNING **: Failed to create dbus proxy for org.gnome.SettingsDaemon: Could not get owner of name 'org.gnome.SettingsDaemon': no such name

(evince:11941): GLib-CRITICAL **: g_bookmark_file_load_from_data: assertion `length != 0' failed

** (evince:11941): WARNING **: Failed to create file '/home/twigathy/.gnome2/evince/evince-crashed.ZBK5YU': No such file or directory

(evince:11941): Gtk-WARNING **: Attempting to store changes into `/home/twigathy/.recently-used.xbel', but failed: Failed to create file '/home/twigathy/.recently-used.xbel.79PNZU': No such file or directory

Please be sure your system is fully updated/upgraded with no pending packages or errors:

Open a Terminal from the menu Applications → Accessories → Terminal and type:

Suggestion: right click with mouse on the terminal title caption and select the item "Always on Top" doing this you will force the terminal window to stay on top of the other windows and you will find very easy to copy single row from this web page into the terminal...

(if the system ask you a password give your user password, you will not see nothing when you type it, then press enter)

sudo dpkg --configure -a

then to update and upgrade and also check pending or missing packages, still using terminal type:

sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get purge evince
sudo aptitude install evince
sudo apt-get clean
sudo apt-get autoremove

Then reboot your system
sudo reboot

Then retry... to open pdf with evince

Hope this helps

Can you help with this problem?

Provide an answer of your own, or ask Twigathy for more information if necessary.

To post a message you must log in.