Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 393677 - media-gfx/digikam-2.3.0 crashes when scanning faces
Summary: media-gfx/digikam-2.3.0 crashes when scanning faces
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-08 22:13 UTC by urcindalo
Modified: 2012-01-14 16:57 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description urcindalo 2011-12-08 22:13:07 UTC
Whenever I launch the face recognition option in the recently stabled digikam-2.3.0 the app crashes.

With the stable opencv-2.3.0 I get this error:
===
$ digikam
QSqlDatabasePrivate::removeDatabase: connection 'ConnectionTest' is still in use, all queries will cease to work.
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/ramiro/.local/share/marble/maps/earth/placemarks/
Time elapsed: 105 ms
Model: Time elapsed: 0 ms
TextureColorizer::setSeaFileLandFile: Time elapsed: 19 ms
Finished loading all placemarks  2085 
Cascade directory located as : /usr/share/apps/libkface/haarcascadesCascade directory located as : /usr/share/apps/libkface/haarcascades

KCrash: Application 'digikam' crashing...
KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit
sock_file=/home/ramiro/.kde4/socket-Ptero/kdeinit4__0
OpenCV Error: Parsing error (/usr/share/apps/libkface/haarcascades/haarcascade_mcs_righteye.xml(32790): Preliminary end of the stream) in icvXMLParseTag, file /var/tmp/portage/media-libs/opencv-2.3.0/work/OpenCV-2.3.0/modules/core/src/persistence.cpp, line 2020
QSocketNotifier: Invalid socket 15 and type 'Read', disabling...
QSocketNotifier: Invalid socket 30 and type 'Read', disabling...
QSocketNotifier: Invalid socket 35 and type 'Read', disabling...
digikam(2591)/KFACE: cv::Exception: /var/tmp/portage/media-libs/opencv-2.3.0/work/OpenCV-2.3.0/modules/core/src/persistence.cpp:2020: error: (-212) /usr/share/apps/libkface/haarcascades/haarcascade_mcs_righteye.xml(32790): Preliminary end of the stream in function icvXMLParseTag
 
Unable to start Dr. Konqi
===


After updating opencv to ~amd64 2.3.1a the error changes to:
===
$ digikam
QSqlDatabasePrivate::removeDatabase: connection 'ConnectionTest' is still in use, all queries will cease to work.
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No existe el fichero o el directorio
QFileSystemWatcher: failed to add paths: /home/ramiro/.local/share/marble/maps/earth/placemarks/
Time elapsed: 120 ms
Model: Time elapsed: 0 ms
TextureColorizer::setSeaFileLandFile: Time elapsed: 10 ms
Finished loading all placemarks  1440 
Cascade directory located as : /usr/share/apps/libkface/haarcascades
Cascade directory located as : /usr/share/apps/libkface/haarcascades
QSocketNotifier: Invalid socket 8 and type 'Read', disabling...
QSocketNotifier: Invalid socket 10 and type 'Read', disabling...
digikam: Fatal IO error: client killed
Unable to start Dr. Konqi
===

Any ideas?

Reproducible: Always

Steps to Reproduce:
1.Expand the People sidebar
2.Press the Scan collections for faces button
3.Select options and press the Scan button



