mail-archives/mono-osx/2011-February/003996.html

86 строки
3.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-osx] Assertion failed: Cairo Reference Count - only on Mac
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20Assertion%20failed%3A%20Cairo%20Reference%20Count%20-%20only%20on%20Mac&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="003995.html">
<LINK REL="Next" HREF="003997.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-osx] Assertion failed: Cairo Reference Count - only on Mac</H1>
<B>Ashok Gelal</B>
<A HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20Assertion%20failed%3A%20Cairo%20Reference%20Count%20-%20only%20on%20Mac&In-Reply-To="
TITLE="[Mono-osx] Assertion failed: Cairo Reference Count - only on Mac">ashokgelal at gmail.com
</A><BR>
<I>Wed Feb 9 14:08:23 EST 2011</I>
<P><UL>
<LI>Previous message: <A HREF="003995.html">[Mono-osx] Cairo Bug/Crash Demo Test Solution
</A></li>
<LI>Next message: <A HREF="003997.html">[Mono-osx] Assertion failed: Cairo Reference Count - only on Mac
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3996">[ date ]</a>
<a href="thread.html#3996">[ thread ]</a>
<a href="subject.html#3996">[ subject ]</a>
<a href="author.html#3996">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>This seems to work! This is unbelievable! Spent a month on trying to fix
this silly bug, and replacing Cairo's ShowText with Pango's ShowLayout was
all it needed.
Thank you Felix. You are a life saver! I owe you a coffee or two ;)
PS: This is just a workaround, the bug still exists on Cairo part. I will
file a bug report and will also post this workaround so that anyone looking
for an alternative solution doesn't have to spend 1 month or so.
Thanks,
Ashok
Hi Ashok,
I've hit the same problem in a student project. We figured out that this bug
can be avoided by rendering text using Pango instead of
Cairo.Context.ShowText.
Cheers,
Felix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <A HREF="http://lists.ximian.com/pipermail/mono-osx/attachments/20110209/13cbb13f/attachment.html">http://lists.ximian.com/pipermail/mono-osx/attachments/20110209/13cbb13f/attachment.html</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="003995.html">[Mono-osx] Cairo Bug/Crash Demo Test Solution
</A></li>
<LI>Next message: <A HREF="003997.html">[Mono-osx] Assertion failed: Cairo Reference Count - only on Mac
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3996">[ date ]</a>
<a href="thread.html#3996">[ thread ]</a>
<a href="subject.html#3996">[ subject ]</a>
<a href="author.html#3996">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-osx">More information about the Mono-osx
mailing list</a><br>
</body></html>