GNOME Bugzilla – Bug 362228
Istanbul craches when clicking to stop the recorder
Last modified: 2007-04-16 16:33:14 UTC
Steps to reproduce: 1. It starts well, the settings work, it starts to record, but when i click to stop is craches (as user or root). It says that it "could not link videorate0 to ffmpegcsp0" Please see the console output. Stack trace: [root@p3x ~]# istanbul DEBUG: final pipeline: istximagesrc name=videosource show-pointer=false ! video/x-raw-rgb,framerate=10/1 ! videorate ! ffmpegcolorspace ! videoscale method=1 ! video/x-raw-yuv,width=1280,height=800,framerate=10/1 ! theoraenc ! oggmux name=mux ! filesink location=/tmp/tmpqP81_f Traceback (most recent call last):
+ Trace 76347
self.current_screencast.start_recording()
self._pipeline = gst.parse_launch(final_pipeline)
Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/istanbul/main/tray_icon.py", line 62, in _trayicon_clicked self.current_screencast.stop_recording() File "/usr/lib/python2.4/site-packages/istanbul/main/screencast.py", line 136, in stop_recording self._vsource.set_state(gst.STATE_NULL) AttributeError: Screencast instance has no attribute '_vsource' Traceback (most recent call last): File "/usr/bin/istanbul", line 40, in ? sys.exit(main.main(sys.argv)) File "/usr/lib/python2.4/site-packages/istanbul/main/main.py", line 86, in main gtk.main() KeyboardInterrupt [root@p3x ~]# Other information: I'm using FC6
I guess this is a gstreamer problem.
The _vsource property is set in start_recording, so it should be there in stop_recording as well. Could you provide the versions of all relevant packages you're using, as well as the output of gst-inspect (please attach it since it's likely to be quite large).
This is the gst-inspect: [p3x@p3x ~]$ gst-inspect istximagesrc: istximagesrc: Ximage video source 1394: dv1394src: Firewire (1394) DV video source jpeg: jpegenc: JPEG image encoder jpeg: jpegdec: JPEG image decoder jpeg: smokeenc: Smoke video encoder jpeg: smokedec: Smoke video decoder rtsp: rtspsrc: RTSP packet receiver rtsp: rtpdec: RTP Decoder flac: flacenc: FLAC audio encoder flac: flacdec: FLAC audio decoder smpte: smpte: SMPTE transitions speex: speexenc: Speex audio encoder speex: speexdec: Speex audio decoder wavparse: wavparse: WAV audio demuxer ossaudio: ossmixer: OSS Mixer ossaudio: osssrc: Audio Source (OSS) ossaudio: osssink: Audio Sink (OSS) alpha: alpha: Alpha filter rtp: rtpdepay: RTP payloader rtp: rtpgsmdepay: RTP packet parser rtp: rtpgsmpay: RTP GSM audio payloader rtp: rtpamrdepay: RTP packet parser rtp: rtpamrpay: RTP packet parser rtp: rtppcmadepay: RTP packet parser rtp: rtppcmudepay: RTP packet parser rtp: rtppcmupay: RTP packet parser rtp: rtppcmapay: RTP packet parser rtp: rtpmpadepay: RTP packet parser rtp: rtpmpapay: RTP packet parser rtp: rtph263ppay: RTP packet parser rtp: rtph263pdepay: RTP packet parser rtp: rtph263pay: RTP packet parser rtp: asteriskh263: RTP packet parser rtp: rtpmp2tdepay: RTP packet parser rtp: rtpmp4vpay: RTP packet parser rtp: rtpmp4vdepay: RTP packet parser rtp: rtpmp4gdepay: RTP packet parser rtp: rtpmp4gpay: RTP packet parser rtp: rtpspeexpay: RTP packet parser rtp: rtpspeexdepay: RTP packet parser gconfelements: gconfvideosink: GConf video sink gconfelements: gconfvideosrc: GConf video source gconfelements: gconfaudiosink: GConf audio sink gconfelements: gconfaudiosrc: GConf audio source apetag: apedemux: APE tag demuxer effectv: edgetv: EdgeTV effect effectv: agingtv: AgingTV effect effectv: dicetv: DiceTV effect effectv: warptv: WarpTV effect effectv: shagadelictv: ShagadelicTV effectv: vertigotv: VertigoTV effect effectv: revtv: RevTV effect effectv: quarktv: QuarkTV effect videobalance: videobalance: Video balance multipart: multipartdemux: Multipart demuxer multipart: multipartmux: Multipart muxer efence: efence: Electric Fence flxdec: flxdec: FLX audio decoder alphacolor: alphacolor: Alpha color filter annodex: cmmlenc: CMML streams encoder annodex: cmmldec: CMML stream decoder wavenc: wavenc: WAV audio muxer mulaw: mulawenc: Mu Law audio encoder mulaw: mulawdec: Mu Law audio decoder debug: breakmydata: Break my data debug: navseek: Seek based on left-right arrows debug: progressreport: Progress report debug: testsink: Test plugin videomixer: videomixer: Video mixer navigationtest: navigationtest: Video navigation test id3demux: id3demux: ID3 tag demuxer ximagesrc: ximagesrc: Ximage video source icydemux: icydemux: ICY tag demuxer udp: udpsink: UDP packet sender udp: multiudpsink: UDP packet sender udp: dynudpsink: UDP packet sender udp: udpsrc: UDP packet receiver dv: dvdemux: DV system stream demuxer dv: dvdec: DV video decoder videoflip: videoflip: Video flipper level: level: Level auparse: auparse: AU audio demuxer cairo: cairotextoverlay: Text overlay cairo: cairotimeoverlay: Time overlay autodetect: autovideosink: Auto video sink autodetect: autoaudiosink: Auto audio sink matroska: matroskademux: Matroska demuxer matroska: matroskamux: Matroska muxer videobox: videobox: Video box filter goom: goom: GOOM: what a GOOM! esdsink: esdsink: Esound audio sink alaw: alawenc: A Law audio encoder alaw: alawdec: A Law audio decoder avi: avidemux: Avi demuxer avi: avimux: Avi muxer halelements: halaudiosink: HAL audio sink halelements: halaudiosrc: HAL audio source cutter: cutter: Audio cutter png: pngdec: PNG image decoder png: pngenc: PNG image encoder cdparanoia: cdparanoiasrc: CD Audio (cdda) Source, Paranoia IV audiotestsrc: audiotestsrc: Audio test source xvimagesink: xvimagesink: Video sink audioresample: audioresample: Audio scaler gnomevfs: gnomevfssink: GnomeVFS Sink gnomevfs: gnomevfssrc: GnomeVFS Source ffmpegcolorspace: ffmpegcolorspace: FFMPEG Colorspace converter alsa: alsasink: Audio sink (ALSA) alsa: alsasrc: Audio source (ALSA) alsa: alsamixer: Alsa mixer playbin: playbin: Player Bin ogg: oggparse: Ogg parser ogg: ogmtextparse: OGM text stream parser ogg: ogmvideoparse: OGM video stream parser ogg: ogmaudioparse: OGM audio stream parser ogg: oggmux: Ogg muxer ogg: oggdemux: Ogg demuxer vorbis: vorbisparse: VorbisParse vorbis: vorbisdec: Vorbis audio decoder vorbis: vorbisenc: Vorbis audio encoder adder: adder: Adder subparse: ssaparse: SSA Subtitle Parser subparse: subparse: Subtitle parser subparse: subparse_typefind: srt, sub, mpsub, mdvd, smi volume: volume: Volume videotestsrc: videotestsrc: Video test source coreelements: typefind: TypeFind coreelements: tee: Tee pipe fitting coreelements: filesink: File Sink coreelements: queue: Queue coreelements: identity: Identity coreelements: filesrc: File Source coreelements: fdsink: Filedescriptor Sink coreelements: fdsrc: Disk Source coreelements: fakesink: Fake Sink coreelements: fakesrc: Fake Source coreelements: capsfilter: CapsFilter pango: textrender: Text renderer pango: clockoverlay: Clock overlay pango: timeoverlay: Time overlay pango: textoverlay: Text overlay tcp: multifdsink: Multi filedescriptor sink tcp: tcpserversrc: TCP server source tcp: tcpserversink: TCP server sink tcp: tcpclientsrc: TCP client source tcp: tcpclientsink: TCP client sink videoscale: videoscale: Video scaler typefindfunctions: video/x-dirac: no extensions typefindfunctions: application/x-ms-dos-executable: dll, exe, ocx, sys, scr, msstyles, cpl typefindfunctions: application/x-ar: a typefindfunctions: application/x-tar: tar typefindfunctions: application/x-rar: rar typefindfunctions: audio/x-wavpack-correction: wvc typefindfunctions: audio/x-wavpack: wv, wvp typefindfunctions: audio/x-spc: spc typefindfunctions: adts_mpeg_stream: aac typefindfunctions: application/x-executable: no extensions typefindfunctions: text/x-cmml: no extensions typefindfunctions: application/x-ogg-skeleton: no extensions typefindfunctions: audio/x-speex: no extensions typefindfunctions: application/x-ogm-text: no extensions typefindfunctions: application/x-ogm-audio: no extensions typefindfunctions: application/x-ogm-video: no extensions typefindfunctions: video/x-theora: no extensions typefindfunctions: audio/x-vorbis: no extensions typefindfunctions: application/x-compress: Z typefindfunctions: application/zip: zip typefindfunctions: application/x-gzip: gz typefindfunctions: application/x-bzip: bz2 typefindfunctions: image/x-sun-raster: ras typefindfunctions: image/x-xpixmap: xpm typefindfunctions: image/x-jng: jng typefindfunctions: video/x-mng: mng typefindfunctions: image/x-xcf: xcf typefindfunctions: audio/x-sid: sid typefindfunctions: audio/iLBC-sh: ilbc typefindfunctions: audio/x-amr-wb-sh: amr typefindfunctions: audio/x-amr-nb-sh: amr typefindfunctions: video/x-dv: dv, dif typefindfunctions: video/x-matroska: mkv, mka typefindfunctions: image/tiff: tif, tiff typefindfunctions: image/bmp: bmp typefindfunctions: image/png: png typefindfunctions: image/gif: gif typefindfunctions: image/jpeg: jpg, jpe, jpeg typefindfunctions: application/x-ape: ape typefindfunctions: audio/x-shorten: shn typefindfunctions: audio/x-w64: w64 typefindfunctions: audio/x-ircam: sf typefindfunctions: audio/x-sds: sds typefindfunctions: audio/x-voc: voc typefindfunctions: audio/x-nist: nist typefindfunctions: audio/x-paris: paf typefindfunctions: audio/x-svx: iff, svx typefindfunctions: audio/x-aiff: aiff, aif, aifc typefindfunctions: audio/x-wav: wav typefindfunctions: application/xml: xml typefindfunctions: application/smil: smil typefindfunctions: text/uri-list: ram typefindfunctions: text/plain: txt typefindfunctions: video/x-flv: flv typefindfunctions: application/x-shockwave-flash: swf, swfl typefindfunctions: application/vnd.rn-realmedia: ra, ram, rm, rmvb typefindfunctions: text/html: htm, html typefindfunctions: video/quicktime: mov typefindfunctions: application/x-3gp: 3gp typefindfunctions: audio/x-m4a: m4a typefindfunctions: video/mpeg4: m4v typefindfunctions: video/mpeg-stream: mpv, mpeg, mpg typefindfunctions: video/mpeg: mpv, mpeg, mpg typefindfunctions: application/ogg: anx, ogg, ogm typefindfunctions: video/mpegts: ts typefindfunctions: video/mpeg2: mpe, mpeg, mpg typefindfunctions: video/mpeg1: mpe, mpeg, mpg typefindfunctions: audio/x-ac3: ac3 typefindfunctions: audio/mpeg: mp3, mp2, mp1, mpga typefindfunctions: audio/x-mod: 669, amf, dsm, gdm, far, imf, it, med, mod, mtm, okt, sam, s3m, stm, stx, ult, xm typefindfunctions: audio/x-ttafile: tta typefindfunctions: application/x-apetag: ape, mpc, wv typefindfunctions: application/x-id3v1: mp3, mp2, mp1, mpga, ogg, flac, tta typefindfunctions: application/x-id3v2: mp3, mp2, mp1, mpga, ogg, flac, tta typefindfunctions: video/x-fli: flc, fli typefindfunctions: audio/x-flac: flac typefindfunctions: video/x-vcd: dat typefindfunctions: video/x-cdxa: dat typefindfunctions: video/x-msvideo: avi typefindfunctions: audio/x-au: au, snd typefindfunctions: audio/x-musepack: mpc typefindfunctions: video/x-ms-asf: asf, wm, wma, wmv audiorate: audiorate: Audio rate adjuster video4linux: v4lsrc: Video (video4linux/raw) Source ximagesink: ximagesink: Video sink videorate: videorate: Video rate adjuster audioconvert: audioconvert: Audio converter decodebin: decodebin: Decoder Bin coreindexers: fileindex: A index that stores entries in file coreindexers: memindex: A index that stores entries in memory theora: theoraparse: TheoraParse theora: theoraenc: Theora video encoder theora: theoradec: Theora video decoder staticelements: bin: Generic bin staticelements: pipeline: Pipeline object Total count: 72 plugins, 242 features [p3x@p3x ~]$ Can u please tell me how/where can I see the versions of all relevant packages you're using? Thanks
reopening as per last comment - wouter?
This happens if you try to record with a depth other than 24 bit. Does setting your xorg-server to 24-bit solve it? If so this is the same as bug http://bugzilla.gnome.org/show_bug.cgi?id=349633
$ istanbul --gst-debug-level=1 DEBUG: final pipeline: istximagesrc name=videosource use-damage=false ! video/x-raw-rgb,framerate=10/1 ! videorate ! ffmpegcolorspace ! videoscale method=1 ! video/x-raw-yuv,width=1024,height=768,framerate=10/1 ! theoraenc ! oggmux name=mux ! filesink location=/tmp/tmpXemq6M SaveWindow with file: /tmp/tmpXemq6M The program 'istanbul' received an X Window System error. This probably reflects a bug in the program. The error was 'BadAlloc (insufficient resources for operation)'. (Details: serial 45 error_code 11 request_code 140 minor_code 19) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.)
No movement on this bug?
Jim, your bug is fixed already in svn. Jose's I am not sure, if possible can you attach a bzip2'd log while running istanbul with environment variable GST_DEBUG=3.
*** This bug has been marked as a duplicate of 354698 ***