Bug 573893

Summary: [abrt] crash in pychess-0.10-0.3.20100214svn.fc12: save without filename possible
Product: [Fedora] Fedora Reporter: Jesse Larrew <jlarrew>
Component: pychessAssignee: Thomas Spura <tomspur>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: michel, tomspur
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard: abrt_hash:e1b14789
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-06-12 19:33:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace none

Description Jesse Larrew 2010-03-16 02:35:58 UTC
abrt 1.0.8 detected a crash.

architecture: i686
cmdline: /usr/bin/python /usr/bin/pychess
comment: Crash while saving game as: Jesse Larrew vs. PyChess 0.10beta2--sicilian.pgn.
component: pychess
executable: /usr/bin/pychess
kernel: 2.6.32.9-70.fc12.i686.PAE
package: pychess-0.10-0.3.20100214svn.fc12
reason: genericpath.py:91:_splitext:AttributeError: 'NoneType' object has no attribute 'rfind'
release: Fedora release 12 (Constantine)

backtrace
-----
genericpath.py:91:_splitext:AttributeError: 'NoneType' object has no attribute 'rfind'

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/pychess/Main.py", line 84, in on_save_game_as1_activate
    ionest.saveGameAs (gameDic[gamewidget.cur_gmwidg()])
  File "/usr/lib/python2.6/site-packages/pychess/widgets/ionest.py", line 287, in saveGameAs
    ending = os.path.splitext(uri)[1]
  File "/usr/lib/python2.6/posixpath.py", line 95, in splitext
    return genericpath._splitext(p, sep, altsep, extsep)
  File "/usr/lib/python2.6/genericpath.py", line 91, in _splitext
    sepIndex = p.rfind(sep)
AttributeError: 'NoneType' object has no attribute 'rfind'

Local variables in innermost frame:
extsep: '.'
sep: '/'
p: None
altsep: None

Comment 1 Jesse Larrew 2010-03-16 02:35:59 UTC
Created attachment 400355 [details]
File: backtrace

Comment 2 Thomas Spura 2010-03-19 23:08:54 UTC
Thanks for the bug report.

Unfortunately I don't have a F-12 system here anymore and on F-13, I can't reproduce this anymore.

This crash means, you wanted to save the game, but pychess didn't get a filename.

I filed this bug upstream, so hopefully they can reproduce this, if not, maybe just check if there is a filename and if yes -> save...


http://code.google.com/p/pychess/issues/detail?id=544


-> Closing as upstream

Comment 3 Thomas Spura 2010-03-29 17:56:05 UTC
Answer from upstream:
"That seams very likely. It would be good to know exactly how the user canceled the 
action, so we can react properly. But if the error log is auto generated and the 
user don't respond, I guess we will have to put some kind of error dialog, and break 
out of the function."

Could you comment on this? How did you tried to saved the game?

(You can also comment on the upstream bug:http://code.google.com/p/pychess/issues/detail?id=544 

This way the communication would be a bit faster...)

Comment 4 Thomas Spura 2010-03-29 17:57:21 UTC
*** Bug 573894 has been marked as a duplicate of this bug. ***

Comment 5 Thomas Spura 2010-05-29 13:14:45 UTC
Ping, could you provide further information to track this bug down?

Comment 6 Thomas Spura 2010-06-12 19:33:29 UTC
Feel free to reopen and provide further information.

Closing as INSUFFICIENT_DATA till then...