darshanmodi2010 / dompdf

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

Concurrency problem with font subsetting #473

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Two clients generating PDF at a same time.

What is the expected output? What do you see instead?
PHP Fatal error:  Call to a member function getData() on a non-object in 
/dompdf/lib/class.pdf.php on line 2369

What version of dompdf are you using? What version of PHP? On what
operating system?
dompdf 0.6 beta 3
PHP 5.3.10
Linux

Please provide the HTML source code you want to convert, or any additional
information.

Original issue reported on code.google.com by ferofr...@gmail.com on 25 Apr 2012 at 4:14

GoogleCodeExporter commented 8 years ago
Hello, this really looks like a concurreny problem on the font subsetting 
feature.
The subsetted file is written in the fonts directory with a pattern like this : 

[original font name].tmp.[CRC32 of the subset]

But, if more than one document with the same character set are generated at the 
same time, they use the same file, locked by one of the processes.

I'll change it to take a random name.

Original comment by fabien.menager on 26 Apr 2012 at 12:06

GoogleCodeExporter commented 8 years ago

Original comment by eclecticgeek on 24 May 2013 at 3:00