GNOME Bugzilla – Bug 314897
xvimagesink segfault
Last modified: 2006-03-05 21:34:26 UTC
$ ~/Projects/GStreamer/gstreamer/tools/gst-launch-0.9 videotestsrc ! video/x-raw-yuv,width=2000,height=15000 ! xvimagesink PAUSE pipeline ... Segmentation fault Same problem exists in 0.8; always occurs if input is larger than screensize (= framebuffersize). Xvimagesink probably needs an upper limit in its getcaps return value. Does not apply to ximagesink, it works just fine.
$ ~/Projects/GStreamer/gstreamer/tools/gst-launch-0.9 videotestsrc ! video/x-raw-yuv,width=2000,height=1500 ! xvimagesink PAUSE pipeline ... X Error of failed request: BadAlloc (insufficient resources for operation) Major opcode of failed request: 140 (XVideo) Minor opcode of failed request: 19 () Serial number of failed request: 40 Current serial number in output stream: 41 Without the typo...
I can confirm the bug: command line: GST_DEBUG=xvimagesink:5 ~/Sorgenti/devel/gstreamer/tools/gst-launch-0.8 videotestsrc ! video/x-raw-yuv,format=\(fourcc\)I420,width=2424,height=2600,framerate=1.0 ! xvimagesink output: ... LOG (0x80508d8 - 313063:44:22.388428000) xvimagesink( 8474) xvimagesink.c(198):gst_xvimagesink_xvimage_new:<xvimagesink0> creating 2424x2600 LOG (0x80508d8 - 313063:44:22.389062000) xvimagesink( 8474) xvimagesink.c(223):gst_xvimagesink_xvimage_new:<xvimagesink0> XShm image size is 1572864 ... So x.org (6.8.2) returns an image smaller than what we have requested. It seems a xorg issue.. I'll ask on the xorg mailing list. btw, i'm using the tdfx driver.
btw, if i encode the big video and then play it with mplayer and xine they both segfaults.
*** Bug 313832 has been marked as a duplicate of this bug. ***
It doesn't segfault anymore now. Closing.. it seems an upstream issue to me. mplayer and xine doesn't work either. If they work for you then reopen the bug! thanks!
Re-opening - this bug is back in current CVS: gst-launch-0.10 videotestsrc \! video/x-raw-yuv,width=2000,height=15000 \! xvimagesink Adding back something like patch http://bugzilla.gnome.org/attachment.cgi?id=51843&action=view (from Bug 315312) will probably help both bugs.
Created attachment 60713 [details] [review] Check created xvimage size.
Created attachment 60716 [details] [review] Check for memcpy images as well
Patch applied, Fixed in CVS HEAD