After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 611986 - [cairotextoverlay] Out-of-range deltas give SIGSEGV or other funkyness
[cairotextoverlay] Out-of-range deltas give SIGSEGV or other funkyness
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
0.10.18
Other Mac OS
: Normal minor
: 0.10.22
Assigned To: Sebastian Dröge (slomo)
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-03-06 11:50 UTC by Sjoerd Op 't Land
Modified: 2010-03-15 12:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
cairotextoverlay on videotestsrc where the y offset is out of bounds (25.30 KB, image/png)
2010-03-06 11:50 UTC, Sjoerd Op 't Land
Details

Description Sjoerd Op 't Land 2010-03-06 11:50:09 UTC
Created attachment 155403 [details]
cairotextoverlay on videotestsrc where the y offset is out of bounds

It seems that the delta parameters of the cairotextoverlay are not clipped to the frame size. On my OS, with deltax=0 and deltay=0, the text is centered at the bottom of the window. A small deltay is enough to get the text out of view, but still generating funkyness. You might need to adjust the deltay to see the same effect (please refer to the attachment).

gst-launch videotestsrc ! cairotextoverlay text="Hi there" deltay=35 ! ffmpegcolorspace ! ximagesink

In another launchline, this may even lead to illegal memory access (or so I suppose from the SIGSEGV signals):

gst-launch videotestsrc ! cairotextoverlay deltay=35 text="CAM1" ! video/x-raw-yuv, width=720, height=576 ! jpegenc ! jpegdec ! ffmpegcolorspace ! ximagesink

I hope it is not to difficult to clip the output of cairotextoverlay to a valid bounding rectangle.
Comment 1 Sebastian Dröge (slomo) 2010-03-15 12:42:25 UTC
commit a7a0afa5c4f9a98631b639998bbb3be91b00f978
Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>
Date:   Mon Mar 15 13:40:38 2010 +0100

    cairotextoverlay: Don't render text outside the frame boundaries
    
    Fixes bug #611986.