Bug 1317339

Summary: [abrt] Zim: widgets.py:2155:get_window:AttributeError: 'AppIndicatorTrayIcon' object has no attribute 'get_toplevel'
Product: [Fedora] Fedora Reporter: Robin Lee <robinlee.sysu>
Component: ZimAssignee: Robin Lee <robinlee.sysu>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: dgunchev, fabian, oliver, robinlee.sysu
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/9d121ad531ebb79b67c2cc1aa3bf3a56a885b623
Whiteboard: abrt_hash:feaf61f8c0b02cc9831329575fcde58078907a1a;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 18:46:13 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: backtrace
none
File: environ none

Description Robin Lee 2016-03-14 03:08:12 UTC
Description of problem:
Try to open another Notebook through trayicon. I have two Notebooks with the same name 'Notes'.

Version-Release number of selected component:
Zim-0.65-1.fc22

Additional info:
reporter:       libreport-2.6.4
cmdline:        /usr/bin/python /usr/bin/zim --ipc-server-main /tmp/zim-cheese/zim-server-socket 30
executable:     /usr/bin/zim
kernel:         4.4.3-201.fc22.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
widgets.py:2155:get_window:AttributeError: 'AppIndicatorTrayIcon' object has no attribute 'get_toplevel'

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/zim/plugins/trayicon.py", line 209, in do_open_notebook
    NotebookDialog.unique(self, self, callback=self.do_activate_notebook).show()
  File "/usr/lib/python2.7/site-packages/zim/gui/widgets.py", line 2870, in unique
    dialog = klass(*args, **opts)
  File "/usr/lib/python2.7/site-packages/zim/gui/notebookdialog.py", line 281, in __init__
    Dialog.__init__(self, ui, _('Open Notebook')) # T: dialog title
  File "/usr/lib/python2.7/site-packages/zim/gui/widgets.py", line 2902, in __init__
    self, parent=get_window(ui),
  File "/usr/lib/python2.7/site-packages/zim/gui/widgets.py", line 2155, in get_window
    window = widget.get_toplevel() if widget else None
AttributeError: 'AppIndicatorTrayIcon' object has no attribute 'get_toplevel'

Local variables in innermost frame:
widget: <zim.plugins.trayicon.AppIndicatorTrayIcon object at 0x7fa5baab0850>

Comment 1 Robin Lee 2016-03-14 03:08:16 UTC
Created attachment 1136025 [details]
File: backtrace

Comment 2 Robin Lee 2016-03-14 03:08:17 UTC
Created attachment 1136026 [details]
File: environ

Comment 3 Doncho Gunchev 2016-03-28 20:48:08 UTC
Similar problem has been detected:

Right click on the systray icon and selected "Other..."

reporter:       libreport-2.6.4
cmdline:        /usr/bin/python /usr/bin/zim --ipc-server-main /tmp/zim-dgunchev/zim-server-socket 30
event_log:      2016-03-28-23:44:32> ('report_uReport' completed successfully)
executable:     /usr/bin/zim
kernel:         4.4.6-200.fc22.x86_64
package:        Zim-0.65-1.fc22
reason:         widgets.py:2155:get_window:AttributeError: 'AppIndicatorTrayIcon' object has no attribute 'get_toplevel'
runlevel:       N 5
type:           Python
uid:            1000

Comment 4 Fedora End Of Life 2016-07-19 18:46:13 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 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. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

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