Bug 893351 - [abrt] gtg-0.3-2.fc18: browser.py:521:restore_state_from_conf:AttributeError: 'NoneType' object has no attribute 'expand_node'
Summary: [abrt] gtg-0.3-2.fc18: browser.py:521:restore_state_from_conf:AttributeError:...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gtg
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Yanko Kaneti
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ac76f5ae475ec621c83e38e6253...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-09 07:57 UTC by Guillaume AMAT
Modified: 2013-09-03 20:19 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-01-09 11:11:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.23 KB, text/plain)
2013-01-09 07:57 UTC, Guillaume AMAT
no flags Details
File: core_backtrace (592 bytes, text/plain)
2013-01-09 07:58 UTC, Guillaume AMAT
no flags Details
File: environ (1.43 KB, text/plain)
2013-01-09 07:58 UTC, Guillaume AMAT
no flags Details

Description Guillaume AMAT 2013-01-09 07:57:56 UTC
Version-Release number of selected component:
gtg-0.3-2.fc18

Additional info:
cmdline:        /usr/bin/python /usr/bin/gtg
executable:     /usr/bin/gtg
kernel:         3.6.11-3.fc18.x86_64
uid:            1000

Truncated backtrace:
browser.py:521:restore_state_from_conf:AttributeError: 'NoneType' object has no attribute 'expand_node'

Traceback (most recent call last):
  File "/usr/bin/gtg", line 85, in <module>
    main()
  File "/usr/bin/gtg", line 81, in main
    sys.exit(gtg.main(options, args))
  File "/usr/lib/python2.7/site-packages/GTG/gtg.py", line 120, in main
    manager = Manager(req)
  File "/usr/lib/python2.7/site-packages/GTG/gtk/manager.py", line 75, in __init__
    self.browser = TaskBrowser(self.req, self)
  File "/usr/lib/python2.7/site-packages/GTG/gtk/browser/browser.py", line 129, in __init__
    self.restore_state_from_conf()
  File "/usr/lib/python2.7/site-packages/GTG/gtk/browser/browser.py", line 521, in restore_state_from_conf
    self.tagtreeview.expand_node(path)
AttributeError: 'NoneType' object has no attribute 'expand_node'

Local variables in innermost frame:
ypos: 19
width: 631
tag_pane: False
path_t: "('search',)"
xpos: 1730
closed_task_pane: False
botpos: 300
self: <TaskBrowser object at 0x24ef5a0 (GTG+gtk+browser+browser+TaskBrowser at 0x1afd500)>
p: ''
sort_order: 0
sidebar_width: 250
toolbar: True
path: ('search',)
model: <TreeModel object at 0x24ef7d0 (GtkTreeStore at 0x25972b0)>
height: 972
sort_column: 5
quickadd_pane: True

Comment 1 Guillaume AMAT 2013-01-09 07:57:59 UTC
Created attachment 675297 [details]
File: backtrace

Comment 2 Guillaume AMAT 2013-01-09 07:58:02 UTC
Created attachment 675298 [details]
File: core_backtrace

Comment 3 Guillaume AMAT 2013-01-09 07:58:04 UTC
Created attachment 675299 [details]
File: environ

Comment 4 Yanko Kaneti 2013-01-09 09:14:18 UTC
Can't reproduce, admittedly under rawhide.

Any specifics on what exactly were you doing when it happened ?
Was this your first use of 0.3?  
Have you used previous versions of gtg in the same account?

Comment 5 Guillaume AMAT 2013-01-09 09:29:13 UTC
I'm on Fedora 18, I tried (just launched if I remember right) gtg in the past and I wanted to use it yesterday.
Launched, used, I created several tasks, sub tasks, tags, etc.
Today I started my computer, log in my session and launched gtg. Crashed...

When I type gtg in the terminal, the trace is :
2013-01-09 10:28:06,814 - WARNING - __init__:__init__:77 - Backend backend_rtm could not be loaded: No module named dateutil.tz
2013-01-09 10:28:06,816 - WARNING - __init__:__init__:77 - Backend backend_launchpad could not be loaded: No module named launchpadlib.launchpad
2013-01-09 10:28:06,818 - WARNING - __init__:__init__:77 - Backend backend_mantis could not be loaded: No module named suds.client
2013-01-09 10:28:06,901 - WARNING - __init__:__init__:77 - Backend backend_twitter could not be loaded: No module named tweepy.models
2013-01-09 10:28:06,902 - WARNING - __init__:__init__:77 - Backend backend_evolution could not be loaded: No module named evolution
Traceback (most recent call last):
  File "/usr/bin/gtg", line 85, in <module>
    main()
  File "/usr/bin/gtg", line 81, in main
    sys.exit(gtg.main(options, args))
  File "/usr/lib/python2.7/site-packages/GTG/gtg.py", line 120, in main
    manager = Manager(req)
  File "/usr/lib/python2.7/site-packages/GTG/gtk/manager.py", line 75, in __init__
    self.browser = TaskBrowser(self.req, self)
  File "/usr/lib/python2.7/site-packages/GTG/gtk/browser/browser.py", line 129, in __init__
    self.restore_state_from_conf()
  File "/usr/lib/python2.7/site-packages/GTG/gtk/browser/browser.py", line 521, in restore_state_from_conf
    self.tagtreeview.expand_node(path)
AttributeError: 'NoneType' object has no attribute 'expand_node'

Comment 6 Yanko Kaneti 2013-01-09 10:31:12 UTC
You could try moving ~/.config/gtg  temporarily and see if it has any effect.
Same for ~/.local/share/gtg  , but this will "lose" your data.

Comment 7 Guillaume AMAT 2013-01-09 10:33:50 UTC
It works!
I just renamed ~/.config/gtg and gtg is working again without lost my tasks and tags.

Thanks ;)

Comment 8 Yanko Kaneti 2013-01-09 10:44:27 UTC
If its not a problem could you please attach gtg.conf and tasks.conf from that directory so that we can try to reproduce the problem somehow, afaik there is no sensitive personal information in them but please check.

Comment 9 Guillaume AMAT 2013-01-09 11:07:53 UTC
It's weird... I had deleted this folder so I restored it with my dejadup weekly backup and gtg is not crashing anymore :/

Sorry I can't give you the old gtg.conf.

Comment 10 Yanko Kaneti 2013-01-09 11:11:14 UTC
Weird. 
Anyway, thanks for your feedback and sorry for the trouble. I'll close as INSUFFICIENT_DATA for now and keep an eye for this crash in the future.

Comment 11 Patrick MacArthur 2013-09-03 20:19:08 UTC
This issue also occurs for me on Fedora 19 with gtg-0.3-3.fc19 when the following line occurs in gtg.conf:

expanded_tags = "('search',)",

When this line is changed to the default below, GTG starts up fine:

expanded_tags = ,


Note You need to log in before you can comment on or make changes to this bug.