Bug 1174051 - error building PDF: ASSERT failure in QList<T>::operator[]: "index out of range"
Summary: error building PDF: ASSERT failure in QList<T>::operator[]: "index out of range"
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 4.2
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: Lee Newson
QA Contact: Ruediger Landmann
URL:
Whiteboard:
Depends On:
Blocks: 1172043
TreeView+ depends on / blocked
 
Reported: 2014-12-15 02:07 UTC by Greg Sheremeta
Modified: 2016-11-29 17:08 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-29 17:08:55 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1158057 0 unspecified CLOSED publican 4.2 fails to build PDF for RHEV Technical Guide 2021-02-22 00:41:40 UTC

Internal Links: 1158057

Description Greg Sheremeta 2014-12-15 02:07:00 UTC
Description of problem:
[===========================================================>] Page 190 of 191
ASSERT failure in QList<T>::operator[]: "index out of range", file /usr/lib64/wkhtmltopdf/include/QtCore/qlist.h, line 477
wkhtmltopdf died, PDF generation failed. Check log for details.
 at /usr/bin/publican line 1223
error: Bad exit status from /var/tmp/rpm-tmp.4vi0zD (%build)
    Bad exit status from /var/tmp/rpm-tmp.4vi0zD (%build)
RPM build errors:
Child returncode was: 1
EXCEPTION: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target noarch --nodeps builddir/build/SPECS/rhevm-doc.spec']
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/mock/trace_decorator.py", line 70, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.4/site-packages/mock/util.py", line 324, in do
    raise mock.exception.Error, ("Command failed. See logs for output.\n # %s" % (command,), child.returncode)
Error: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target noarch --nodeps builddir/build/SPECS/rhevm-doc.spec']
LEAVE do --> EXCEPTION RAISED

Version-Release number of selected component (if applicable):
4.2 (or whatever is in brew)

How reproducible:


Steps to Reproduce:
1. brew RHEV documentation

Actual results:
dies

Expected results:
a beautiful PDF

Additional info:

Comment 13 Lee Newson 2015-06-17 12:57:24 UTC
There are a couple workarounds to this:

The first is to change the font via the publican.cfg "pdf_body_font" and "pdf_mono_font" properties. Normally it requires doing a bit of mixing and matching to find something that works. This approach has worked for all but 2 cases I've seen.

The second is to revert to FOP as the pdf renderer, via the "--pdftool=fop" argument. However this has varying results and also tends to output a differently styled PDF. As such this isn't really an alternative internally.

The last, which is really only an option for writers and is very much so a last ditch effort, is to add some some additional revision history entries or to rework some of the content. This then adjusts the number of pages ever so slightly, which then offsets the issue.

Comment 14 Greg Sheremeta 2016-11-29 17:08:55 UTC
Closing, we've worked around.


Note You need to log in before you can comment on or make changes to this bug.