Portage 2.1.10.11 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.13-r4, 3.0.6-gentoo x86_64)
=================================================================
System uname: Linux-3.0.6-gentoo-x86_64-AMD_Athlon-tm-_X2_Dual-Core_QL-65-with-gentoo-2.0.3
Timestamp of tree: Wed, 07 Dec 2011 23:00:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: science x-local gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64-sse3 -mtune=athlon64-sse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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=athlon64-sse3 -mtune=athlon64-sse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="es_ES.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="es_ES es en_US en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/science /usr/portage/local /usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnowext X a52 aac aalib acl acpi additions adns ads aften aim aio akonadi alsa amd64 apbs apm arpack ass async atm audio audiofile autoipd autotrace avahi bash-completion battery bcmath beagle berkdb bidi binary-drivers binfilter blas bluetooth branding bzip2 cairo caps cdda cddb cdr cgi charconv chasen chm clamav cleartype cli client-only clisp cmake compat consolekit context contrib cracklib crypt css cups curl custom-optimization cvs cxx daemon dbus declarative desktopglobe detex dga dhcpcd dia dirac directfb dosformat dri dts dv dvb dvd dvdr dvi dvi2tty dvipdfm eap-sim editor emboss emovix encode exif extra fam fat fbcon ffmpeg fftw firefox firefox3 flac fltk fontconfig foomaticdb fortran ftp fuse gallium gcj gdbm gdu geoip geolocation gif gimp ginac gnome-keyring gnuplot gphoto2 gpm gps graphics graphviz grub gsl gtk gtkhtml gzip hddtemp hdri hfs hpcups hpijs iconv icu idn imagemagick imap imlib ioctl ipod ipv6 jack jadetex java java6 javascript jce jpeg jpeg2k justify kate kde kipi lame lapack laptop lasi latex latex3 lcms ldap lensfun libass libcaca libnotify libv4l libv4l2 libwww live lm_sensors logrotate lqr lzma lzo mad madwifi maildir mailwrapper matroska matrox mbox mcve mdnsresponder-compat memlimit metric mime mmap mmx mmxext mng modplug modules mono mopac7 motif mp3 mp4 mpeg mpi mplayer msn mtp mudflap multilib musepack nas ncurses network networkmanager nforce2 nls npp nptl nptlonly nsplugin ntfs ntfsprogs numpy octave ods ogg omega opal openal openbabel openexr opengl openmp osc oscar osdmenu oss pam pango pcre pdf phonon pkcs11 plasma plotutils pm-utils pmu png policykit portaudio posix povray ppds ppm ppp ps psf pstoedit pstricks publishers pvr pymol qt3support qt4 quicktime rar raster raw rdesktop readline recode reiser4 reiserfs remote remoteosd rss rtsp ruby samba sasl scanner schroedinger science sdl sdl-image semantic-desktop session shaders sharedmem shorten simplexml skins skype slang slp smartcard smp snmp sockets solver sox sparse spell sse sse2 sse3 ssl ssse3 startup-notification stats stream subtitles subversion svg sysfs syslog szip taglib tcl tcpd tex4ht tga theora threads thumbnail thumbnails tidy tiff tk transcode truetype twolame type3 udev udev-acl unicode upnp usb userlocales v4l v4l2 vcd video vlm vmd vnc vorbis wavpack webinterface wifi winbind winpopup wma wma-fixed wmf wpg wps wxwidgets x264 xattr xcb xcomposite xetex xft xindy xine xinerama xls xml xorg xosd xplanet xpm xscreensaver xulrunner xv xvid yahoo zeroconf zip zlib zvbi" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" FOO2ZJS_DEVICES="hp1000" 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 ubx" INPUT_DEVICES="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es_ES es en_US en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson2 hp" USERLAND="GNU" VIDEO_CARDS="radeon" 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"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2011-12-31 21:12:54 UTC
Sorry, but the error messages are not really sufficient to diagnose the problem. You could test digikam-2.4.1 and/or try to get a backtrace manually (without drkonqui). For that you need to follow the steps at 

http://www.gentoo.org/proj/en/qa/backtraces.xml

and start digikam with command line option --nocrashhandler

In addition, it would make sense to report your results at http://bugs.kde.org and add here a link to that bug report.
Comment 2 urcindalo 2012-01-14 16:44:57 UTC
I solved the issue.

To make a long story short, I usually have two terminal sessions open: one for my laptop, another one for my lab box (through ssh). It seems I mixed them up and activated the sse3 and ssse3 USE flags on the wrong terminal, which in turn compiled into my laptop's opencv package.

After removing sse3 and ssse3 from my USE flags and reinstalling digikam and all of its dependencies, face scanning is working as expected.
Comment 3 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2012-01-14 16:57:27 UTC
Fixing resolution.