Project

General

Profile

Bug #1714

Segfault when rendering image to pdf

Added by Anonymous over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
02/23/2013
Due date:
% Done:

0%

Estimated time:

Description

Passing the following HTML to render():

leads to a segmentation fault with the following stacktrace:

#0 Wt::Render::Block::cssTextAlign (this=0x0) at Wt/Render/Block.C:1950

#1 0x0000000000581a89 in Wt::Render::Block::cssTextAlign (this=this@entry=0x7ffff4eabb90) at Wt/Render/Block.C:1978

#2 0x0000000000585642 in Wt::Render::Block::layoutBlock (this=0x7ffff4eabb90, ps=..., canIncreaseWidth=, renderer=..., collapseMarginTop=1.7976931348623157e+308,

collapseMarginBottom=0, cellHeight=) at Wt/Render/Block.C:1583

#3 0x00000000004e79f9 in Wt::Render::WTextRenderer::render (this=0x7ffff4ebbd20, text=..., y=) at WTextRenderer.C:94

See also http://sourceforge.net/mailarchive/message.php?msg_id=30521720

#1

Updated by Koen Deforche over 7 years ago

  • Status changed from New to Resolved
  • Assignee set to Koen Deforche
  • Target version set to 3.3.0

Hey,

I've fixed this. You also try the following as a workaround: wrap the img in a

(or any other block level element).

Regards,

koen

#2

Updated by Koen Deforche over 7 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF