Cairo的多线程支持依旧不给力 - TBY's Blog


TBY posted @ 2013年2月01日 11:16 in 杂谈 with tags Cairo , 8370 阅读

用Haskell写了个小程序,整合了2种miRNA靶基因预测算法,并设计了图形化展示 方案,但发现性能瓶颈在Cairo绘制上,于是尝试并发写pdf,结果是令人沮丧的:


testIO: cairo-hash.c:506: _cairo_hash_table_lookup_exact_key: Assertion `!"reached"' failed.
尝试了替换forkIO为forkOS,bug依旧。Haskell程序难以获得完整的栈追踪信息,不过好在这是个assertion failure,有详细的提示,查阅了源文件以后,发现cairo使用了一个静态数据结构来计数。。。囧。。。要知道cairo 1.12.10的release note上可是提到了大幅改进多线程友好度的噢。



1. 2010年的:

2. 2013年的:



rca 说:
2013年2月02日 10:53

嗯,前段时间我用 poppler + cairo 的时候,也遇到了问题。两个线程分别将两份不同的 pdf 页面渲染为 cairo 图像时,程序就时不时的会崩掉。

cleaning services 说:
2022年1月26日 16:23

Although our housekeepers don’t give you the following companies, we can strongly suggest one of one's locally-owned organizations from our own network regarding trusted home companies. Visit to learn more.With a track record of clean homes and happy customers, DIALAMAID is your best choice for housekeeping services designed to fit your budget and schedule. We work closely with homeowners, rental property owners, and vacation homeowners to build a custom cleaning plan that fits their unique cleaning needs..

Cpanel Osmose Techno 说:
2022年8月08日 01:04

OSMOSE technology private ltd is a Pune-based organisation that provides multiple services platforms for individuals. Technology services such as gaming, eCommerce, social media platforms, and more similar are provided by OSMOSE technology. In this article we do bring some information about how to log in to the website and do bring some important information about these OSMOSE technology pvt ltd. Cpanel Osmose Technology Individuals have to visit the official cPanel page to access the services from this portal. the information technology company, engaged to develop and maintain networking applications, mobile applications, web-based applications, and they also undertake outsourcing services related to information technology to provide extended support to individuals.

BSEB Model Paper 说:
2022年9月10日 14:37

Bihar Board Model Paper 2023 Pdf Download for Bihar School Education Board Class 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 (Matric), Intermediate (Class 11th & 12th ) Question Paper to Hindi Medium, English Medium, Urdu Medium and others for Theory, Objective (MCQ) and Bit Questions. BSEB Model Paper New Exam Scheme or Question Pattern for Sammittive Assignment Exams (SA1 & SA2): Very Long Answer (VLA), Long Answer (LA), Small Answer (SA), Very Small Answer (VSA), Single Answer, Multiple Choice and etc.

登录 *

loading captcha image...
or Ctrl+Enter
Host by | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee