Public bug reported:

This is not a dupe of #1191692.

Generating a simple pdf with python and reportlab I get always the same
warning opening in evince:

EvinceDocument-CRITICAL **: ev_document_get_n_pages: assertion
'EV_IS_DOCUMENT (document)' failed

The document has only 1 page, so if evince cannot properly get the
number of pages with ev_document_get_n_pages, this should be a valid bug
or remove the warning and report 0 pages instead.

I think that the macro EV_IS_DOCUMENT is failing in some point for
detect the document mode or it is not supported. If that macro fails,
should report why is not considered a valid document.

I attach a fully example python 2.7 script file for reproduce the
problem with reportlab, and the pdf file generated for reproduce the
problem.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: evince 3.10.0-0ubuntu2
ProcVersionSignature: Ubuntu 3.8.0-13.23-generic 3.8.3
Uname: Linux 3.8.0-13-generic i686
NonfreeKernelModules: fglrx
ApportVersion: 2.12.6-0ubuntu1
Architecture: i386
Date: Fri Nov  1 18:25:26 2013
InstallationDate: Installed on 2013-02-03 (271 days ago)
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
MarkForUpload: True
SourcePackage: evince
UpgradeStatus: Upgraded to trusty on 2013-10-31 (1 days ago)

** Affects: evince (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 trusty

** Attachment added: "evince_n_pages.py script for reproduce and generate a 
buggy pdf for evince"
   
https://bugs.launchpad.net/bugs/1247208/+attachment/3897931/+files/evince_n_pages.py

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1247208

Title:
  EvinceDocument-CRITICAL **: ev_document_get_n_pages: assertion
  'EV_IS_DOCUMENT (document)' failed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/evince/+bug/1247208/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to