Segmentation fault when spawning video output
It is not happening every time, but maybe one time every 2 tries. I am using dummy mode. When I try to read a video, sometimes it works, sometimes it segfaults. Backtrace :
[#0](https://code.videolan.org/videolan/vlc/-/issues/0) 0xb7ce04ac in free () from /lib/tls/i686/cmov/libc.so.6
[#1](https://code.videolan.org/videolan/vlc/-/issues/1) 0xb73470ed in OpenAccess (p_this=0x81a4d40) at input.c:109
[#2](https://code.videolan.org/videolan/vlc/-/issues/2) 0xb7ea01a2 in __module_need (p_this=0x81a4d40, psz_capability=0xb7ecf168 "text renderer", psz_name=0x0, b_strict=false) at modules/modules.c:571
[#3](https://code.videolan.org/videolan/vlc/-/issues/3) 0xb7e7d417 in __spu_Create (p_this=0x81a2510) at video_output/vout_subpictures.c:965
[#4](https://code.videolan.org/videolan/vlc/-/issues/4) 0xb7e75e61 in __vout_Create (p_parent=0x80e64f0, p_fmt=0x80e66a4) at video_output/video_output.c:380
[#5](https://code.videolan.org/videolan/vlc/-/issues/5) 0xb7e766f3 in __vout_Request (p_this=0x80e64f0, p_vout=0x0, p_fmt=0x80e66a4) at video_output/video_output.c:265
[#6](https://code.videolan.org/videolan/vlc/-/issues/6) 0xb7e53997 in vout_new_buffer (p_dec=0x80e64f0) at input/decoder.c:1331
[#7](https://code.videolan.org/videolan/vlc/-/issues/7) 0xb734f7be in ffmpeg_GetFrameBuf (p_context=0x80decb0, p_ff_pic=0x8175520) at video.c:170
[#8](https://code.videolan.org/videolan/vlc/-/issues/8) 0xb6e8353f in ?? () from /usr/lib/libavcodec.so.1d
VLC output :
[0x80518c8] main libvlc debug: translation test: code is "C"
[0x80518c8] main libvlc debug: checking builtin modules
[0x80518c8] main libvlc debug: checking plugin modules
[0x80518c8] main libvlc debug: loading plugins cache file /home/sebastien/.cache/vlc/plugins-04041e.dat
[0x80518c8] main libvlc debug: recursively browsing `/usr/local/lib/vlc'
[0x80518c8] main libvlc debug: recursively browsing `./modules'
[0x80518c8] main libvlc debug: module bank initialized (292 modules)
[0x80518c8] main libvlc debug: opening config file (/home/sebastien/.config/vlc/vlcrc)
[0x80518c8] main libvlc: Found old config file at /home/sebastien/.vlc/vlcrc. VLC will now use /home/sebastien/.config/vlc/vlcrc.
[0x80518c8] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[0x80518c8] main libvlc debug: looking for memcpy module: 3 candidates
[0x80518c8] main libvlc debug: using memcpy module "memcpymmxext"
[0x80547a8] main interaction debug: thread started
[0x80547a8] main interaction debug: thread 3082513296 (Interaction control) created at priority 0 (interface/interaction.c:382)
[0x80cbea8] main input debug: Creating an input for 'Media Library'
[0x80cbea8] main input debug: Input is a meta file: disabling unneeded options
[0x80cbea8] main input debug: `file/xspf-open:///home/sebastien/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/sebastien/.local/share/vlc/ml.xspf'
[0x80cbea8] main input debug: creating access 'file' path='/home/sebastien/.local/share/vlc/ml.xspf'
[0x80c9790] main access debug: looking for access module: 3 candidates
[0x80c9790] access_mmap access debug: opening file /home/sebastien/.local/share/vlc/ml.xspf
[0x80c9790] main access debug: using access module "access_mmap"
[0x80c9790] main access debug: TIMER module_need() : 0.399 ms - Total 0.399 ms / 1 intvls (Avg 0.399 ms)
[0x80d0f28] main stream debug: Using AStream*Block
[0x80d0f28] main stream debug: pre buffering
[0x80d0f28] main stream debug: received first data for our buffer
[0x80c9790] access_mmap access debug: at end of memory mapped file
[0x80cbea8] main input debug: creating demux: access='file' demux='xspf-open' path='/home/sebastien/.local/share/vlc/ml.xspf'
[0x80d1308] main demux debug: looking for demux module: 1 candidate
[0x80d1308] main demux warning: no demux module matching "xspf-open" could be loaded
[0x80d1308] main demux debug: TIMER module_need() : 0.242 ms - Total 0.242 ms / 1 intvls (Avg 0.242 ms)
[0x80cbea8] main input error: no suitable demux module for `file/xspf-open:///home/sebastien/.local/share/vlc/ml.xspf'
[0x80c9790] main access debug: removing module "access_mmap"
[0x80cbea8] main input debug: Destroying the input for 'Media Library'
[0x80cbea8] main input debug: TIMER input launching for 'Media Library' : 3.722 ms - Total 3.722 ms / 1 intvls (Avg 3.722 ms)
[0x80c4c48] main playlist debug: thread started
[0x80c4c48] main playlist debug: thread 3080829840 (playlist) created at priority 0 (playlist/thread.c:92)
[0x80d0f28] main interface debug: looking for interface module: 1 candidate
[0x80d0f28] main interface debug: using interface module "hotkeys"
[0x80d0f28] main interface debug: TIMER module_need() : 0.167 ms - Total 0.167 ms / 1 intvls (Avg 0.167 ms)
[0x80c4c48] main playlist debug: rebuilding array of current - root Playlist
[0x80c4c48] main playlist debug: rebuild done - 0 items, index -1
[0x80d0f28] main interface debug: thread started
[0x80d0f28] main interface debug: thread 3080272784 (interface) created at priority 0 (interface/interface.c:167)
[0x80d1538] main interface debug: looking for interface module: 1 candidate
[0x80d1538] main interface debug: using interface module "screensaver"
[0x80d1538] main interface debug: TIMER module_need() : 0.169 ms - Total 0.169 ms / 1 intvls (Avg 0.169 ms)
[0x80d1538] main interface debug: thread started
[0x80d1538] main interface debug: thread 3079736208 (interface) created at priority 0 (interface/interface.c:167)
[0x80c4c48] main playlist debug: adding item `1_1221660939' ( /home/sebastien/1_1221660939 )
[0x80c94c0] main interface debug: looking for interface module: 11 candidates
[0x80c94c0] main interface debug: using interface module "signals"
[0x80c94c0] main interface debug: TIMER module_need() : 0.155 ms - Total 0.155 ms / 1 intvls (Avg 0.155 ms)
[0x80c94c0] main interface debug: thread started
[0x80c94c0] main interface debug: thread ended
[0x80c94c0] main interface debug: thread 3078671248 (interface) created at priority 0 (interface/interface.c:167)
[0x80518c8] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x80d32e8] main interface debug: looking for interface module: 1 candidate
Remote control interface initialized. Type `help' for help.
[0x80d32e8] main interface debug: using interface module "rc"
[0x80d32e8] main interface debug: TIMER module_need() : 0.402 ms - Total 0.402 ms / 1 intvls (Avg 0.402 ms)
[0x80d32e8] main interface debug: thread started
[0x80d32e8] main interface debug: thread 3078097808 (interface) created at priority 0 (interface/interface.c:167)
[0x80c4c48] main playlist debug: starting new item
[0x80c4c48] main playlist debug: processing request item null node Playlist skip 0
[0x80c4c48] main playlist debug: rebuilding array of current - root Playlist
[0x80c4c48] main playlist debug: rebuild done - 1 items, index -1
[0x80c4c48] main playlist debug: creating new input thread
[0x80d33e0] main input debug: Creating an input for '1_1221660939'
[0x80d33e0] main input debug: thread started
[0x80d33e0] main input debug: `/home/sebastien/1_1221660939' gives access `' demux `' path `/home/sebastien/1_1221660939'
[0x80d33e0] main input debug: creating demux: access='' demux='' path='/home/sebastien/1_1221660939'
[0x80cf780] main demux debug: looking for access_demux module: 1 candidate
[0x80cf780] main demux debug: TIMER module_need() : 0.433 ms - Total 0.433 ms / 1 intvls (Avg 0.433 ms)
[0x80d33e0] main input debug: creating access '' path='/home/sebastien/1_1221660939'
[0x80d6f68] main access debug: looking for access module: 3 candidates
[0x80d6f68] access_mmap access debug: opening file /home/sebastien/1_1221660939
[0x80d6f68] main access debug: using access module "access_mmap"
[0x80d6f68] main access debug: TIMER module_need() : 0.179 ms - Total 0.179 ms / 1 intvls (Avg 0.179 ms)
[0x80d7198] main stream debug: Using AStream*Block
[0x80d7198] main stream debug: pre buffering
[0x80d7198] main stream debug: received first data for our buffer
[0x80d7198] main stream debug: prebuffering done 1048576 bytes in 0s - 64000000 kbytes/s
[0x80d33e0] main input debug: creating demux: access='' demux='' path='/home/sebastien/1_1221660939'
[0x80d8220] main demux debug: looking for demux module: 43 candidates
[0x80d7198] mp4 stream debug: found Box: ftyp size 20
[0x80d7198] mp4 stream debug: found Box: moov size 4961
[0x80d7198] mp4 stream debug: found Box: mvhd size 108
[0x80d7198] mp4 stream debug: read box: "mvhd" creation 733223d-26h:15m:49s modification 733223d-26h:15m:49s time scale 90000 duration 694977d-48h:00m:13s rate 1.000000 volume 1.000000 next track id 2
[0x80d7198] mp4 stream debug: found Box: trak size 4762
[0x80d7198] mp4 stream debug: found Box: tkhd size 92
[0x80d7198] mp4 stream debug: read box: "tkhd" creation 733223d-26h:15m:49s modification 733223d-26h:15m:49s duration 2085543685d-06h:24m:00s track ID 1 layer 0 volume 0.000000 width 320.000000 height 240.000000
[0x80d7198] mp4 stream debug: found Box: edts size 36
[0x80d7198] mp4 stream debug: found Box: elst size 28
[0x80d7198] mp4 stream debug: read box: "elst" entry-count 1
[0x80d7198] mp4 stream debug: found Box: mdia size 4626
[0x80d7198] mp4 stream debug: found Box: mdhd size 32
[0x80d7198] mp4 stream debug: read box: "mdhd" creation 733223d-26h:15m:49s modification 733223d-26h:15m:49s time scale 1001 duration 694977d-50h:47m:56s language ```
[0x80d7198] mp4 stream debug: found Box: hdlr size 45
[0x80d7198] mp4 stream debug: read box: "hdlr" handler type vide name VideoHandler
[0x80d7198] mp4 stream debug: found Box: minf size 4541
[0x80d7198] mp4 stream debug: found Box: vmhd size 20
[0x80d7198] mp4 stream debug: read box: "vmhd" graphics-mode 0 opcolor (0, 0, 0)
[0x80d7198] mp4 stream debug: found Box: dinf size 36
[0x80d7198] mp4 stream debug: found Box: dref size 28
[0x80d7198] mp4 stream debug: found Box: url size 12
[0x80d7198] mp4 stream debug: read box: "url" url: (null)
[0x80d7198] mp4 stream debug: read box: "dref" entry-count 1
[0x80d7198] mp4 stream debug: found Box: stbl size 4477
[0x80d7198] mp4 stream debug: found Box: stsd size 153
[0x80d7198] mp4 stream debug: found Box: mp4v size 137
[0x80d7198] mp4 stream debug: found Box: esds size 51
[0x80d7198] mp4 stream debug: found esds MPEG4ESDescr (37Bytes)
[0x80d7198] mp4 stream debug: found esds MP4DecConfigDescr (29Bytes)
[0x80d7198] mp4 stream debug: found esds MP4DecSpecificDescr (14Bytes)
[0x80d7198] mp4 stream debug: read box: "vide" in stsd 320x240 depth 24
[0x80d7198] mp4 stream debug: read box: "stsd" entry-count 1
[0x80d7198] mp4 stream debug: found Box: stts size 1800
[0x80d7198] mp4 stream debug: read box: "stts" entry-count 223
[0x80d7198] mp4 stream debug: found Box: stss size 1232
[0x80d7198] mp4 stream debug: read box: "stss" entry-count 304
[0x80d7198] mp4 stream debug: found Box: stsc size 28
[0x80d7198] mp4 stream debug: read box: "stsc" entry-count 1
[0x80d7198] mp4 stream debug: found Box: stsz size 1236
[0x80d7198] mp4 stream debug: read box: "stsz" sample-size 0 sample-count 304
[0x80d7198] mp4 stream debug: found Box: stco size 20
[0x80d7198] mp4 stream debug: read box: "co64" entry-count 1
[0x80d7198] mp4 stream debug: found Box: udta size 83
[0x80d7198] mp4 stream debug: found Box: creq size 36
[0x80d7198] mp4 stream debug: read box: "creq" text=`QuickTime 6.0 or greater'
[0x80d7198] mp4 stream debug: found Box: cenc size 39
[0x80d7198] mp4 stream debug: read box: "cenc" text=`vlc 1.0.0-git stream output'
[0x80d7198] mp4 stream debug: found Box: wide size 8
[0x80d7198] mp4 stream debug: skip box: "wide"
[0x80d7198] mp4 stream debug: found Box: mdat size 1190460
[0x80d7198] mp4 stream debug: skip box: "mdat"
[0x80d7198] mp4 stream debug: dumping root Box "root"
[0x80d7198] mp4 stream debug: | + ftyp size 20
[0x80d7198] mp4 stream debug: | + moov size 4961
[0x80d7198] mp4 stream debug: | | + mvhd size 108
[0x80d7198] mp4 stream debug: | | + trak size 4762
[0x80d7198] mp4 stream debug: | | | + tkhd size 92
[0x80d7198] mp4 stream debug: | | | + edts size 36
[0x80d7198] mp4 stream debug: | | | | + elst size 28
[0x80d7198] mp4 stream debug: | | | + mdia size 4626
[0x80d7198] mp4 stream debug: | | | | + mdhd size 32
[0x80d7198] mp4 stream debug: | | | | + hdlr size 45
[0x80d7198] mp4 stream debug: | | | | + minf size 4541
[0x80d7198] mp4 stream debug: | | | | | + vmhd size 20
[0x80d7198] mp4 stream debug: | | | | | + dinf size 36
[0x80d7198] mp4 stream debug: | | | | | | + dref size 28
[0x80d7198] mp4 stream debug: | | | | | | | + url size 12
[0x80d7198] mp4 stream debug: | | | | | + stbl size 4477
[0x80d7198] mp4 stream debug: | | | | | | + stsd size 153
[0x80d7198] mp4 stream debug: | | | | | | | + mp4v size 137
[0x80d7198] mp4 stream debug: | | | | | | | | + esds size 51
[0x80d7198] mp4 stream debug: | | | | | | + stts size 1800
[0x80d7198] mp4 stream debug: | | | | | | + stss size 1232
[0x80d7198] mp4 stream debug: | | | | | | + stsc size 28
[0x80d7198] mp4 stream debug: | | | | | | + stsz size 1236
[0x80d7198] mp4 stream debug: | | | | | | + stco size 20
[0x80d7198] mp4 stream debug: | | + udta size 83
[0x80d7198] mp4 stream debug: | | | + creq size 36
[0x80d7198] mp4 stream debug: | | | + cenc size 39
[0x80d7198] mp4 stream debug: | + wide size 8
[0x80d7198] mp4 stream debug: | + mdat size 1190460
[0x80d8220] mp4 demux debug: ISO Media file (isom) version 0.
[0x80d8220] mp4 demux debug: found 1 tracks
[0x80d8220] mp4 demux warning: elst box found
[0x80d8220] mp4 demux debug: - [0] duration=10066ms media time=0ms) rate=1.0
[0x80d8220] mp4 demux debug: track[Id 0x1] read 1 chunk
[0x80d8220] mp4 demux debug: track[Id 0x1] read 304 samples length:10s
[0x80d33e0] main input debug: selecting program id=0
[0x80d8220] mp4 demux debug: adding track[Id 0x1] video (enable) language en
[0x80d8220] main demux debug: using demux module "mp4"
[0x80d8220] main demux debug: TIMER module_need() : 18.392 ms - Total 18.392 ms / 1 intvls (Avg 18.392 ms)
[0x80d8220] mp4 demux warning: control query 14 unimplemented
[0x80d8220] mp4 demux warning: DEMUX_GET_FPS unimplemented !!
[0x80d8220] mp4 demux warning: DEMUX_GET_FPS unimplemented !!
[0x80d33e0] main input debug: looking for a subtitle file in /home/sebastien/
[0x80d96e0] main decoder debug: looking for decoder module: 21 candidates
[0x80d96e0] avcodec decoder debug: libavcodec initialized (interface 3352064 )
[0x80d96e0] avcodec decoder debug: using direct rendering
[0x80d96e0] avcodec decoder debug: ffmpeg codec (MPEG-4 Video) started
[0x80d96e0] main decoder debug: using decoder module "avcodec"
[0x80d96e0] main decoder debug: TIMER module_need() : 29.587 ms - Total 29.587 ms / 1 intvls (Avg 29.587 ms)
[0x80d96e0] main decoder debug: thread started
[0x80d33e0] main input debug: thread 3077569424 (input) created at priority 10 (input/input.c:377)
[0x80d96e0] main decoder debug: thread 3065015184 (decoder) created at priority 0 (input/decoder.c:217)
[0x80d33e0] main input debug: `/home/sebastien/1_1221660939' successfully opened
[0x80d8220] mp4 demux debug: elst (0) gives 0ms (movie)-> 0ms (track)
[0x80d8220] mp4 demux debug: track[Id 0x1] using Sync Sample Box (stss)
[0x80d8220] mp4 demux debug: stts gives 0 --> 0 (sample number)
[0x80d8220] mp4 demux warning: recreate ES for track[Id 0x1]
[0x80d96e0] avcodec decoder debug: ffmpeg codec (MPEG-4 Video) stopped
[0x80d96e0] main decoder debug: removing module "avcodec"
[0x80d96e0] main decoder debug: thread ended
[0x80d96e0] main decoder debug: killing decoder fourcc `mp4v', 0 PES in FIFO
[0x80d33e0] main input debug: Program doesn't contain anymore ES
[0x80e65c0] main decoder debug: looking for decoder module: 21 candidates
[0x80e65c0] avcodec decoder debug: libavcodec already initialized
[0x80e65c0] avcodec decoder debug: using direct rendering
[0x80e65c0] avcodec decoder debug: ffmpeg codec (MPEG-4 Video) started
[0x80e65c0] main decoder debug: using decoder module "avcodec"
[0x80e65c0] main decoder debug: TIMER module_need() : 1.145 ms - Total 1.145 ms / 1 intvls (Avg 1.145 ms)
[0x80e65c0] main decoder debug: thread started
[0x80e65c0] main decoder debug: thread 3065015184 (decoder) created at priority 0 (input/decoder.c:217)
[0x80e65c0] main decoder debug: no usable vout present, spawning one
[0x819e090] main spu text debug: looking for text renderer module: 1 candidate
Segmentation fault (core dumped)