Gentoo Base System version 1.12.5 Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo- r8 i686) ================================================================= System uname: 2.6.17-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Last Sync: Tue, 26 Sep 2006 05:30:08 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.2.11-r1 dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shu tdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer" DISTDIR="/arc/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.ynet.sk/pub http://gentoo.inode.at/ ftp://ftp.wh2. tu-dresden.de/pub/mirrors/gentoo http://gentoo.po.opole.pl http://gentoo.osuosl. org/" LANG="POSIX" LC_ALL="POSIX" LINGUAS="en sk" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/d istfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X a52 aac acpi alsa apache2 asf audiofile berkdb bitmap-fonts browserpl ugin bzip2 cdparanoia cdrom cli cpudetection crypt css cups dlloader dri dvd dvd r dvdread elibc_glibc emacs encode ffmpeg firefox flac foomaticdb gdbm gif gimp gimpprint glut gpm gtk gzip idn imap imlib input_devices_keyboard input_devices_ mouse ipv6 isdnlog java jpeg jpeg2k kernel_linux lame lcd lcms leim libg++ lingu as_en linguas_sk lm_sensors lzw mad maildir mikmod mmx mng motif mozdevelop mozs vg mp3 mpeg mpeg2 ncurses nls no-htdocs no-suexec nptl nptlonly nsplugin nvidia ogg opengl oss pam pcre perl png ppds pppd python quicktime rar readline real re flection reiserfs sdl session slang spl sse sse2 ssl subtitles svga syslog tcltk tiff transcode truetype truetype-fonts type1-fonts udev unicode usb userland_GN U userlocales utf8 v4l v4l2 video_cards_nvidia vorbis win32codecs xml xmms xorg xpm xprint xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA _OPTS, PORTDIR_OVERLAY
xv -wait n files* does 'slide-show' with n seconds waiting before displaying next image. after I upgraded to 2006.1 (and gcc-4.1) this feature stopped working. xv -wait 0 files* works - displaying images in rapid succession. xv -wait 1 files* works - displaying images with 1 second delay. but anything bigger that 1 (in seconds to wait) causes to display first image and not to switch to next ones. and I think also xv program itself is somehow delayed - every action (like manually jumping to next image) is slower than usual.
It WFM here with media-gfx/xv-3.10a-r12, please give the exact commandline you are using, and the aproximate number of images you are displaying. With this: $ ls cimg0001.jpg cimg0005.jpg cimg0009.jpg cimg0013.jpg cimg0002.jpg cimg0006.jpg cimg0010.jpg cimg0015.jpg cimg0003.jpg cimg0007.jpg cimg0011.jpg cimg0016.jpg cimg0004.jpg cimg0008.jpg cimg0012.jpg cimg0017.jpg $ xv -wait 2 * xv behaves as expected.
Yes xv is media-gfx/xv-3.10a-r12. Any number of images: $ ls calderaOMons_marsexpress_lg.jpg planetary-nebula.jpg crabmosaic_hst_f.jpg saturn.jpg dr21b_spitzer_big.jpg saturn-mimas.png earth.jpg saturn-PIA01464.jpg jupiterPIA02873.jpg sedna-PIA05566.jpg m39.jpg solar-eclipse-corona.jpg marsheart_mgs_big.gif spiral-galaxy-m101.jpg milky-way.jpg supernova-remnant.jpg ngc1818.jpg tarantula_ctio_big.jpg NGC-2440-Cocoon-of-a-New-White-Dwarf.jpg whirlpool-galaxy.jpg $ xv -wait 1 * is ok $ xv -wait 2 * would not show second or any other image It could be something rotten on my system but I don't know what. This appeared after upgrade to 2006.1 and sys-devel/gcc-4.1.1, sys-libs/glibc-2.4-r3. I've rebuild system and world - as suggested in gcc upgrade guide.
*** Bug 164156 has been marked as a duplicate of this bug. ***
Created attachment 117204 [details, diff] A fix so that "-wait x" where x>1 works "man 2 times" states that CLK_TCK is obsolete. sysconf(_SC_CLK_TCK) should be used.
Indeed, the code used to get 1000000L from CLK_TCK, whereas the real number of ticks per second as reported by sysconf(_SC_CLK_TCK), on my system, is 100, causing the issue. The patch provided definitely addresses the issue, and I've applied a very similar patch (thanks for the submission!). I've also changed a few small things like checking for potential negative delays (I've seen them) and avoiding them by not using ">=" (but ">" instead) when checking whether to use sleep or Timer. However, due to uncertainty (as commented in the code) about what might happen on a rollover and non-POSIX use of times(NULL) (even though Linux handles it), I wonder if xv should attempt to use ticks. I have an email out to upstream, and we'll see what he says. For now, I will check in the fix.