Zim

FWD: [abrt] Zim: pageindex.py:369:get_indexpath:AttributeError: 'NoneType' object has no attribute 'indexpath'

Bug #1597811 reported by Robin Lee
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Incomplete
Undecided
Unassigned

Bug Description

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-mikael/zim-server-socket 30
executable: /usr/bin/zim
kernel: 4.4.12-200.fc22.x86_64
runlevel: N 5
type: Python
uid: 1000

Truncated backtrace:
pageindex.py:369:get_indexpath:AttributeError: 'NoneType' object has no attribute 'indexpath'

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/zim/gui/pageindex.py", line 547, in do_row_activated
    path = model.get_indexpath(iter)
  File "/usr/lib/python2.7/site-packages/zim/plugins/tags.py", line 778, in get_indexpath
    return model.get_indexpath(childiter)
  File "/usr/lib/python2.7/site-packages/zim/gui/pageindex.py", line 369, in get_indexpath
    return iter.indexpath
AttributeError: 'NoneType' object has no attribute 'indexpath'

Local variables in innermost frame:
treeiter: <GtkTreeIter at 0x169d200>
self: <DuplicatePageTreeStore object at 0x7fd5f1bdb230 (zim+gui+pageindex+PageTreeStore at 0x120e6a0)>
iter: None

Revision history for this message
Robin Lee (cheeselee) wrote :

https://bugzilla.redhat.com/show_bug.cgi?id=1411912

Description of problem:
Initial configuration, with three example notes
* Archive
* MyNote
* Done

Attempted action 1: move a note from top level into another note.
Result: The note got duplicated in the other note, as follows:
* Archive
 * MyNote
 * MyNote
* Done

Attempted action 2: Move the note to the other top-level note, so that the
intended result would be as follows:
* Archive
* Done
 * MyNote

Actual result was: a crash "Zim quit unexpectedly".

Version-Release number of selected component:
Zim-0.65-2.fc24

Additional info:
reporter: libreport-2.7.2
cmdline: /usr/bin/python /usr/bin/zim --ipc-server-main /tmp/zim-mikael/zim-server-socket 30
executable: /usr/bin/zim
kernel: 4.8.15-200.fc24.x86_64
pkg_fingerprint: 73BD E983 81B4 6521
pkg_vendor: Fedora Project
runlevel: N 5
type: Python
uid: 1000

Truncated backtrace:
pageindex.py:369:get_indexpath:AttributeError: 'NoneType' object has no attribute 'indexpath'

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/zim/gui/pageindex.py", line 547, in do_row_activated
    path = model.get_indexpath(iter)
  File "/usr/lib/python2.7/site-packages/zim/plugins/tags.py", line 778, in get_indexpath
    return model.get_indexpath(childiter)
  File "/usr/lib/python2.7/site-packages/zim/gui/pageindex.py", line 369, in get_indexpath
    return iter.indexpath
AttributeError: 'NoneType' object has no attribute 'indexpath'

Local variables in innermost frame:
treeiter: <GtkTreeIter at 0x5625251b9540>
self: <DuplicatePageTreeStore object at 0x7f5c3d79d140 (zim+gui+pageindex+PageTreeStore at 0x562525190a60)>
iter: None

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Offending code has been rewritten, hope it is gone now

Changed in zim:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.