[Gtk-sharp-list] Pango warning

Søren Juul zpon.dk at gmail.com
Wed Apr 9 09:02:49 EDT 2008


It seemed to be because i used multithreading, after i have added locks and
other stuff

2008/4/8, Søren Juul <zpon.dk at gmail.com>:
>
> Hello
>
> I am using pango change the layout of some labels:
>
> Label urlLaben = null;
> Pango.FontDescription font_desc = null;
> font_desc = Pango.FontDescription.FromString ("sans 11 bold");
> urlLabel = new Label("n/a");
> urlLabel.ModifyFont(font_desc);
> urlLabel.SetAlignment(0.0f, 1.0f);
>
> But when the application has been running for a short while i get a pango
> warning and the application dies.
>
> (mml:10381): Pango-WARNING **: Invalid UTF-8 string passed to
> pango_layout_set_text()
>
> (mml:10381): Pango-WARNING **: shaping failure, expect ugly output.
> shape-engine='BasicEngineFc', font='DejaVu Sans 8', text=''
> Stacktrace:
>
> Segmentation fault (core dumped)
>
>
> Why is this, and what can be done about it? The labels text are updated
> regularly (about once a second), can this be part of the problem?
> --
> Med venlig hilsen / Kind regards
> Søren Juul




-- 
Med venlig hilsen / Kind regards
Søren Juul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080409/fbc909b5/attachment.html 


More information about the Gtk-sharp-list mailing list