Bug 768309

Summary: [abrt] qt-recordmydesktop-0.3.8-4.fc16: rmdSimple.py:218:__select_window__:TypeError: unsupported operand type(s) for +=: 'NoneType' and 'NoneType'
Product: [Fedora] Fedora Reporter: Dieter Vandenbroeck <dietervandenbroeck>
Component: qt-recordmydesktopAssignee: Mat Booth <mat.booth>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: lakshminaras2002, mat.booth
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:6390159e2ece22e3207dbf66c722bbafc51b50c8
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-13 14:25:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: smolt_data
none
Fix to avoid adding None values none

Description Dieter Vandenbroeck 2011-12-16 10:07:12 UTC
libreport version: 2.0.7
abrt_version:   2.0.6
cmdline:        /usr/bin/python /usr/bin/qt-recordMyDesktop
comment:        Select window, click window (multiple times)
executable:     /usr/bin/qt-recordMyDesktop
kernel:         3.1.5-1.fc16.x86_64
reason:         rmdSimple.py:218:__select_window__:TypeError: unsupported operand type(s) for +=: 'NoneType' and 'NoneType'
time:           Fri 16 Dec 2011 11:05:53 AM CET
uid:            500
username:       Dieter

smolt_data:     Text file, 3415 bytes

backtrace:
:rmdSimple.py:218:__select_window__:TypeError: unsupported operand type(s) for +=: 'NoneType' and 'NoneType'
:
:Traceback (most recent call last):
:  File "/usr/lib/python2.7/site-packages/qt_recordMyDesktop/rmdSimple.py", line 218, in __select_window__
:    width+=x
:TypeError: unsupported operand type(s) for +=: 'NoneType' and 'NoneType'
:
:Local variables in innermost frame:
:wid: ['\n', 'xwininfo: Please select the window about which you\n', '          would like information by clicking the\n', '          mouse in that window.\n']
:stdout: <closed file '<fdopen>', mode 'rb' at 0x7fa48a61e5d0>
:i: '          mouse in that window.\n'
:button: None
:stdin: <closed file '<fdopen>', mode 'wb' at 0x7fa48a61e420>
:height: None
:width: None
:xwininfo_com: ['xwininfo', '-frame']
:stderr: <closed file '<fdopen>', mode 'rb' at 0x7fa48a61e660>
:y: None
:x: None
:self: <qt_recordMyDesktop.rmdSimple.simpleWidget object at 0x7fa493196610>

Comment 1 Dieter Vandenbroeck 2011-12-16 10:07:16 UTC
Created attachment 547712 [details]
File: smolt_data

Comment 2 Narasimhan 2012-02-11 08:58:04 UTC
I found that when xwininfo an error message, the if condition does assign any number x,y or width. Hence the error.

Comment 3 Narasimhan 2012-02-11 09:28:04 UTC
Or when  there is no string in stdout for gtk-recordMyDesktop to read, the variables x,y and width will be None and hence the error.

Comment 4 Narasimhan 2012-02-11 09:29:01 UTC
Created attachment 561058 [details]
Fix to avoid adding None values

Comment 5 Fedora End Of Life 2013-01-16 13:34:37 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 16 is end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 6 Fedora End Of Life 2013-02-13 14:25:07 UTC
Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.