Fwd: [abrt] Zim-0.56-1.fc16: pageview.py:1557:get_indent:AssertionError: BUG: overlapping indent tags

Reported by Robin Lee on 2012-05-27
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zim
High
Unassigned

Bug Description

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

libreport version: 2.0.8
abrt_version: 2.0.7
cmdline: /usr/bin/python /usr/bin/zim
comment: I had been pasting bulleted lists from Tomboy, then reformatting in Zim (since they paste poorly). Here I was at the last pasted bullet (indented one level), on the last line of a Zim note, when I hit enter to add more information.
executable: /usr/bin/zim
kernel: 3.3.5-2.fc16.i686.PAE
reason: pageview.py:1557:get_indent:AssertionError: BUG: overlapping indent tags
time: Thu 17 May 2012 09:51:01 AM PDT
uid: 500
username: hollisb

backtrace:
:pageview.py:1557:get_indent:AssertionError: BUG: overlapping indent tags
:
:Traceback (most recent call last):
: File "/usr/lib/python2.7/site-packages/zim/gui/pageview.py", line 3906, in do_end_of_line
: buffer.set_bullet(newline, bullet)
: File "/usr/lib/python2.7/site-packages/zim/gui/pageview.py", line 1061, in set_bullet
: self._replace_bullet(iter, bullet)
: File "/usr/lib/python2.7/site-packages/zim/gui/pageview.py", line 1068, in _replace_bullet
: indent = self.get_indent(line)
: File "/usr/lib/python2.7/site-packages/zim/gui/pageview.py", line 1557, in get_indent
: assert len(tags) == 1, 'BUG: overlapping indent tags'
:AssertionError: BUG: overlapping indent tags
:
:Local variables in innermost frame:
:line: 29
:self: <TextBuffer object at 0xb56e3a7c (zim+gui+pageview+TextBuffer at 0x8aca298)>
:iter: <GtkTextIter at 0x8876218>
:tags: [<gtk.TextTag object at 0xaff82b94 (GtkTextTag at 0x89e1a00)>, <gtk.TextTag object at 0xaff87784 (GtkTextTag at 0x8952f60)>]

Jibec (jbhoc) wrote :

This bug exists in different zim versions and fedora versions :
In Zim0.56-1.fc16 https://bugzilla.redhat.com/show_bug.cgi?id=822638
In Zim0.56-3.fc17 https://bugzilla.redhat.com/show_bug.cgi?id=875712
In Zim-0.57-1.fc17 https://bugzilla.redhat.com/show_bug.cgi?id=875734

You just have to play with symbols "(" and ")" and adding/removing items in numbered list a few times.
I'll try to make a video to show how to repoduce.

Jibec (jbhoc) wrote :
  • Video Edit (7.1 MiB, application/octet-stream)

If you play a little bit with the lists, you crash zim easily.
I hadn't exactly the same crash in "normal" use of Zim.
In "normal" use, I just added an internal pagelink between "()" and inserted a line return.

Thanks for your help.

Need further investigation. Probably can only fix by refactoring the code for maintaining lists.

tags: added: lists
Changed in zim:
status: New → Confirmed
importance: Undecided → High
tags: added: pageview
removed: lists
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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