@chasedouglas & @bregma:

I've looked into this problem some more and the fix should be relatively
trivial.  I'll attempt to briefly describe the cause of the error,
outline a simple solution, and will attach a patch that can be applied
to the utouch-geis 2.2.10 source which fixes the problem for me.

The cause of the delay is that `_geis_wait_for_init` attempts to wait a
full 5 seconds (GEIS_DEFAULT_INIT_TIMEOUT) or until the Geis backend is
initialized.  In the event of a failure, i.e., when no backend can be
initialized, the 5 second waiting period is still observed.  To fix this
bug, we need only signal the failure of the initialization process so we
can abort from `_geis_wait_for_init` immediately.

To do so, I propose the following changes:
1) Add a new GeisState, GEIS_STATE_ERROR
2) Set geis->state to GEIS_STATE_ERROR whenever no backend can be initialized 
and we are out of fallbacks.
3) Check for geis->state == GEIS_STATE_ERROR in _geis_wait_for_init and abort.

** Patch added: "libutouch-geis-state-error.patch"
   
https://bugs.launchpad.net/ubuntu/+source/geis/+bug/997630/+attachment/3250585/+files/libutouch-geis-state-error.patch

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to evince in Ubuntu.
https://bugs.launchpad.net/bugs/997630

Title:
  evince and eog broken on remote sessions (X, NX, x2go and VNC)

Status in Open Input Framework Geis C API:
  In Progress
Status in “evince” package in Ubuntu:
  Invalid
Status in “geis” package in Ubuntu:
  In Progress
Status in “evince” source package in Precise:
  Invalid
Status in “geis” source package in Precise:
  In Progress

Bug description:
  libgrip has some troubles when accessing a Ubuntu 12.04 desktop via
  x2go, which uses libnx-x11.

  The applications (evince and eog) start up very slowly. It takes about
  50 seconds to open a 900k pdf document.

  The following output makes me think that the problem is libgrip-
  related. A way to avoid the issue is running evince in preview mode
  (-w).

  $ evince

  (evince:15833): GRIP-WARNING **: failed to determine device types

  
  (evince:15833): GRIP-WARNING **: Failed to initialize gesture manager.

  (evince:15833): GRIP-WARNING **: Failed to initialize gesture manager.

  (evince:15833): GRIP-WARNING **: Failed to initialize gesture manager.

  (evince:15833): GRIP-WARNING **: Failed to initialize gesture manager.

  (evince:15833): GRIP-WARNING **: Failed to initialize gesture manager.

  (evince:15833): GRIP-WARNING **: Failed to initialize gesture manager.

  (evince:15833): GRIP-WARNING **: Failed to initialize gesture manager.

  (evince:15833): GRIP-WARNING **: Failed to initialize gesture manager.

  (evince:15833): GRIP-WARNING **: Failed to initialize gesture manager.

  $ lsb_release -rd
  Description:  Ubuntu 12.04 LTS
  Release:      12.04

  $ apt-cache policy libgrip0
  libgrip0:
    Installed: 0.3.4-0ubuntu1

  $ apt-cache policy evince
  evince:
    Installed: 3.4.0-0ubuntu1

  $ apt-cache policy eog
  eog:
    Installed: 3.4.1-0ubuntu1

  $ apt-cache policy libnx-x11
  libnx-x11:
    Installed: 2:3.5.0.12-0~234~oneiric1
    Candidate: 2:3.5.0.12-0~234~oneiric1
    Version table:
   *** 2:3.5.0.12-0~234~oneiric1 0
          500 http://ppa.launchpad.net/x2go/stable/ubuntu/ oneiric/main amd64 
Packages

To manage notifications about this bug go to:
https://bugs.launchpad.net/geis/+bug/997630/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to