Ticket #234 (closed defect: fixed)
Opened 3 years ago
Last modified 3 years ago
collaborative futures pdf stops in chapter 14
| Reported by: | mushon | Owned by: | douglas |
|---|---|---|---|
| Priority: | major | Milestone: | Bugs |
| Component: | Objavi | Keywords: | |
| Cc: | adam aco douglas |
Description (last modified by douglas) (diff)
Reported on IRC:
05:29 < mushon> Aco: any reason why Booki exports are behaving weirdly?
05:29 < mushon> http://objavi.flossmanuals.net/books/collaborativefutures-en-2010.08.11-19.05.46.pdf
05:30 < mushon> it's cut after page 56 (on the TOC too) also seems to be ignoring chapter IDs + no
B/W
05:30 < mushon> I am using this CSS file: http://mushon.com/xtra/booki/cf_june2010.css
05:32 < Aco> hei mushon... no, no idea why. i did change some unicode converting stuff to export,
but it is there for like 3-4 days
05:33 < mushon> I didn't export since your last change
05:33 < mushon> was busy with other things as much as it may sound hard to believe ;)
05:36 < Aco> it does sound very hard to belive :)
05:39 < Aco> dies on page 34 for me
05:43 < Aco> hm... booki exports to objavi all chapters and their content. will look into it, but
might be that doug also changed something.
05:43 < Aco> i will have to test on other books also.
I think it always finishes in chapter 14, after the heading "Context and Conflict" (it stopped on different pages because they used different fonts and page sizes).
Change History
comment:1 Changed 3 years ago by douglas
comment:2 follow-up: ↓ 3 Changed 3 years ago by douglas
Aha. Booki shows the links as <tiny.booki.cc/?thedigitalgiven>.
Something along the way is dereferencing it!
That is the problem, I think.
comment:3 in reply to: ↑ 2 Changed 3 years ago by douglas
Replying to douglas:
Aha. Booki shows the links as <tiny.booki.cc/?thedigitalgiven>.
Something along the way is dereferencing it!
That is the problem, I think.
It seems like lxml is doing this as part of parsing the html, which seems rather beyond its remit.
comment:4 Changed 3 years ago by douglas
- Description modified (diff)
- Owner changed from douglas to mushon
- Status changed from new to assigned
It seems OK now, though I changed nothing.
Mushon: can you test it and close the bug?
comment:5 Changed 3 years ago by mushon
- Owner changed from mushon to douglas
Hi Doug, just tested and the bug persists :(
http://objavi.flossmanuals.net/books/collaborativefutures-en-2010.08.16-20.03.52.pdf
Would you look into it again?
(I am using this css: html://mushon.com/xtra/booki/cf_june2010.css on an A5 book)
comment:6 Changed 3 years ago by mushon
- Resolution set to fixed
- Status changed from assigned to closed
News: I found what was causing the bug.
This code found its way into chapter 14:
<style type="text/css"><!-- @page { margin: 0.79in } P { margin-bottom: 0.08in </style>
When I removed it the chapters exported well again :)
We might want to avoid this in future iterations though.

The problem is present when you try to convert the html on the command line, which points to the problem being within wkhtmltopdf, not objavi's handling of it.
Nothing related to this changed in Objavi or wkhtmltopdf. Wkhtmltopdf was compiled on July 7.
I compared ldd output with apt logs to see whether any libraries used by wkhtmltopdf might have changed. libpng had a seemingly unrelated security patch, but that is all.
Wkhtmltopdf doesn't report any error. It just stops rendering too soon.
This is pointing to there being something new in Collaborative Futures that wasn't there before and that breaks wkhtmltopdf with both Mushon's CSS and the standard CSS. Quite probably it is something on the next page after the last one rendered.
The first unrendered page contains a very long link, namely
This quite likely doesn't fit on the page, which could maybe break stuff. But is it new?