Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segfault with mlt 6.8.0 #508

Closed
oberon-manjaro opened this Issue May 16, 2018 · 34 comments

Comments

Projects
None yet
@oberon-manjaro
Copy link
Contributor

oberon-manjaro commented May 16, 2018

On Manjaro (unstable branch) and apparently Archlinux in general, the update to mlt 6.8.0 (and also python2 to 2.7.15 seems to have broken flowblade.
More details on the segfault here

@martinkg

This comment has been minimized.

Copy link

martinkg commented May 19, 2018

same here on Fedora 28 with mlt-6.8.0

MLT found, version: 6.8.0
numpy version: 1.14.3
OS: Fedora 28 (Workstation Edition)
Python 2.7.15 (default, May 2 2018, 14:12:52)
[GCC 8.0.1 20180324 (Red Hat 8.0.1-0.20)]
GTK+ version: 3.22.30

@eszlari

This comment has been minimized.

Copy link
Contributor

eszlari commented May 19, 2018

I see no crash with flatpak. The flatpak version uses:

  • mlt 6.8.0
  • python 2.7.12
  • numpy 1.14.0
  • gcc 6.2.0
  • gtk 3.22.30
@arugifa

This comment has been minimized.

Copy link

arugifa commented May 20, 2018

I have Flowblade running on two machines:

  1. my desktop, with an up-to-date Archlinux and Gnome,
  2. a remote server, with an up-to-date Archlinux LTS and without Gnome.

I can run without problem Flowblade on my server, using X11 Forwarding:

$ flowblade
FLOWBLADE MOVIE EDITOR 1.16
---------------------------
modules path: /usr/share/pyshared/Flowblade
MLT found, version: 6.8.0
numpy version: 1.14.3
OS: Arch Linux
Python 2.7.15 (default, May  1 2018, 20:16:04) 
[GCC 7.3.1 20180406]
GTK+ version: 3.22.30
User dir: /home/alex/.flowblade/
Locale: en_US
Translations at /usr/share/locale were not found, using program root directory translations.
Use OS locale language.
Valid shortcut files found: ['flowblade.xml', 'premiere.xml']
Keyboard shortcuts file: flowblade.xml
Loading shortcuts: Flowblade
1920 1200
Small height: False
Small width: False
mlt_repository_init: failed to dlopen /usr/lib/mlt/libmltqt.so
  (libQt5Svg.so.5: cannot open shared object file: No such file or directory)
Detecting environment...
---
video_codecs:
  - a64multi
  - a64multi5
  - alias_pix
  - amv
  - apng
  - asv1
  - asv2
  - avrp
  - avui
  - ayuv
  - bmp
  - cinepak
  - cljr
  - dnxhd
  - dpx
  - dvvideo
  - ffv1
  - ffvhuff
  - fits
  - flashsv
  - flashsv2
  - flv
  - gif
  - h261
  - h263
  - h263p
  - huffyuv
  - jpeg2000
  - jpegls
  - ljpeg
  - magicyuv
  - mjpeg
  - mpeg1video
  - mpeg2video
  - mpeg4
  - msmpeg4v2
  - msmpeg4
  - msvideo1
  - pam
  - pbm
  - pcx
  - pgm
  - pgmyuv
  - png
  - ppm
  - prores
  - prores_aw
  - prores_ks
  - qtrle
  - r10k
  - r210
  - rawvideo
  - roqvideo
  - rv10
  - rv20
  - sgi
  - snow
  - sunrast
  - svq1
  - targa
  - tiff
  - utvideo
  - v210
  - v308
  - v408
  - v410
  - vc2
  - wrapped_avframe
  - wmv1
  - wmv2
  - xbm
  - xface
  - xwd
  - y41p
  - yuv4
  - zlib
  - zmbv
  - libopenjpeg
  - libtheora
  - libvpx
  - libvpx-vp9
  - libwebp_anim
  - libwebp
  - libx264
  - libx264rgb
  - libx265
  - libxvid
  - h264_nvenc
  - h264_omx
  - h264_vaapi
  - nvenc
  - nvenc_h264
  - nvenc_hevc
  - hevc_nvenc
  - hevc_vaapi
  - mjpeg_vaapi
  - mpeg2_vaapi
  - vp8_vaapi
  - vp9_vaapi
...
---
audio_codecs:
  - comfortnoise
  - s302m
  - aac
  - ac3
  - ac3_fixed
  - alac
  - aptx
  - aptx_hd
  - dca
  - eac3
  - flac
  - g723_1
  - mlp
  - mp2
  - mp2fixed
  - nellymoser
  - opus
  - real_144
  - sbc
  - sonic
  - sonicls
  - truehd
  - tta
  - vorbis
  - wavpack
  - wmav1
  - wmav2
  - pcm_alaw
  - pcm_f32be
  - pcm_f32le
  - pcm_f64be
  - pcm_f64le
  - pcm_mulaw
  - pcm_s8
  - pcm_s8_planar
  - pcm_s16be
  - pcm_s16be_planar
  - pcm_s16le
  - pcm_s16le_planar
  - pcm_s24be
  - pcm_s24daud
  - pcm_s24le
  - pcm_s24le_planar
  - pcm_s32be
  - pcm_s32le
  - pcm_s32le_planar
  - pcm_s64be
  - pcm_s64le
  - pcm_u8
  - pcm_u16be
  - pcm_u16le
  - pcm_u24be
  - pcm_u24le
  - pcm_u32be
  - pcm_u32le
  - roq_dpcm
  - adpcm_adx
  - g722
  - g726
  - g726le
  - adpcm_ima_qt
  - adpcm_ima_wav
  - adpcm_ms
  - adpcm_swf
  - adpcm_yamaha
  - libgsm
  - libgsm_ms
  - libmp3lame
  - libopencore_amrnb
  - libopus
  - libspeex
  - libvorbis
...
---
formats:
  - a64
  - ac3
  - adts
  - adx
  - aiff
  - amr
  - apng
  - aptx
  - aptx_hd
  - asf
  - ass
  - ast
  - asf_stream
  - au
  - avi
  - avm2
  - bit
  - caf
  - cavsvideo
  - codec2
  - codec2raw
  - crc
  - dash
  - data
  - daud
  - dirac
  - dnxhd
  - dts
  - dv
  - eac3
  - f4v
  - ffmetadata
  - fifo
  - fifo_test
  - filmstrip
  - fits
  - flac
  - flv
  - framecrc
  - framehash
  - framemd5
  - g722
  - g723_1
  - g726
  - g726le
  - gif
  - gsm
  - gxf
  - h261
  - h263
  - h264
  - hash
  - hds
  - hevc
  - hls
  - ico
  - ilbc
  - image2
  - image2pipe
  - ipod
  - ircam
  - ismv
  - ivf
  - jacosub
  - latm
  - lrc
  - m4v
  - md5
  - matroska
  - matroska
  - microdvd
  - mjpeg
  - mlp
  - mmf
  - mov
  - mp2
  - mp3
  - mp4
  - mpeg
  - vcd
  - mpeg1video
  - dvd
  - svcd
  - mpeg2video
  - vob
  - mpegts
  - mpjpeg
  - mxf
  - mxf_d10
  - mxf_opatom
  - null
  - nut
  - oga
  - ogg
  - ogv
  - oma
  - opus
  - alaw
  - mulaw
  - f64be
  - f64le
  - f32be
  - f32le
  - s32be
  - s32le
  - s24be
  - s24le
  - s16be
  - s16le
  - s8
  - u32be
  - u32le
  - u24be
  - u24le
  - u16be
  - u16le
  - u8
  - psp
  - rawvideo
  - rm
  - roq
  - rso
  - rtp
  - rtp_mpegts
  - rtsp
  - sap
  - sbc
  - scc
  - film_cpk
  - segment
  - stream_segment,ssegment
  - singlejpeg
  - smjpeg
  - smoothstreaming
  - sox
  - spx
  - spdif
  - srt
  - sup
  - swf
  - tee
  - 3g2
  - 3gp
  - mkvtimestamp_v2
  - truehd
  - tta
  - uncodedframecrc
  - vc1
  - vc1test
  - voc
  - w64
  - wav
  - webm
  - webm_dash_manifest
  - webm_chunk
  - webp
  - webvtt
  - wtv
  - wv
  - yuv4mpegpipe
  - alsa
  - fbdev
  - oss
  - pulse
  - sdl,sdl2
  - v4l2
  - xv
...
MLT detection succeeded, 167 formats, 99 video codecs and 72 audio codecs found.
552 MLT services found.
Loading render profiles...
Loading filters...
Brightness dropped, MLT version too low for this filter.
Loading transitions...
RGB Adjustment dropped for Color Adjustment
Hue dropped for Color Adjustment
Gamma dropped for Lift Gain Gamma
G'MIC found
Natron not found
Player initialized with profile:  DV/DVD PAL
Selected color NOT detected
BG color detected
Create SDL1 consumer...
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM sysdefault
[swscaler @ 0x7fc1e031d940] Warning: data is not aligned! This can lead to a speed loss
[consumer sdl] SDL failed to open audio: No available audio device
Autosave started...
Saving project...
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM sysdefault
[consumer sdl] SDL failed to open audio: No available audio device

But I get a segmentation fault on my desktop:

$ flowblade
FLOWBLADE MOVIE EDITOR 1.16
---------------------------
modules path: /usr/share/pyshared/Flowblade
MLT found, version: 6.8.0
numpy version: 1.14.3
OS: Arch Linux
Python 2.7.15 (default, May  1 2018, 20:16:04) 
[GCC 7.3.1 20180406]
GTK+ version: 3.22.30
User dir: /home/alex/.flowblade/
Locale: en_US
Translations at /usr/share/locale were not found, using program root directory translations.
Use OS locale language.
Valid shortcut files found: ['flowblade.xml', 'premiere.xml']
Keyboard shortcuts file: flowblade.xml
Loading shortcuts: Flowblade
1920 1200
Small height: False
Small width: False
Detecting environment...
---
video_codecs:
  - a64multi
  - a64multi5
  - alias_pix
  - amv
  - apng
  - asv1
  - asv2
  - avrp
  - avui
  - ayuv
  - bmp
  - cinepak
  - cljr
  - dnxhd
  - dpx
  - dvvideo
  - ffv1
  - ffvhuff
  - fits
  - flashsv
  - flashsv2
  - flv
  - gif
  - h261
  - h263
  - h263p
  - huffyuv
  - jpeg2000
  - jpegls
  - ljpeg
  - magicyuv
  - mjpeg
  - mpeg1video
  - mpeg2video
  - mpeg4
  - msmpeg4v2
  - msmpeg4
  - msvideo1
  - pam
  - pbm
  - pcx
  - pgm
  - pgmyuv
  - png
  - ppm
  - prores
  - prores_aw
  - prores_ks
  - qtrle
  - r10k
  - r210
  - rawvideo
  - roqvideo
  - rv10
  - rv20
  - sgi
  - snow
  - sunrast
  - svq1
  - targa
  - tiff
  - utvideo
  - v210
  - v308
  - v408
  - v410
  - vc2
  - wrapped_avframe
  - wmv1
  - wmv2
  - xbm
  - xface
  - xwd
  - y41p
  - yuv4
  - zlib
  - zmbv
  - libopenjpeg
  - libtheora
  - libvpx
  - libvpx-vp9
  - libwebp_anim
  - libwebp
  - libx264
  - libx264rgb
  - libx265
  - libxvid
  - h264_nvenc
  - h264_omx
  - h264_vaapi
  - nvenc
  - nvenc_h264
  - nvenc_hevc
  - hevc_nvenc
  - hevc_vaapi
  - mjpeg_vaapi
  - mpeg2_vaapi
  - vp8_vaapi
  - vp9_vaapi
...
---
audio_codecs:
  - comfortnoise
  - s302m
  - aac
  - ac3
  - ac3_fixed
  - alac
  - aptx
  - aptx_hd
  - dca
  - eac3
  - flac
  - g723_1
  - mlp
  - mp2
  - mp2fixed
  - nellymoser
  - opus
  - real_144
  - sbc
  - sonic
  - sonicls
  - truehd
  - tta
  - vorbis
  - wavpack
  - wmav1
  - wmav2
  - pcm_alaw
  - pcm_f32be
  - pcm_f32le
  - pcm_f64be
  - pcm_f64le
  - pcm_mulaw
  - pcm_s8
  - pcm_s8_planar
  - pcm_s16be
  - pcm_s16be_planar
  - pcm_s16le
  - pcm_s16le_planar
  - pcm_s24be
  - pcm_s24daud
  - pcm_s24le
  - pcm_s24le_planar
  - pcm_s32be
  - pcm_s32le
  - pcm_s32le_planar
  - pcm_s64be
  - pcm_s64le
  - pcm_u8
  - pcm_u16be
  - pcm_u16le
  - pcm_u24be
  - pcm_u24le
  - pcm_u32be
  - pcm_u32le
  - roq_dpcm
  - adpcm_adx
  - g722
  - g726
  - g726le
  - adpcm_ima_qt
  - adpcm_ima_wav
  - adpcm_ms
  - adpcm_swf
  - adpcm_yamaha
  - libgsm
  - libgsm_ms
  - libmp3lame
  - libopencore_amrnb
  - libopus
  - libspeex
  - libvorbis
...
---
formats:
  - a64
  - ac3
  - adts
  - adx
  - aiff
  - amr
  - apng
  - aptx
  - aptx_hd
  - asf
  - ass
  - ast
  - asf_stream
  - au
  - avi
  - avm2
  - bit
  - caf
  - cavsvideo
  - codec2
  - codec2raw
  - crc
  - dash
  - data
  - daud
  - dirac
  - dnxhd
  - dts
  - dv
  - eac3
  - f4v
  - ffmetadata
  - fifo
  - fifo_test
  - filmstrip
  - fits
  - flac
  - flv
  - framecrc
  - framehash
  - framemd5
  - g722
  - g723_1
  - g726
  - g726le
  - gif
  - gsm
  - gxf
  - h261
  - h263
  - h264
  - hash
  - hds
  - hevc
  - hls
  - ico
  - ilbc
  - image2
  - image2pipe
  - ipod
  - ircam
  - ismv
  - ivf
  - jacosub
  - latm
  - lrc
  - m4v
  - md5
  - matroska
  - matroska
  - microdvd
  - mjpeg
  - mlp
  - mmf
  - mov
  - mp2
  - mp3
  - mp4
  - mpeg
  - vcd
  - mpeg1video
  - dvd
  - svcd
  - mpeg2video
  - vob
  - mpegts
  - mpjpeg
  - mxf
  - mxf_d10
  - mxf_opatom
  - null
  - nut
  - oga
  - ogg
  - ogv
  - oma
  - opus
  - alaw
  - mulaw
  - f64be
  - f64le
  - f32be
  - f32le
  - s32be
  - s32le
  - s24be
  - s24le
  - s16be
  - s16le
  - s8
  - u32be
  - u32le
  - u24be
  - u24le
  - u16be
  - u16le
  - u8
  - psp
  - rawvideo
  - rm
  - roq
  - rso
  - rtp
  - rtp_mpegts
  - rtsp
  - sap
  - sbc
  - scc
  - film_cpk
  - segment
  - stream_segment,ssegment
  - singlejpeg
  - smjpeg
  - smoothstreaming
  - sox
  - spx
  - spdif
  - srt
  - sup
  - swf
  - tee
  - 3g2
  - 3gp
  - mkvtimestamp_v2
  - truehd
  - tta
  - uncodedframecrc
  - vc1
  - vc1test
  - voc
  - w64
  - wav
  - webm
  - webm_dash_manifest
  - webm_chunk
  - webp
  - webvtt
  - wtv
  - wv
  - yuv4mpegpipe
  - alsa
  - fbdev
  - oss
  - pulse
  - sdl,sdl2
  - v4l2
  - xv
...
MLT detection succeeded, 167 formats, 99 video codecs and 72 audio codecs found.
556 MLT services found.
Loading render profiles...
Loading filters...
Brightness dropped, MLT version too low for this filter.
Loading transitions...
RGB Adjustment dropped for Color Adjustment
Hue dropped for Color Adjustment
Gamma dropped for Lift Gain Gamma
G'MIC found
Natron not found
Player initialized with profile:  DV/DVD PAL
Selected color NOT detected
BG color detected
Create SDL1 consumer...
[swscaler @ 0x7f0c28379940] Warning: data is not aligned! This can lead to a speed loss
Segmentation fault (core dumped)

Bot use the same versions of libraries:

  • MLT 6.8.0
  • Python 2.7.15
  • Numpy 1.14.3
  • GCC 7.3.1
  • GTK 3.22.30

I didn't know that a Flatpak was available for Flowblade. I just installed it, and everything works like a charm 😃

@criztovyl

This comment has been minimized.

Copy link

criztovyl commented May 20, 2018

Not sure if a backtrace would help, but could you provide one?

Start flowblade using gdb flowblade, then type run to start flowblade. After segfault type bt to get a backtrace.

Attaching it via a Gist might be better, reduces scrolling around in the issue. ^^

@martinkg

This comment has been minimized.

Copy link

martinkg commented May 20, 2018

backtrace information of Fedora 28 with mlt-6.8.0:
flowblade-f28-backtrace.txt

@freemanfromgodotengine

This comment has been minimized.

Copy link

freemanfromgodotengine commented May 21, 2018

The same (or similar) here. I updated Manjaro stable - so mlt 6.8.0 is here and this happened to Flowblade:

> FLOWBLADE MOVIE EDITOR 1.16
> ---------------------------
> modules path: /usr/share/pyshared/Flowblade
> MLT found, version: 6.8.0
> numpy version: 1.14.3
> OS: Manjaro Linux
> Python 2.7.15 (default, May  1 2018, 20:16:04) 
> [GCC 7.3.1 20180406]
> GTK+ version: 3.22.30
> User dir: /home/user1/.flowblade/
> Locale: en_US
> Translations at /usr/share/locale were not found, using program root directory translations.
> Use OS locale language.
> Valid shortcut files found: ['flowblade.xml', 'premiere.xml']
> Keyboard shortcuts file: flowblade.xml
> Loading shortcuts: Flowblade
> 1920 1080
> Small height: False
> Small width: False
> Detecting environment...
> ---
> video_codecs:
>   - a64multi
>   - a64multi5
>   - alias_pix
>   - amv
>   - apng
>   - asv1
>   - asv2
>   - avrp
>   - avui
>   - ayuv
>   - bmp
>   - cinepak
>   - cljr
>   - dnxhd
>   - dpx
>   - dvvideo
>   - ffv1
>   - ffvhuff
>   - fits
>   - flashsv
>   - flashsv2
>   - flv
>   - gif
>   - h261
>   - h263
>   - h263p
>   - huffyuv
>   - jpeg2000
>   - jpegls
>   - ljpeg
>   - magicyuv
>   - mjpeg
>   - mpeg1video
>   - mpeg2video
>   - mpeg4
>   - msmpeg4v2
>   - msmpeg4
>   - msvideo1
>   - pam
>   - pbm
>   - pcx
>   - pgm
>   - pgmyuv
>   - png
>   - ppm
>   - prores
>   - prores_aw
>   - prores_ks
>   - qtrle
>   - r10k
>   - r210
>   - rawvideo
>   - roqvideo
>   - rv10
>   - rv20
>   - sgi
>   - snow
>   - sunrast
>   - svq1
>   - targa
>   - tiff
>   - utvideo
>   - v210
>   - v308
>   - v408
>   - v410
>   - vc2
>   - wrapped_avframe
>   - wmv1
>   - wmv2
>   - xbm
>   - xface
>   - xwd
>   - y41p
>   - yuv4
>   - zlib
>   - zmbv
>   - libopenjpeg
>   - libtheora
>   - libvpx
>   - libvpx-vp9
>   - libwebp_anim
>   - libwebp
>   - libx264
>   - libx264rgb
>   - libx265
>   - libxvid
>   - h264_nvenc
>   - h264_omx
>   - h264_vaapi
>   - nvenc
>   - nvenc_h264
>   - nvenc_hevc
>   - hevc_nvenc
>   - hevc_vaapi
>   - mjpeg_vaapi
>   - mpeg2_vaapi
>   - vp8_vaapi
>   - vp9_vaapi
> ...
> ---
> audio_codecs:
>   - comfortnoise
>   - s302m
>   - aac
>   - ac3
>   - ac3_fixed
>   - alac
>   - aptx
>   - aptx_hd
>   - dca
>   - eac3
>   - flac
>   - g723_1
>   - mlp
>   - mp2
>   - mp2fixed
>   - nellymoser
>   - opus
>   - real_144
>   - sbc
>   - sonic
>   - sonicls
>   - truehd
>   - tta
>   - vorbis
>   - wavpack
>   - wmav1
>   - wmav2
>   - pcm_alaw
>   - pcm_f32be
>   - pcm_f32le
>   - pcm_f64be
>   - pcm_f64le
>   - pcm_mulaw
>   - pcm_s8
>   - pcm_s8_planar
>   - pcm_s16be
>   - pcm_s16be_planar
>   - pcm_s16le
>   - pcm_s16le_planar
>   - pcm_s24be
>   - pcm_s24daud
>   - pcm_s24le
>   - pcm_s24le_planar
>   - pcm_s32be
>   - pcm_s32le
>   - pcm_s32le_planar
>   - pcm_s64be
>   - pcm_s64le
>   - pcm_u8
>   - pcm_u16be
>   - pcm_u16le
>   - pcm_u24be
>   - pcm_u24le
>   - pcm_u32be
>   - pcm_u32le
>   - roq_dpcm
>   - adpcm_adx
>   - g722
>   - g726
>   - g726le
>   - adpcm_ima_qt
>   - adpcm_ima_wav
>   - adpcm_ms
>   - adpcm_swf
>   - adpcm_yamaha
>   - libgsm
>   - libgsm_ms
>   - libmp3lame
>   - libopencore_amrnb
>   - libopus
>   - libspeex
>   - libvorbis
> ...
> ---
> formats:
>   - a64
>   - ac3
>   - adts
>   - adx
>   - aiff
>   - amr
>   - apng
>   - aptx
>   - aptx_hd
>   - asf
>   - ass
>   - ast
>   - asf_stream
>   - au
>   - avi
>   - avm2
>   - bit
>   - caf
>   - cavsvideo
>   - codec2
>   - codec2raw
>   - crc
>   - dash
>   - data
>   - daud
>   - dirac
>   - dnxhd
>   - dts
>   - dv
>   - eac3
>   - f4v
>   - ffmetadata
>   - fifo
>   - fifo_test
>   - filmstrip
>   - fits
>   - flac
>   - flv
>   - framecrc
>   - framehash
>   - framemd5
>   - g722
>   - g723_1
>   - g726
>   - g726le
>   - gif
>   - gsm
>   - gxf
>   - h261
>   - h263
>   - h264
>   - hash
>   - hds
>   - hevc
>   - hls
>   - ico
>   - ilbc
>   - image2
>   - image2pipe
>   - ipod
>   - ircam
>   - ismv
>   - ivf
>   - jacosub
>   - latm
>   - lrc
>   - m4v
>   - md5
>   - matroska
>   - matroska
>   - microdvd
>   - mjpeg
>   - mlp
>   - mmf
>   - mov
>   - mp2
>   - mp3
>   - mp4
>   - mpeg
>   - vcd
>   - mpeg1video
>   - dvd
>   - svcd
>   - mpeg2video
>   - vob
>   - mpegts
>   - mpjpeg
>   - mxf
>   - mxf_d10
>   - mxf_opatom
>   - null
>   - nut
>   - oga
>   - ogg
>   - ogv
>   - oma
>   - opus
>   - alaw
>   - mulaw
>   - f64be
>   - f64le
>   - f32be
>   - f32le
>   - s32be
>   - s32le
>   - s24be
>   - s24le
>   - s16be
>   - s16le
>   - s8
>   - u32be
>   - u32le
>   - u24be
>   - u24le
>   - u16be
>   - u16le
>   - u8
>   - psp
>   - rawvideo
>   - rm
>   - roq
>   - rso
>   - rtp
>   - rtp_mpegts
>   - rtsp
>   - sap
>   - sbc
>   - scc
>   - film_cpk
>   - segment
>   - stream_segment,ssegment
>   - singlejpeg
>   - smjpeg
>   - smoothstreaming
>   - sox
>   - spx
>   - spdif
>   - srt
>   - sup
>   - swf
>   - tee
>   - 3g2
>   - 3gp
>   - mkvtimestamp_v2
>   - truehd
>   - tta
>   - uncodedframecrc
>   - vc1
>   - vc1test
>   - voc
>   - w64
>   - wav
>   - webm
>   - webm_dash_manifest
>   - webm_chunk
>   - webp
>   - webvtt
>   - wtv
>   - wv
>   - yuv4mpegpipe
>   - alsa
>   - fbdev
>   - oss
>   - pulse
>   - sdl,sdl2
>   - v4l2
>   - xv
> ...
> MLT detection succeeded, 167 formats, 99 video codecs and 72 audio codecs found.
> 727 MLT services found.
> Loading render profiles...
> Loading filters...
> Brightness dropped, MLT version too low for this filter.
> Loading transitions...
> RGB Adjustment dropped for Color Adjustment
> Hue dropped for Color Adjustment
> Gamma dropped for Lift Gain Gamma
> qt5ct: using qt5ct plugin
> /usr/lib/python2.7/mlt.py:932: Warning: cannot register existing type 'GtkWidget'
>   this = _mlt.new_Producer(*args)
> /usr/lib/python2.7/mlt.py:932: Warning: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
>   this = _mlt.new_Producer(*args)
> /usr/lib/python2.7/mlt.py:932: Warning: cannot register existing type 'GtkBuildable'
>   this = _mlt.new_Producer(*args)
> /usr/lib/python2.7/mlt.py:932: Warning: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed
>   this = _mlt.new_Producer(*args)
> /usr/lib/python2.7/mlt.py:932: Warning: g_once_init_leave: assertion 'result != 0' failed
>   this = _mlt.new_Producer(*args)
> /usr/lib/python2.7/mlt.py:932: Warning: g_type_register_static: assertion 'parent_type > 0' failed
>   this = _mlt.new_Producer(*args)

@martinkg

This comment has been minimized.

Copy link

martinkg commented May 29, 2018

the feedback i got from fedora mailinglist regarding the posted flowblade backtrace (backtrace information of Fedora 28 with mlt-6.8.0:):
flowblade-f28-backtrace.txt

The first clue is near the beginning of the file flowblade-f28-backtrace.txt: 
=====
Thread 1 "python" received signal SIGSEGV, Segmentation fault.
__GI___pthread_mutex_lock (mutex=0x0) at ../nptl/pthread_mutex_lock.c:65
65 unsigned int type = PTHREAD_MUTEX_TYPE_ELISION (mutex);
=====
so the immediate problem is that 'mutex' is a null pointer ("mutex=0x0"), which pthread_mutex_lock() tried to de-reference.
A more-complete clue is in the last portion of the file where "Thread 1" is examined more thoroughly: 
===== 
Thread 1 (Thread 0x7ffff7fbf4c0 (LWP 63747)): 
#0 0x00007ffff776fca0 in __GI___pthread_mutex_lock (mutex=0x0) at ../nptl/pthread_mutex_lock.c:65
#1 0x00007fffe1ebaf7e in XrmQGetResource (db=0x55555601a1f0, names=names@entry=0x7fffffff8ab0, classes=classes@entry=0x7fffffff8abc, pType=pType@entry=0x7fffffff8a9c, pValue=pValue@entry=0x7fffffff8aa0) at Xrm.c:2549 
#2 0x00007fffe1e96d5a in XGetDefault (dpy=dpy@entry=0x555555a08c00, prog=prog@entry=0x7fffe1a28281 "Xft", name=name@entry=0x7fffe1a298d4 "antialias") at GetDflt.c:231 
#3 0x00007fffe19dbb36 in get_boolean_default (value=<synthetic pointer>, option=0x7fffe1a298d4 "antialias", dpy=0x555555a08c00) at cairo-xlib-screen.c:146 
#4 0x00007fffe19dbb36 in _cairo_xlib_init_screen_font_options (info=0x5555561a0160, dpy=0x555555a08c00) at cairo-xlib-screen.c:146 <<snip>> 
===== 
which shows a call chain with source files and line numbers. 
Some environment parameter to the locking protocol for Resources (perhaps specifically: screen fonts) was left unspecified.
If that is not enough of a hint, then you might try running under 'rr' ( https://rr-project.org ) 
which enables "executing backwards" from the point of the SIGSEGV, and even re-running the *EXACT* same execution many times under control of gdb. 
This removes variability due to timing, and supports reliable debugging using repeated divide-and-conquer (guess-and-verify).
@jliljebl

This comment has been minimized.

Copy link
Owner

jliljebl commented Jun 1, 2018

Its the SDL thing again probably, will try to look this soon.

Has MLT been compiled with SDL1.2 support, see here: https://github.com/jliljebl/flowblade/blob/master/flowblade-trunk/docs/SDL_2_AND_MLT_6_6_0.md

@jliljebl

This comment has been minimized.

Copy link
Owner

jliljebl commented Jun 2, 2018

If it isn't the naive "no SDL 1.2" thing we need to bisect MLT to find the offending commit and do/request changes. I've been through this dance 4-5 times already, and it usually takes several weeks to get done.

@oberon-manjaro

This comment has been minimized.

Copy link
Contributor Author

oberon-manjaro commented Jun 2, 2018

Has MLT been compiled with SDL1.2 support,

With the Archlinux mlt at least there hasn't been any change about the way it is compiled at least. They only bumped version from 6.6.0 to 6.8.0 and their build options where identical with the previous (flowblade compatibel) version:

  ./configure --prefix=/usr \
	--avformat-swscale \
	--enable-gpl --enable-gpl3 \
	--qt-libdir=/usr/lib --qt-includedir=/usr/include/qt
@oberon-manjaro

This comment has been minimized.

Copy link
Contributor Author

oberon-manjaro commented Jun 2, 2018

Archlinux lists as optional dependency:
optdepends=('sdl_image: SDL1 plugin'
which gives the impression that sdl 1 should be supported. I also have that package installed.

@martinkg

This comment has been minimized.

Copy link

martinkg commented Jun 14, 2018

on Fedora mlt was compiled against SDL1 and SDL2
installed versions:

# pkg-config /usr/lib64/pkgconfig/sdl2.pc --modversion
2.0.8

# pkg-config /usr/lib64/pkgconfig/sdl.pc --modversion
1.2.15

how far is the status with the troubleshooting ?

@jliljebl

This comment has been minimized.

Copy link
Owner

jliljebl commented Jun 15, 2018

This is not probably a MLT build issue, but more likely a threading issue in SDL audio caused by a patch in MLT. There are some patches that work on this area, so the cause is probably in one on them. I'll get back in this in next few weeks after I have completed my current workflow update work. The probable patches causing this:

mltframework/mlt@b199c89

mltframework/mlt@f06a6df

mltframework/mlt@e647ae3

@oberon-manjaro

This comment has been minimized.

Copy link
Contributor Author

oberon-manjaro commented Jun 15, 2018

I will try reverting these patches and see if that helps.

@oberon-manjaro

This comment has been minimized.

Copy link
Contributor Author

oberon-manjaro commented Jun 15, 2018

No luck. Reverting both the May commits doesn't help. Even the git-snapshot before the March 25 commit has the same problem.
So the relevant change happened before mltframework/mlt@4796172
Maybe I'll find time in the next days to do a proper bisect...

@oberon-manjaro

This comment has been minimized.

Copy link
Contributor Author

oberon-manjaro commented Jun 15, 2018

I have a random hit for a good commit, Feb 23 mltframework/mlt@53181a4
So we don't have too many in between - should be able to make out where it happened pretty soon.
Stay tuned 😉

@oberon-manjaro

This comment has been minimized.

Copy link
Contributor Author

oberon-manjaro commented Jun 15, 2018

Voilà here's your culprit:
mltframework/mlt@7bf5da8

@oberon-manjaro

This comment has been minimized.

Copy link
Contributor Author

oberon-manjaro commented Jun 15, 2018

Seems surprising as it looks like a trivial change ... but I have just confirmed by building the mlt 6.8.0 stable package and applying just the revert patch
flowblade runs fine with this mlt version 😆

@kuboosoft

This comment has been minimized.

Copy link

kuboosoft commented Jun 17, 2018

@oberon-manjaro revert changes in mlt don't like me... flowblade should to update its code... Remember others packages uses mlt...

@oberon-manjaro

This comment has been minimized.

Copy link
Contributor Author

oberon-manjaro commented Jun 17, 2018

Yes, of course most likely this needs to be addressed in flowblade code. For now at least we know where the problem seems to be. Next step is to figure out what needs to be changed.

oberon-manjaro referenced this issue in mltframework/mlt Jul 3, 2018

@Celelibi

This comment has been minimized.

Copy link

Celelibi commented Jul 7, 2018

In my opinion, it's an issue with MLT calling XInitThreads way too late in the qt module. See issue mltframework/mlt#351.

@ddennedy

This comment has been minimized.

Copy link

ddennedy commented Jul 11, 2018

Should Flowblade call XiniThreads()? Shotcut does.

EDIT: I see now that Qt::AA_X11InitThreads is "This value is obsolete and has no effect."

@jliljebl

This comment has been minimized.

Copy link
Owner

jliljebl commented Jul 11, 2018

So calling XinitThreads from Flowblade will not fix this because it was noop in Shotcut?

@ddennedy

This comment has been minimized.

Copy link

ddennedy commented Jul 11, 2018

I reproduced the crash. Removing the call to XInitThreads in the MLT qt module did not fix it.
Changing mlt/share/core/loader.dict to "*.png=pixbuf,qimage" allows Flowblade to start, but it will crash when trying to open a JPEG image (due to using qimage). Likewise, a .txt file rendered by qtext producer instead of pango makes it crash. Removing libmltqt.so lets it all work. It seems Qt 5 may be fundamentally unusable in a GTK app (at least within MLT or failing to create QApplication on the main thread). Do you use any qt-based filters in Flowblade such as audiospectrum, lightshow, or qtblend? I think the safest solution may be a way for an app to ban MLT modules at runtime. Reverting the change to loader.dict is more superficial and still allows an incompatible module to somehow get used (e.g. pixbuf or pango fails to load a corrupt file).

@jliljebl

This comment has been minimized.

Copy link
Owner

jliljebl commented Jul 11, 2018

No, (to my knowledge) Flowblade does not use any Qt filters and MLT providing API to ban loading QT modules would be acceptable solution for Flowblade.

We should then also make sure that all Qt dependent functionality is well contained in as few modules as possible so that maximum amount of functionality continues to be available to Flowblade, e.g. "plus" and "plusgpl" modules should not contain any Qt dependent code.

@ddennedy

This comment has been minimized.

Copy link

ddennedy commented Jul 11, 2018

The following change to Flowblade works for me to ban all Qt producers. The only way that a Qt-based filter or transition would be introduced is by loading a MLT XML, which I see Flowblade prevents.

diff --git a/flowblade-trunk/Flowblade/app.py b/flowblade-trunk/Flowblade/app.py
index e7b9fb33..5c2b3630 100644
--- a/flowblade-trunk/Flowblade/app.py
+++ b/flowblade-trunk/Flowblade/app.py
@@ -250,6 +250,9 @@ def main(root_path):
 
     # Init MLT framework
     repo = mlt.Factory().init()
+    repo.producers().set('qimage', None, 0)
+    repo.producers().set('qtext', None, 0)
+    repo.producers().set('kdenlivetitle', None, 0)
 
     # Set numeric locale to use "." as radix, MLT initilizes this to OS locale and this causes bugs 
     locale.setlocale(locale.LC_NUMERIC, 'C')

If you want a new API added to MLT to alter the module preference and revert the above-mentioned loader.dict change, I can do that. This change would leave pixbuf and pango as preferred and require Shotcut to call the new API to prefer Qt services. However, as I said, that is less safe than the banning change above.

@jliljebl

This comment has been minimized.

Copy link
Owner

jliljebl commented Jul 11, 2018

I applied the patch.

To @oberon-manjaro et. al, does repository Flowblade work with your system MLT?

@oberon-manjaro

This comment has been minimized.

Copy link
Contributor Author

oberon-manjaro commented Jul 12, 2018

It's working, indeed with the standard upstream MLT!

@jliljebl

This comment has been minimized.

Copy link
Owner

jliljebl commented Jul 12, 2018

@oberon-manjaro Great, since KDEnlive people probably do not like downgrading MLT and next Flowblade version is coming in September the intermediate solution is to patch Flowblade in affedcted distros by adding these three lines 495a10c Dan's diff above may work on 1.16 too, not sure.

@ddennedy Thanks for input and patch, this is good enough now. I probably do not even want to make Flowblade itself depend on Qt, even if MLT does.

I'm leaving this open for info for the time being.

@oberon-manjaro

This comment has been minimized.

Copy link
Contributor Author

oberon-manjaro commented Jul 12, 2018

Dan's diff above may work on 1.16 too, not sure.

That's what I actually did. I applied the patch to the latest stable tarball.
So that's what I am going to do now. Add the patch in the AUR and remove the mlt patch in Manjaro 😄

@binli

This comment has been minimized.

Copy link

binli commented Jul 27, 2018

The patch worked for me in latest Debian buster/sid.

@kuboosoft

This comment has been minimized.

Copy link

kuboosoft commented Jul 28, 2018

Patch works in Fedora. Thanks

@fenio

This comment has been minimized.

Copy link

fenio commented Aug 15, 2018

I've just uploaded patched version to Debian unstable aka sid.

@jliljebl

This comment has been minimized.

Copy link
Owner

jliljebl commented Aug 30, 2018

I'm labeling this fixed but leaving open for the time being to see of there are further developments.

@jliljebl jliljebl added the fixed label Aug 30, 2018

@jliljebl jliljebl closed this Feb 16, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.