prince-9.0r5-macosx Segmentation Fault:11
Hello,
I just downloaded and installed prince-9.0r5-macosx using the included install.sh script. When I attempt to convert a 67M .html document to a pdf using the following line, I get a seg fault:11. No further details are outputted. This is on OS X 10.9.4, 1.3 Intel Core i5, 4GB.
I'm trying to evaluate your product to be used for our production environment, but cannot get passed this error.
Any advice is helpful.
$ time prince -v 213661.html -o prince/213661.pdf
prince: Loading document...
prince: loading HTML5 input: 213661.html
prince: loading document: 213661.html
Segmentation fault: 11
real 0m5.524s
user 0m4.688s
sys 0m0.302s
$ du -sh 213661.html
67M 213661.html
What is the last log output if you re-run with --debug enabled?
Does it work as expected on smaller documents?
Below is debug output
$ time prince -v --debug 213661.html -o prince/213661.pdf
prince: debug: loading license: /usr/local/lib/prince/license/license.dat
prince: debug: enumerate font families
prince: debug: font scan: .Aqua Kana
prince: debug: font scan: .Helvetica LT MM
prince: debug: font scan: .Helvetica Neue Desk UI
prince: debug: font scan: .Keyboard
prince: debug: font scan: .Lucida Grande UI
prince: debug: font scan: .Savoye LET CC.
prince: debug: font scan: .Times LT MM
prince: debug: font scan: Abadi MT Condensed Extra Bold
prince: debug: font scan: Abadi MT Condensed Light
prince: debug: font scan: Adobe Arabic
prince: debug: font scan: Adobe Caslon Pro
prince: debug: font scan: Adobe Devanagari
prince: debug: font scan: Adobe Fan Heiti Std
prince: debug: font scan: Adobe Fangsong Std
prince: debug: font scan: Adobe Garamond Pro
prince: debug: font scan: Adobe Gothic Std
prince: debug: font scan: Adobe Hebrew
prince: debug: font scan: Adobe Heiti Std
prince: debug: font scan: Adobe Kaiti Std
prince: debug: font scan: Adobe Ming Std
prince: debug: font scan: Adobe Myungjo Std
prince: debug: font scan: Adobe Naskh
prince: debug: font scan: Adobe Song Std
prince: debug: font scan: Al Bayan
prince: debug: font scan: Al Nile
prince: debug: font scan: Al Tarikh
prince: debug: font scan: American Typewriter
prince: debug: font scan: Andale Mono
prince: debug: font scan: Apple Braille
prince: debug: font scan: Apple Chancery
prince: debug: font scan: Apple Color Emoji
prince: debug: font scan: Apple LiGothic
prince: debug: font scan: Apple LiSung
prince: debug: font scan: Apple SD Gothic Neo
prince: debug: font scan: Apple Symbols
prince: debug: font scan: AppleGothic
prince: debug: font scan: AppleMyungjo
prince: debug: font scan: Arial
prince: debug: font scan: Arial Black
prince: debug: font scan: Arial Hebrew
prince: debug: font scan: Arial Narrow
prince: debug: font scan: Arial Rounded MT Bold
prince: debug: font scan: Arial Unicode MS
prince: debug: font scan: Athelas
prince: debug: font scan: Avenir
prince: debug: font scan: Avenir Next
prince: debug: font scan: Avenir Next Condensed
prince: debug: font scan: Ayuthaya
prince: debug: font scan: Baghdad
prince: debug: font scan: Bangla MN
prince: debug: font scan: Bangla Sangam MN
prince: debug: font scan: Baoli SC
prince: debug: font scan: Baskerville
prince: debug: font scan: Baskerville Old Face
prince: debug: font scan: Batang
prince: debug: font scan: Bauhaus 93
prince: debug: font scan: Beirut
prince: debug: font scan: Bell MT
prince: debug: font scan: Bernard MT Condensed
prince: debug: font scan: BiauKai
prince: debug: font scan: Big Caslon
prince: debug: font scan: Birch Std
prince: debug: font scan: Blackoak Std
prince: debug: font scan: Book Antiqua
prince: debug: font scan: Bookman Old Style
prince: debug: font scan: Bookshelf Symbol 7
prince: debug: font scan: Braggadocio
prince: debug: font scan: Britannic Bold
prince: debug: font scan: Brush Script MT
prince: debug: font scan: Brush Script Std
prince: debug: font scan: Calibri
prince: debug: font scan: Calisto MT
prince: debug: font scan: Cambria
prince: debug: font scan: Cambria Math
prince: debug: font scan: Candara
prince: debug: font scan: Century
prince: debug: font scan: Century Gothic
prince: debug: font scan: Century Schoolbook
prince: debug: font scan: Chalkboard
prince: debug: font scan: Chalkboard SE
prince: debug: font scan: Chalkduster
prince: debug: font scan: Chaparral Pro
prince: debug: font scan: Charcoal CY
prince: debug: font scan: Charlemagne Std
prince: debug: font scan: Charter
prince: debug: font scan: Cochin
prince: debug: font scan: Colonna MT
prince: debug: font scan: Comic Sans MS
prince: debug: font scan: Consolas
prince: debug: font scan: Constantia
prince: debug: font scan: Cooper Black
prince: debug: font scan: Cooper Std
prince: debug: font scan: Copperplate
prince: debug: font scan: Copperplate Gothic Bold
prince: debug: font scan: Copperplate Gothic Light
prince: debug: font scan: Corbel
prince: debug: font scan: Corsiva Hebrew
prince: debug: font scan: Courier
prince: debug: font scan: Courier New
prince: debug: font scan: Curlz MT
prince: debug: font scan: Damascus
prince: debug: font scan: DecoType Naskh
prince: debug: font scan: Desdemona
prince: debug: font scan: Devanagari MT
prince: debug: font scan: Devanagari Sangam MN
prince: debug: font scan: Didot
prince: debug: font scan: DIN Alternate
prince: debug: font scan: DIN Condensed
prince: debug: font scan: Diwan Kufi
prince: debug: font scan: Diwan Thuluth
prince: debug: font scan: Edwardian Script ITC
prince: debug: font scan: Engravers MT
prince: debug: font scan: Euphemia UCAS
prince: debug: font scan: Eurostile
prince: debug: font scan: Farah
prince: debug: font scan: Farisi
prince: debug: font scan: Footlight MT Light
prince: debug: font scan: Franklin Gothic Book
prince: debug: font scan: Franklin Gothic Medium
prince: debug: font scan: Futura
prince: debug: font scan: Gabriola
prince: debug: font scan: Garamond
prince: debug: font scan: GB18030 Bitmap
prince: debug: font scan: Geeza Pro
prince: debug: font scan: Geneva
prince: debug: font scan: Geneva CY
prince: debug: font scan: Georgia
prince: debug: font scan: Giddyup Std
prince: debug: font scan: Gill Sans
prince: debug: font scan: Gill Sans MT
prince: debug: font scan: Gloucester MT Extra Condensed
prince: debug: font scan: Goudy Old Style
prince: debug: font scan: Gujarati MT
prince: debug: font scan: Gujarati Sangam MN
prince: debug: font scan: Gulim
prince: debug: font scan: GungSeo
prince: debug: font scan: Gurmukhi MN
prince: debug: font scan: Gurmukhi MT
prince: debug: font scan: Gurmukhi Sangam MN
prince: debug: font scan: Haettenschweiler
prince: debug: font scan: Hannotate SC
prince: debug: font scan: Hannotate TC
prince: debug: font scan: HanziPen SC
prince: debug: font scan: HanziPen TC
prince: debug: font scan: Harrington
prince: debug: font scan: HeadLineA
prince: debug: font scan: Hei
prince: debug: font scan: Heiti SC
prince: debug: font scan: Heiti TC
prince: debug: font scan: Helvetica
prince: debug: font scan: Helvetica CY
prince: debug: font scan: Helvetica Neue
prince: debug: font scan: Herculanum
prince: debug: font scan: Hiragino Kaku Gothic Pro
prince: debug: font scan: Hiragino Kaku Gothic ProN
prince: debug: font scan: Hiragino Kaku Gothic Std
prince: debug: font scan: Hiragino Kaku Gothic StdN
prince: debug: font scan: Hiragino Maru Gothic Pro
prince: debug: font scan: Hiragino Maru Gothic ProN
prince: debug: font scan: Hiragino Mincho Pro
prince: debug: font scan: Hiragino Mincho ProN
prince: debug: font scan: Hiragino Sans GB
prince: debug: font scan: Hobo Std
prince: debug: font scan: Hoefler Text
prince: debug: font scan: Impact
prince: debug: font scan: Imprint MT Shadow
prince: debug: font scan: InaiMathi
prince: debug: font scan: Iowan Old Style
prince: debug: font scan: Kai
prince: debug: font scan: Kailasa
prince: debug: font scan: Kaiti SC
prince: debug: font scan: Kaiti TC
prince: debug: font scan: Kannada MN
prince: debug: font scan: Kannada Sangam MN
prince: debug: font scan: Kefa
prince: debug: font scan: Khmer MN
prince: debug: font scan: Khmer Sangam MN
prince: debug: font scan: Kino MT
prince: debug: font scan: Kokonor
prince: debug: font scan: Kozuka Gothic Pr6N
prince: debug: font scan: Kozuka Gothic Pro
prince: debug: font scan: Kozuka Mincho Pr6N
prince: debug: font scan: Kozuka Mincho Pro
prince: debug: font scan: Krungthep
prince: debug: font scan: KufiStandardGK
prince: debug: font scan: Lantinghei SC
prince: debug: font scan: Lantinghei TC
prince: debug: font scan: Lao MN
prince: debug: font scan: Lao Sangam MN
prince: debug: font scan: LastResort
prince: debug: font scan: Letter Gothic Std
prince: debug: font scan: Libian SC
prince: debug: font scan: LiHei Pro
prince: debug: font scan: LiSong Pro
prince: debug: font scan: Lithos Pro
prince: debug: font scan: Lucida Blackletter
prince: debug: font scan: Lucida Bright
prince: debug: font scan: Lucida Calligraphy
prince: debug: font scan: Lucida Console
prince: debug: font scan: Lucida Fax
prince: debug: font scan: Lucida Grande
prince: debug: font scan: Lucida Handwriting
prince: debug: font scan: Lucida Sans
prince: debug: font scan: Lucida Sans Typewriter
prince: debug: font scan: Lucida Sans Unicode
prince: debug: font scan: Malayalam MN
prince: debug: font scan: Malayalam Sangam MN
prince: debug: font scan: Marion
prince: debug: font scan: Marker Felt
prince: debug: font scan: Marlett
prince: debug: font scan: Matura MT Script Capitals
prince: debug: font scan: Meiryo
prince: debug: font scan: Menlo
prince: debug: font scan: Mesquite Std
prince: debug: font scan: Microsoft Himalaya
prince: debug: font scan: Microsoft Sans Serif
prince: debug: font scan: Microsoft Tai Le
prince: debug: font scan: Microsoft Yi Baiti
prince: debug: font scan: MingLiU
prince: debug: font scan: MingLiU-ExtB
prince: debug: font scan: MingLiU_HKSCS
prince: debug: font scan: MingLiU_HKSCS-ExtB
prince: debug: font scan: Minion Pro
prince: debug: font scan: Mishafi
prince: debug: font scan: Mistral
prince: debug: font scan: Modern No. 20
prince: debug: font scan: Monaco
prince: debug: font scan: Mongolian Baiti
prince: debug: font scan: Monotype Corsiva
prince: debug: font scan: Monotype Sorts
prince: debug: font scan: MS Gothic
prince: debug: font scan: MS Mincho
prince: debug: font scan: MS PGothic
prince: debug: font scan: MS PMincho
prince: debug: font scan: MS Reference Sans Serif
prince: debug: font scan: MS Reference Specialty
prince: debug: font scan: Mshtakan
prince: debug: font scan: MT Extra
prince: debug: font scan: Muna
prince: debug: font scan: Myanmar MN
prince: debug: font scan: Myanmar Sangam MN
prince: debug: font scan: Myriad Arabic
prince: debug: font scan: Myriad Hebrew
prince: debug: font scan: Myriad Pro
prince: debug: font scan: Nadeem
prince: debug: font scan: Nanum Brush Script
prince: debug: font scan: Nanum Gothic
prince: debug: font scan: Nanum Myeongjo
prince: debug: font scan: Nanum Pen Script
prince: debug: font scan: New Peninim MT
prince: debug: font scan: News Gothic MT
prince: debug: font scan: Noteworthy
prince: debug: font scan: Nueva Std
prince: debug: font scan: OCR A Std
prince: debug: font scan: Onyx
prince: debug: font scan: Optima
prince: debug: font scan: Orator Std
prince: debug: font scan: Oriya MN
prince: debug: font scan: Oriya Sangam MN
prince: debug: font scan: Osaka
prince: debug: font scan: Palatino
prince: debug: font scan: Palatino Linotype
prince: debug: font scan: Papyrus
prince: debug: font scan: PCMyungjo
prince: debug: font scan: Perpetua
prince: debug: font scan: Perpetua Titling MT
prince: debug: font scan: PilGi
prince: debug: font scan: Plantagenet Cherokee
prince: debug: font scan: Playbill
prince: debug: font scan: PMingLiU
prince: debug: font scan: PMingLiU-ExtB
prince: debug: font scan: Poplar Std
prince: debug: font scan: Prestige Elite Std
prince: debug: font scan: PT Mono
prince: debug: font scan: PT Sans
prince: debug: font scan: PT Sans Caption
prince: debug: font scan: PT Sans Narrow
prince: debug: font scan: PT Serif
prince: debug: font scan: PT Serif Caption
prince: debug: font scan: Raanana
prince: debug: font scan: Rockwell
prince: debug: font scan: Rockwell Extra Bold
prince: debug: font scan: Rosewood Std
prince: debug: font scan: Sana
prince: debug: font scan: Sathu
prince: debug: font scan: Savoye LET
prince: debug: font scan: Seravek
prince: debug: font scan: Silom
prince: debug: font scan: SimHei
prince: debug: font scan: SimSun
prince: debug: font scan: SimSun-ExtB
prince: debug: font scan: Sinhala MN
prince: debug: font scan: Sinhala Sangam MN
prince: debug: font scan: Skia
prince: debug: font scan: Snell Roundhand
prince: debug: font scan: Songti SC
prince: debug: font scan: Songti TC
prince: debug: font scan: Stencil
prince: debug: font scan: Stencil Std
prince: debug: font scan: STFangsong
prince: debug: font scan: STHeiti
prince: debug: font scan: STIXGeneral
prince: debug: font scan: STIXIntegralsD
prince: debug: font scan: STIXIntegralsSm
prince: debug: font scan: STIXIntegralsUp
prince: debug: font scan: STIXIntegralsUpD
prince: debug: font scan: STIXIntegralsUpSm
prince: debug: font scan: STIXNonUnicode
prince: debug: font scan: STIXSizeFiveSym
prince: debug: font scan: STIXSizeFourSym
prince: debug: font scan: STIXSizeOneSym
prince: debug: font scan: STIXSizeThreeSym
prince: debug: font scan: STIXSizeTwoSym
prince: debug: font scan: STIXVariants
prince: debug: font scan: STKaiti
prince: debug: font scan: STSong
prince: debug: font scan: Superclarendon
prince: debug: font scan: Symbol
prince: debug: font scan: Tahoma
prince: debug: font scan: Tamil MN
prince: debug: font scan: Tamil Sangam MN
prince: debug: font scan: Tekton Pro
prince: debug: font scan: Telugu MN
prince: debug: font scan: Telugu Sangam MN
prince: debug: font scan: Thonburi
prince: debug: font scan: Times
prince: debug: font scan: Times New Roman
prince: debug: font scan: Trajan Pro
prince: debug: font scan: Trebuchet MS
prince: debug: font scan: Tw Cen MT
prince: debug: font scan: Verdana
prince: debug: font scan: Waseem
prince: debug: font scan: Wawati SC
prince: debug: font scan: Wawati TC
prince: debug: font scan: Webdings
prince: debug: font scan: Weibei SC
prince: debug: font scan: Weibei TC
prince: debug: font scan: Wide Latin
prince: debug: font scan: Wingdings
prince: debug: font scan: Wingdings 2
prince: debug: font scan: Wingdings 3
prince: debug: font scan: Xingkai SC
prince: debug: font scan: Yuanti SC
prince: debug: font scan: YuGothic
prince: debug: font scan: YuMincho
prince: debug: font scan: Yuppy SC
prince: debug: font scan: Yuppy TC
prince: debug: font scan: Zapf Dingbats
prince: debug: font scan: Zapfino
prince: loading style sheet: /usr/local/lib/prince/style/fonts.css
prince: debug: loaded resource: /usr/local/lib/prince/style/fonts.css
prince: debug: loaded resource: type: no
prince: Loading document...
prince: loading HTML5 input: 213661.html
prince: loading document: 213661.html
prince: debug: loaded resource: 213661.html
prince: debug: loaded resource: type: no
Segmentation fault: 11
real 0m4.664s
user 0m4.094s
sys 0m0.236s
Very interesting. Would you be able to email me (mikeday@yeslogic.com) a document that causes the problem? Or make it available in some other way, if it is too big to email?
I don't know if I can send the document because it contains client data. Can you generate a large 67-68M HTML file and run prince against that?
Yes, however then it doesn't fail.
Perhaps you could anonymise the document by replacing the text with "x"? The actual text should not matter, just the structure of the elements and attributes.
I can also send you a script or XSLT transform that can blank out the text, if you like.