Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 217981 - media-video/qt-recordmydesktop-0.3.7.2: TypeError: unsupported operand type(s) for +=: 'NoneType' and 'NoneType' when using Select Window button
Summary: media-video/qt-recordmydesktop-0.3.7.2: TypeError: unsupported operand type(s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-16 16:59 UTC by Joe Roberts
Modified: 2012-04-26 11:24 UTC (History)
3 users (show)

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 Joe Roberts 2008-04-16 16:59:08 UTC
When using Select Window button, I receive the following error:

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/qt_recordMyDesktop/rmdSimple.py", line 220, in __select_window__
    width+=x
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'NoneType'

I also receive this error with gtk-recordmydesktop.  I am unsure as to whether or not the problem is with these front-ends or the recordmydesktop application itself.  qt-recordmydesktop uses its own version of rmdSimple.py, while the gtk one seems to use the one in the recordmydesktop directory, which is confusing to me.

Reproducible: Always

Steps to Reproduce:
1. Run qt-recordMyDesktop
2. Press the Select Window button

Actual Results:  
The Select Window option does not work.  Manually drawing a box to select the area of the screen does work (but is difficult to be precise with).

Expected Results:  
The window should be selected by calculating its geometry automatically.  Instead, the region of the screen must be selected manually.

Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r4 x86_64 Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz
Timestamp of tree: Tue, 15 Apr 2008 23:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.espri.arizona.edu/gentoo/ "
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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="/usr/portage/local/layman/sajinet /usr/portage/local/layman/sunrise /usr/portage/local/layman/zugaina /usr/portage/local/layman/armagetron /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib acl alsa amarok amd64 arts artswrappersuid bash-competion berkdb binary-drivers cairo cdr cdrom cli cracklib crypt cups curl curlwrappers custom-flags dbus dga divx doc dri dv dvd dvdr dvdread effects emul-linux-x86 encode ffmpeg flac fortran gcj gdbm geoip gif gimp gnutls gpm icecast iconv ieee1394 imagemagick ipv6 isdnlog ivtv jabber jack jack-tmpfs java javascript jpeg jpeg2k kde kvm ladspa lame libcaca libsamplerate lm_sensors midi mmx mp2 mp3 mp4 mpeg2 mplayer mudflap musicbrainz ncurses nemesi net network nls nntp nptl nptlonly nsplugin nvidia offensive ogg opengl openmp pam pcre pdf perl php png ppds pppd pulseaudio python qemu qt3 qt4 quicktime radio readline realmedia reflection samba scanner sdl sdl-image sdl-sound sdlaudio sdlcd server session shout sid snmp sockets socks5 sox spl sse sse2 ssl stats swat tagwriting tcpd theora threads tiff tokenizer truetype unicode usb utempter v4l v4l2 vcd verbose visualization vnc vncviewer vorbis xcomposite xine xml xorg xv yahoo zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia ivtvdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Package versions in question are:

media-video/recordmydesktop-0.3.7.3
media-video/qt-recordmydesktop-0.3.7.2
media-video/gtk-recordmydesktop-0.3.7.2
dev-lang/python-2.4.4-r9

I have attempted, in order:

1. python-updater (Result: no old versions found on system)
2. revdep-rebuild (Nothing of note)
3. re-emerging python
4. re-emerging recordmydesktop
5. re-emerging both front-ends
Comment 1 Alex Alexander (RETIRED) gentoo-dev 2008-12-05 08:51:33 UTC
I've encountered this bug too.

However:
system with kde4-svn (kde-crazy) and qt-4.4.9999 doesn't work.
system with fluxbox (+kde-crazy apps) and qt-4.4.2 works!

both systems ~amd64

Im guessing its either kde4 or qt-4.4.9999 that screws things up.
Comment 2 Christian Faulhammer (RETIRED) gentoo-dev 2009-01-14 17:09:28 UTC
Please try with the just committed 0.3.8(.1) versions.
Comment 3 numerodix 2009-02-25 20:20:15 UTC
(In reply to comment #2)
> Please try with the just committed 0.3.8(.1) versions.
> 

Yeah, still happens.
Comment 4 Joe Roberts 2009-04-22 06:37:20 UTC
It's been about a year.  I reinstalled Gentoo from scratch about a week ago, so this is a fresh system.

2.6.27-gentoo-r8 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-x86_64-Intel-R-_Core-TM-2_CPU_6700_@_2.66GHz-with-glibc2.2.5
Timestamp of tree: Wed, 22 Apr 2009 05:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-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="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.mirrors.pair.com/ http://gentoo.llarian.net/ http://gentoo.binarycompass.org http://mirror.datapipe.net/gentoo http://mirrors.cs.wmich.edu/gentoo http://mirror.usu.edu/mirrors/gentoo/ http://mirror.mcs.anl.gov/pub/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ http://lug.mtu.edu/gentoo/ http://gentoo.mirrors.hoobly.com/ http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://mirror.its.uidaho.edu/pub/gentoo/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
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="/usr/portage/local/layman/yarik-overlay /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="32bit X a52 aalib acl acpi administrator aften aim akode alias alsa amazon amd64 amr amrnb amrwb aotuv archive bash-completion berkdb binary-drivers branding bundledlibevent bwscheduler bzip2 cairo cdda cddax cddb cdio cdparanoia cdr cdrom chm chroot cli colordiff connectionstatus contactnotes corefonts cpudetection cracklib crypt css cups cupsddk curl dbus dedicated dga dirac divx downloadorder dri dts dv dvd dvdnav dvdr eigen elf emovix enca encode examples exif extra-algorithms extrafilters fam fame fax festival ffmpeg finger firefox3 flac fontconfig foomaticdb fortran fping ftp garmin gd gdbm geoip gif gimp gmail gnutella gopher gpac gphoto2 gpm grub gs gstreamer gtk hal hash hddtemp hdri history hpn html htmlhandbook iconv id3 id3tag idn ieee1394 imagemagick infowidget ipfilter isdnlog jabber jack jadetex java java6 javascript jingle joystick jpeg jpeg2k kde kde4 kdm kernel-helper kqemu kross ktts kvm lame libcaca libnotify libv4l2 libvisual live lm_sensors logrotate logviewer lzo maildir matroska mbox mbrola mediaplayer midi mime mmx mmxext mng modules mono mozilla mp2 mp3 mp4 mp4live mpeg mpeg2 mplayer mpu401 msn mtp mudflap multilib multiuser musepack musicbrainz nas ncurses net netjack netmeeting network nfs nls normalize nowlistening npp nptl nptlonly nsplugin nuv nvidia offensive ogg opengl openmp oscar otr oxygen pam pango parport passfile pcf pcre pdf perl perl-geoipupdate phonon php pipes pixmaps player plugins png pnm postproc postscript povray ppds pppd privacy pulseaudio python q32 qemu qt3 qt4 quicktime rar raw readline realmedia reflection rss rtc samba sasl scanfolder scanner sdl search sensord serial session sftp shout slp smp sms smtp snmp spl sse sse2 sse3 ssl ssse3 statistics stats stream subtitles sysfs sysvipc tcpd teamarena teletext test texteffect tga theora thumbnail tidy tiff timidity tokenizer tools translator tremor truetype unicode unsupported upnp ups urlpicpreview usb v4l v4l2 vamp vcd vcdinfo vcdx vde vdpau vhook videos visualization vlm vnc vorbis vorbis-psy wavpack webdav webinterface webpresence winpopup wlm wma wmf wmp wxwindows x11vnc x264 xcomposite xface xforms xft xine xml xmlwriter xorg xorgmodule xosd xpm xscreensaver xv xvid xvmc yahoo yp yv12 zeroconf zip zlib" 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" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Tried the same as in the original report.  Also both frontends report the same error, so it's definitely in the basic "recordmydesktop" package still.

Python is v2.5.4-r2.
recordmydesktop is 0.3.8.1
qt-recordmydesktop is 0.3.8


Comment 5 Michael Palimaka (kensington) gentoo-dev 2012-04-26 11:22:43 UTC
Seems like it's fixed - I couldn't reproduce using recordmydesktop-0.3.8.1-r4 and qt-recordmydesktop-0.3.8-r1.
Comment 6 Johannes Huber (RETIRED) gentoo-dev 2012-04-26 11:24:23 UTC
(In reply to comment #5)
> Seems like it's fixed - I couldn't reproduce using
> recordmydesktop-0.3.8.1-r4 and qt-recordmydesktop-0.3.8-r1.

Thanks for testing.