Zim

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

Bug #1005118 reported by Robin Lee
26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Zim
Confirmed
Medium
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)>]

Tags: pageview
Revision history for this message
Jean-Baptiste Holcroft (jibecfed) 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.

Revision history for this message
Jean-Baptiste Holcroft (jibecfed) 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.

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

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
Revision history for this message
Robin Lee (cheeselee) wrote :

Toggle Strong off for some line in a bullet list. And then type enter to try to create a new entry of bullet list. But Zim does not add a bullet in the front of new line and then dump a call trace.

Changed in zim:
importance: High → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

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