[Gtk-sharp-list] Pango warning

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


I am sorry, the mail before was send to early.

It seemed to be because I used multithreading, that i got the warnings,
after I have added locks and other stuff found here
http://www.mono-project.com/Responsive_Applications it seems to have fixed
the problem.


> 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
>



-- 
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/6d3234f1/attachment.html 


More information about the Gtk-sharp-list mailing list