steps to reproduce 1. get NIKON Raw - NEF file 2. open folder with that file 3. try to save it via ctrl+shift+s 4. file is saved and raw studio crashes with error: terminate called after throwing an instance of 'Exiv2::Error' what(): Invalid tag name or ifdId `NEFThumbnailSize', ifdId 26 reproductible: always # genlop -l | tail Sat Feb 7 20:47:15 2009 >>> media-gfx/exiv2-0.18 Sat Feb 7 20:47:37 2009 >>> media-gfx/rawstudio-1.1.1
please post your emerge --info. as I don't have a nikon cam, it would be useful to attach one of the failing raw files (if it's smaller that the bugzilla limit) or provide it somewhere else, that we can reproduce this failure.
Well NEF file is about 10mb big so I placed it on my host until bug is resolved/fixed. http://quanteam.pl/gentoo/dsc_0199.nef I have verified this file and error persists when you will use it. emerge --info Portage 2.2_rc23 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8-X61 i686) ================================================================= System uname: Linux-2.6.24-gentoo-r8-X61-i686-Intel-R-_Core-TM-2_Duo_CPU_T7300_@_2.00GHz-with-glibc2.0 Timestamp of tree: Wed, 28 Jan 2009 16:15:02 +0000 distcc 3.0 i686-pc-linux-gnu [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7-r1, 2.1.6-r1 dev-lang/python: 2.4.4-r15, 2.5.4-r2 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.2-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" ALSA_CARDS="hda-intel trident" 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" ANT_HOME="/usr/share/ant" APACHE2_MODULES="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 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" ARCH="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CCACHE_DIR="/var/tmp/ccache" CCACHE_SIZE="1G" CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CLASSPATH="." CLEAN_DELAY="5" COLLISION_IGNORE="/lib/modules" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts /etc/fonts/fonts.conf /etc/gconf /etc/init.d /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sound /etc/splash /etc/terminfo /etc/udev/rules.d" CVS_RSH="ssh" CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" DCCC_PATH="/usr/lib/distcc/bin" DISPLAY=":0" DISTCC_DIR="/var/tmp/.distcc" DISTCC_LOG="" DISTCC_VERBOSE="0" DISTDIR="/usr/portage/distfiles" EDITOR="/bin/nano" ELIBC="glibc" EMERGE_DEFAULT_OPTS="-atv --keep-going" EMERGE_WARNING_DELAY="10" FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict suidctl unmerge-orphans userfetch userpriv usersandbox" FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}"" FLTK_DOCDIR="/usr/share/doc/fltk-1.1.7-r2/html" GCC_SPECS="" GDK_USE_XFT="1" GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" GUILE_LOAD_PATH="/usr/share/guile/1.8" HOME="/root" INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info" INPUT_DEVICES="evdev keyboard mouse joystick" JAVAC="/etc/java-config-2/current-system-vm/bin/javac" JAVA_HOME="/etc/java-config-2/current-system-vm" JDK_HOME="/etc/java-config-2/current-system-vm" KERNEL="linux" LANG="pl_PL" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LC_ALL="pl_PL" LDFLAGS="-Wl,-O1" LESS="-R -M --shift 5" LESSOPEN="|lesspipe.sh %s" LINGUAS="pl en en_GB" LOGNAME="root" LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:" MAKEOPTS="-j2" MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man:/etc/java-config/system-vm/man/:/usr/lib/php5/man/:/usr/kde/4.2/share/man:/usr/kde/3.5/share/man:/usr/qt/3/doc/man:/opt/opera/share/man:/opt/vmware/server/man" NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" NOCOLOR="true" OPENGL_PROFILE="xorg-x11" PAGER="/usr/bin/less" PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/usr/kde/4.2/sbin:/usr/kde/4.2/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/opt/firebird/bin:/opt/vmware/server/bin:/opt/vmware/server/console/bin" PKGDIR="/usr/portage/packages" PKG_CONFIG_PATH="/usr/qt/3/lib/pkgconfig" PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha hppa sparc-fbsd" PORTAGE_BINHOST_CHUNKSIZE="3000" PORTAGE_BIN_PATH="/usr/lib/portage/bin" PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png" PORTAGE_CONFIGROOT="/" PORTAGE_COUNTER_HASH="c6d2dbc28949ef018b0c569a7c7c87ff" PORTAGE_DEBUG="0" PORTAGE_DEPCACHEDIR="/var/cache/edb/dep" PORTAGE_ECLASS_WARNING_ENABLE="0" PORTAGE_ELOG_CLASSES="warn error log" PORTAGE_ELOG_MAILFROM="portage@quanteam.pl" PORTAGE_ELOG_MAILSUBJECT="package ${PACKAGE} merged on ${HOST} with notice" PORTAGE_ELOG_MAILURI="root" PORTAGE_ELOG_SYSTEM="echo save" PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5" PORTAGE_FETCH_RESUME_MIN_SIZE="350K" PORTAGE_GID="250" PORTAGE_INST_GID="0" PORTAGE_INST_UID="0" PORTAGE_NICENESS="19" PORTAGE_PYM_PATH="/usr/lib/portage/pym" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_RSYNC_RETRIES="3" PORTAGE_TMPDIR="/var/tmp" PORTAGE_VERBOSE="1" PORTAGE_WORKDIR_MODE="0700" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/kde-testing /usr/local/portage" PRELINK_PATH_MASK="/usr/lib/klibc" PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND" PWD="/root" QMAKESPEC="linux-g++" QTDIR="/usr/qt/3" RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}"" ROOT="/" ROOTPATH="/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/usr/kde/4.2/sbin:/usr/kde/4.2/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/opt/firebird/bin:/opt/vmware/server/bin:/opt/vmware/server/console/bin" RPMDIR="/usr/portage/rpm" RUBYOPT="-rauto_gem" SANE_CONFIG_DIR="/etc/sane.d" SCHEME_LIBRARY_PATH="/usr/share/slib/" SHELL="/bin/bash" SHLVL="1" SYNC="rsync://gentoo.prz.rzeszow.pl/gentoo-portage" TERM="xterm" USB_DEVFS_PATH="/dev/bus/usb" USE="X a52 aac accessibility acpi additions alsa amarok archive avahi bash-completion berkdb bluetooth bonjour branding bzip2 cairo calendar captury cddb cdr cli cpudetection cracklib crypt cups daap dbus device-mapper dhcp dialup directfb disk-partition divx dri dvd dvdr dvdread eds emboss encode esd evo exif fam fbcon fbcondecor fbsplash firefox flac fontconfig fortran gdbm gif gmedia gnokii gnutls gphoto2 gpm gps gstreamer gtk hal hdaps htmlhandbook http ical iconv ieee1394 imagemagick ipv6 isdnlog jack joystick jpeg kde kdeprefix kipi laptop ldap libnotify lm_sensors logitech-mouse mad midi mikmod mmx modplug mp3 mpeg mplayer mudflap musepack musicbrainz mysql ncurses networkmanager nfs nls nptl nptlonly nsplugin ogg opengl openmp pam pch pcmcia pcre pdf perl plasma png ppds pppd pulseaudio python qt3 qt3support qt4 quicktime raw readline realmedia reflection samba scanner sdl session sms speex spell spl sqlite sse sse2 ssl ssse3 startup-notification svg sysfs syslog tcpd theora threads tiff truetype usb vcd vidix vnc vorbis win32codecs x86 xcomposite xine xinerama xml xorg xosd xpm xscreensaver xulrunner xv xvid zeroconf zip zlib" ALSA_CARDS="hda-intel trident" 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 authn_alias authn_anon 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 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en en_GB" USERLAND="GNU" VIDEO_CARDS="vesa intel i810" USER="root" USERLAND="GNU" USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES USERLAND VIDEO_CARDS" USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND" USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d" VIDEO_CARDS="vesa intel i810" XAUTHORITY="/root/.xauth2IDs60" XDG_DATA_DIRS="/usr/share:/usr/kde/4.2/share:/usr/local/share:/usr/kde/3.5/share" _="/usr/bin/emerge"
Hi, I've the same error with my K10D DNG files. terminate called after throwing an instance of 'Exiv2::Error' what(): Invalid tag name or ifdId `NEFThumbnailSize', ifdId 26
I can confirm this on amd64. It seems to be a media-gfx/exiv2 issue though as downgrading to media-gfx/exiv2-0.17 (from 0.18) solved the problem for me.
Pawel, Boris: can you confirm that downgrading to media-gfx/exiv2-0.17 solves this issue?
This is due to a change of the name of one of the Nikon maker tags in Exiv2 v. 0.18. Upstream bug is http://bugzilla.rawstudio.org/show_bug.cgi?id=258 and the bug includes a patch as well.
patch is in cvs, thanks for the pointer to the patch. +*rawstudio-1.1.1-r1 (05 Apr 2009) + + 05 Apr 2009; Markus Meier <maekke@gentoo.org> + +files/rawstudio-1.1.1-exiv2-0.18.patch, +rawstudio-1.1.1-r1.ebuild: + revision bump to fix nikon raw files with media-gfx/exiv2-0.18, bug + #258058