Pango errors?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Pango errors?

wally_bkg
Any idea how to fix these?  I'm getting these "randomly" a third or fourth time I run my program on some systems:

Pango-WARNING **: failed to create cairo scaled font, expect ugly output. the offending font is 'DejaVu Sans Mono 18'
**
Pango:ERROR:/build/buildd/pango1.0-1.28.0/pango/pango-ot-buffer.c:346:pango_ot_buffer_output: assertion failed: (face)

(rtEyeTracker:1899): Pango-WARNING **: font_face status is: invalid matrix (not invertible)

(rtEyeTracker:1899): Pango-WARNING **: scaled_font status is: invalid matrix (not invertible)
Aborted

I'm using three gsttimeoverly elements and setting some static text labels using the "text" properties of the elements. I'm using default fonts and sizes.

It seems pretty random as usually when  restarting the program it doesn't happen next time.  Is there something I need to do when shutting down my pipeline to prevent this the next time the program runs?


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Pango errors?

Stefan Sauer
On 08/31/11 14:45, wally bkg wrote:
Any idea how to fix these?  I'm getting these "randomly" a third or fourth time I run my program on some systems:

Pango-WARNING **: failed to create cairo scaled font, expect ugly output. the offending font is 'DejaVu Sans Mono 18'

One thing to do is to use a colon to delimit name and size. 'DejaVu Sans Mono,18'.

Stefan
**
Pango:ERROR:/build/buildd/pango1.0-1.28.0/pango/pango-ot-buffer.c:346:pango_ot_buffer_output: assertion failed: (face)

(rtEyeTracker:1899): Pango-WARNING **: font_face status is: invalid matrix (not invertible)

(rtEyeTracker:1899): Pango-WARNING **: scaled_font status is: invalid matrix (not invertible)
Aborted

I'm using three gsttimeoverly elements and setting some static text labels using the "text" properties of the elements. I'm using default fonts and sizes.

It seems pretty random as usually when  restarting the program it doesn't happen next time.  Is there something I need to do when shutting down my pipeline to prevent this the next time the program runs?

_______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Pango errors?

wally_bkg
Stefan Kost wrote
On 08/31/11 14:45, wally bkg wrote:
> Any idea how to fix these?  I'm getting these "randomly" a third or
> fourth time I run my program on some systems:
>
> Pango-WARNING **: failed to create cairo scaled font, expect ugly
> output. the offending font is 'DejaVu Sans Mono 18'

One thing to do is to use a colon to delimit name and size. 'DejaVu Sans
Mono,18'.

Stefan
Thanks, but I'm not clear on where I'd do this as I'm just using the default font and size, so presumably

'DejaVu Sans Mono,18' is the default font.

All I'm doing is:

    g_assert( tover = gst_element_factory_make ("timeoverlay", "tover"));
    g_object_set (G_OBJECT (tover), "halign", "right", NULL); // set overlay properties
    g_object_set (G_OBJECT (tover), "valign", "top", NULL);
    g_object_set (G_OBJECT (tover), "text", "R:", NULL);
    g_object_set (G_OBJECT (tover), "ypad", 0, NULL);

    g_assert( tover1 = gst_element_factory_make ("timeoverlay", "tover1"));
    g_object_set (G_OBJECT (tover1), "halign", "right", NULL);
    g_object_set (G_OBJECT (tover1), "valign", "top", NULL);
    g_object_set (G_OBJECT (tover1), "text", "L:", NULL);
    g_object_set (G_OBJECT (tover1), "ypad", 0, NULL);

    g_assert( tover2 = gst_element_factory_make ("timeoverlay", "tover2"));
    g_object_set (G_OBJECT (tover2), "ypad", 0, NULL);
    g_object_set (G_OBJECT (tover2), "text", "  Stream:", NULL);

Is the default font system dependent?  I've never seen the issue on some systems at all.  What would be the safest font to use?  I've never really cared about fonts as long as its readable.

Reply | Threaded
Open this post in threaded view
|

Re: Pango errors?

Stefan Sauer
On 08/31/11 21:04, wally_bkg wrote:

> Stefan Kost wrote:
>> On 08/31/11 14:45, wally bkg wrote:
>>> Any idea how to fix these?  I'm getting these "randomly" a third or
>>> fourth time I run my program on some systems:
>>>
>>> Pango-WARNING **: failed to create cairo scaled font, expect ugly
>>> output. the offending font is 'DejaVu Sans Mono 18'
>> One thing to do is to use a colon to delimit name and size. 'DejaVu Sans
>> Mono,18'.
>>
>> Stefan
>>
> Thanks, but I'm not clear on where I'd do this as I'm just using the default
> font and size, so presumably
>
> 'DejaVu Sans Mono,18' is the default font.
I see, that weird then.
> All I'm doing is:
>
>     g_assert( tover = gst_element_factory_make ("timeoverlay", "tover"));
>     g_object_set (G_OBJECT (tover), "halign", "right", NULL); // set overlay
> properties
>     g_object_set (G_OBJECT (tover), "valign", "top", NULL);
>     g_object_set (G_OBJECT (tover), "text", "R:", NULL);
>     g_object_set (G_OBJECT (tover), "ypad", 0, NULL);

btw. do multiple sets in one go, thats faster.

g_object_set (G_OBJECT (tover), "halign", "right",
                                "valign", "top",
                               ...
                               NULL);


Stefan

>     g_assert( tover1 = gst_element_factory_make ("timeoverlay", "tover1"));
>     g_object_set (G_OBJECT (tover1), "halign", "right", NULL);
>     g_object_set (G_OBJECT (tover1), "valign", "top", NULL);
>     g_object_set (G_OBJECT (tover1), "text", "L:", NULL);
>     g_object_set (G_OBJECT (tover1), "ypad", 0, NULL);
>
>     g_assert( tover2 = gst_element_factory_make ("timeoverlay", "tover2"));
>     g_object_set (G_OBJECT (tover2), "ypad", 0, NULL);
>     g_object_set (G_OBJECT (tover2), "text", "  Stream:", NULL);
>
> Is the default font system dependent?  I've never seen the issue on some
> systems at all.  What would be the safest font to use?  I've never really
> cared about fonts as long as its readable.
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Pango-errors-tp3780879p3781930.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel