Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 563106 - kde-apps/kdenlive-15.08.1 crashes when adding a jpg clip to project bin (GPU enabled)
Summary: kde-apps/kdenlive-15.08.1 crashes when adding a jpg clip to project bin (GPU ...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL: https://bugs.kde.org/show_bug.cgi?id=...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-15 08:11 UTC by Anton Gubarkov
Modified: 2016-04-13 12:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
stack trace of the crash (core.31306.backtrace,22.60 KB, text/plain)
2015-10-15 08:20 UTC, Anton Gubarkov
Details
kdenlive backtrace (core.11902.backtrace,19.12 KB, text/plain)
2015-10-15 09:02 UTC, Anton Gubarkov
Details
stack trace of adding jpg to 15.12 project bin (kdenlive-15.12.core,23.76 KB, text/plain)
2015-12-20 20:55 UTC, Anton Gubarkov
Details
screenshot of garbled JPEG clip (Снимок экрана от 2015-12-26 23-31-01.png,521.52 KB, image/png)
2015-12-26 20:33 UTC, Anton Gubarkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Gubarkov 2015-10-15 08:11:10 UTC
when a JPG image is added to the project bin, kdenlive crashes with the message:

[swscaler @ 0x7f23240667a0] Warning: data is not aligned! This can lead to a speedloss
kdenlive: ycbcr_input.cpp:76: movit::YCbCrInput::YCbCrInput(const movit::ImageFormat&, const movit::YCbCrFormat&, unsigned int, unsigned int): Assertion `width % ycbcr_format.chroma_subsampling_x == 0' failed.
Aborted (core dumped)

This doesn't happen when GPU setting in Playback is not active. This is a small relief as the main effect I apply to images is Pan & Zoom and it's GPU only.
Comment 1 Anton Gubarkov 2015-10-15 08:13:23 UTC
anton@r9-008cln ~ $ emerge --info kdenlive
!!! Repository 'fw-overlay' has sync-uri attribute, but is missing sync-type attribute
Portage 2.2.23 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.9.3, glibc-2.21-r1, 4.2.3-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.2.3-gentoo-x86_64-Intel-R-_Core-TM-_i7-4700MQ_CPU_@_2.40GHz-with-gentoo-2.2
KiB Mem:    15782412 total,   2408788 free
KiB Swap:   41943032 total,  41943032 free
Timestamp of repository gentoo: Wed, 14 Oct 2015 18:15:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.4.3::gentoo, 3.5.0-r1::gentoo
dev-util/cmake:           3.3.2-r1::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.18.2::gentoo
sys-apps/sandbox:         2.9::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.2::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.ru.gentoo.org/gentoo-portage
    priority: -1000

rugubara
    location: /home/anton/devel/rugubara
    masters: gentoo
    priority: 0

anders-larsson
    location: /var/lib/layman/anders-larsson
    masters: gentoo
    priority: 50

betagarden
    location: /var/lib/layman/betagarden
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/betagarden.git
    masters: gentoo
    priority: 50

bumblebee
    location: /var/lib/layman/bumblebee
    masters: gentoo
    priority: 50

fw-overlay
    location: /var/lib/layman/fw-overlay
    sync-uri: https://github.com/no-hope/fw-overlay.git
    masters: gentoo
    priority: 50

jorgicio
    location: /var/lib/layman/jorgicio
    masters: gentoo
    priority: 50

proaudio
    location: /var/lib/layman/pro-audio
    masters: gentoo
    priority: 50

sabayon
    location: /var/lib/layman/sabayon
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam
    masters: gentoo
    priority: 50

sunrise
    location: /var/lib/layman/sunrise
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/sunrise-reviewed.git
    masters: gentoo
    priority: 50

tlp
    location: /var/lib/layman/tlp
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.tiscali.nl/ http://gentoo.bloodhost.ru/ http://mirror.yandex.ru/gentoo-distfiles/ http://mirror.bytemark.co.uk/gentoo/"
LANG="en_US.utf-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/etersoft"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi aes alsa amd64 archive avahi avx avx2 bash-completion berkdb bluetooth bluray branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx cycles dbus dri dri3 dts dvd dvdr eds egl emboss encode evdev evo exif extras faac fam ffmpeg firefox flac fma3 fortran frei0r g711 g722 g7221 gbm gdbm gif gimp glamor gles2 gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 http iconv ieee1394 introspection ios ipv6 jack jpeg jpeg2k kms lcms ldap libnotify libsamplerate libsecret lv2 mad midi mmx mmxext mng modules mp3 mp4 mpeg mtp multilib nautilus ncurses networkmanager nls nptl nsplugin nvenc ogg opengl openmp pam pango pcre pdf png policykit popcnt postproc ppds pulseaudio qt3support qt5 rar raw readline realtime samba sdl seccomp sendto session smp speex spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff tracker truetype udev udisks unicode upower usb uxa v4l vaapi vdpau vorbis vpx wayland wxwidgets x264 x265 xa xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="multiboot efi-64 pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver" LINGUAS="en ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby22" USERLAND="GNU" VIDEO_CARDS="intel nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.3"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

kde-apps/kdenlive-15.08.1::gentoo was built with the following:
USE="handbook v4l -debug" ABI_X86="64"
Comment 2 Michael Palimaka (kensington) gentoo-dev 2015-10-15 08:14:21 UTC
Are you able to get a backtrace at all?
Comment 3 Anton Gubarkov 2015-10-15 08:20:52 UTC
Created attachment 414586 [details]
stack trace of the crash

I compiled movit, mlt and kdenlive with debug info. Please le me know if additional debug information is needed.
Comment 4 Anton Gubarkov 2015-10-15 09:02:40 UTC
Created attachment 414594 [details]
kdenlive backtrace

This is a more relevant backtrace. the previous one turned out to be a crash under a different condition.
Comment 5 Michael Palimaka (kensington) gentoo-dev 2015-10-15 09:36:58 UTC
What are your mlt USE flags? I'm trying to reproduce, but I'm struggling to get a configuration where mlt doesn't instantly segfault.
Comment 6 Anton Gubarkov 2015-10-15 10:55:27 UTC
I also suffer from https://bugs.gentoo.org/show_bug.cgi?id=558756.

I use a modified mlt ebuild to link against qt5
https://bugs.gentoo.org/attachment.cgi?id=412372
Comment 7 Anton Gubarkov 2015-10-15 10:56:36 UTC
anton@r9-008cln ~ $ emerge -pv mlt
!!! Repository 'fw-overlay' has sync-uri attribute, but is missing sync-type attribute

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] media-libs/mlt-0.9.8-r1::rugubara  USE="ffmpeg frei0r gtk jack kdenlive libsamplerate melt opengl python qt5 rtaudio sdl vdpau xml -compressed-lumas -debug* -fftw -kde -libav -lua -qt4 (-ruby) -xine" CPU_FLAGS_X86="mmx sse sse2" PYTHON_TARGETS="python2_7" 0 KiB
Comment 8 Michael Palimaka (kensington) gentoo-dev 2015-12-20 16:31:00 UTC
This is working OK for me in 15.12.0.
Comment 9 Anton Gubarkov 2015-12-20 20:44:49 UTC
Well... 

I still have this problem.
I'll try to get a stack trace
Comment 10 Anton Gubarkov 2015-12-20 20:55:49 UTC
Created attachment 419942 [details]
stack trace of adding jpg to 15.12 project bin

the problem still there. kdenlive-15.12 segfaults when using GPU
Comment 11 Andreas Sturmlechner gentoo-dev 2015-12-26 00:22:23 UTC
This commit looks related? https://quickgit.kde.org/?p=kdenlive.git&a=commit&h=c870fc5fd87f12a808b0942375d75e766963402a
Comment 12 Anton Gubarkov 2015-12-26 20:33:15 UTC
Created attachment 420910 [details]
screenshot of garbled JPEG clip

This patch prevents the crash indeed, however it prevents playing the clips too.
It doesn't work for clips in the timeline neither. 

I can no longer play any of the clips/projects when this patch is applied and GPU is enabled.
Comment 13 Michael Palimaka (kensington) gentoo-dev 2015-12-27 14:01:12 UTC
Is there an upstream bug report about this issue? They're usually pretty responsive.
Comment 14 Johannes Huber (RETIRED) gentoo-dev 2016-04-13 12:14:18 UTC
(In reply to Michael Palimaka (kensington) from comment #13)
> Is there an upstream bug report about this issue? They're usually pretty
> responsive.

Please report this issue upstream if this is still present in current version.
Comment 15 Anton Gubarkov 2016-04-13 12:58:53 UTC
Yes, I did report it upstream. Updated the URL.
I had to switch to kdenlive git to be able to test the fixes. This one works fine.