[cairo] concurrent text rendering issue
Kozhevnikov Mikhail
mikhailkozhevnikov at yandex.ru
Sun Mar 28 12:08:59 PDT 2010
Hi All,
I'm getting an error when renderig text concurrently on Windows.
Here's the experiment: we render repeatedly a set of letters in different font sizes. Neither letters, nor font sizes change from iteration to iteration. If we do it with one thread, it works fine and we get consistent results. If we use more of them, the output varies - some letters are missing. Sometimes an out of memory error is reported. See the sample images and code attached (only unique images are stored).
I've found out that it only happens on Windows. Thus I suspect that this issue has to do with WinAPI font selection mechanism. For example, if we confine ourselves to one single font size, we wouldn't experience any problems.
Could anyone suggest a way to fix that? Should it be considered a bug at all?
Thanks in advance,
Mikhail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: png.zip
Type: application/zip
Size: 105128 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100328/4ecea1d1/attachment-0001.zip>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: conctest.cpp
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100328/4ecea1d1/attachment-0001.asc>
More information about the cairo
mailing list