vikrambalye / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

crash, possibly newline related #382

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I get the following error.

Fatal error: Uncaught exception 'DOMPDF_Internal_Exception' with message 'Frame 
not found in cellmap' in 
/home/mike/fsc/dev/system/plugins/dompdf/include/cellmap.cls.php:262 Stack 
trace: #0 
/home/mike/fsc/dev/system/plugins/dompdf/include/table_row_group_frame_reflower.
cls.php(78): Cellmap->get_frame_width(Object(Table_Row_Group_Frame_Decorator)) 
#1 
/home/mike/fsc/dev/system/plugins/dompdf/include/frame_decorator.cls.php(387): 
Table_Row_Group_Frame_Reflower->reflow() #2 
/home/mike/fsc/dev/system/plugins/dompdf/include/table_frame_reflower.cls.php(46
8): Frame_Decorator->reflow() #3 
/home/mike/fsc/dev/system/plugins/dompdf/include/frame_decorator.cls.php(387): 
Table_Frame_Reflower->reflow() #4 
/home/mike/fsc/dev/system/plugins/dompdf/include/block_frame_reflower.cls.php(40
8): Frame_Decorator->reflow() #5 
/home/mike/fsc/dev/system/plugins/dompdf/include/frame_decorator.cls.php(387): 
Block_Frame_Reflower->reflow() #6 
/home/mike/fsc/dev/system/plugins/dompdf/include/page_frame_reflower.cls.php(78)
: Frame_Decorator->reflow() #7 in 
/home/mike/fsc/dev/system/plugins/dompdf/include/cellmap.cls.php on line 262

when using the attached HTML.

I know the test case seems odd, but I cannot attach the actual document that 
triggered this in my production environment as it was a confidential 
conversation (that's what this app does). I spent four hours today trying to 
reduce a 3 page conversation into some sort of simple test case hoping I would 
find some malformed HTML, there is not. 

I am thinking this has something to do with newlines, or perhaps this happens 
when one table cell exceeds the size of one page. but this really is just wild 
speculation on my part.

Original issue reported on code.google.com by Bobb...@gmail.com on 23 Nov 2011 at 7:39

Attachments:

GoogleCodeExporter commented 9 years ago
Your latter speculation is spot on. dompdf is currently unable to handle table 
cells that exceed the size of a page.

There's not much of a work-around right now beyond removing your content from 
the table. We're hoping to have a fix for the next release.

Original comment by eclecticgeek on 29 Nov 2011 at 6:39

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 30 May 2013 at 5:16