Zim

A page from Zim application doesn't open

Bug #1712483 reported by Gabriela Tulei
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
New
Undecided
Unassigned

Bug Description

Hello,

I tried to open a page from Zim application (version 0.60) from Ubuntu 14.04 systen, and I obtained the following error: "Looks like you found a bug":

TypeError: GtkTextBuffer.insert_at_cursor() argument 1 must be string or read-only buffer, not None

This is zim 0.60
Python version is sys.version_info(major=2, minor=7, micro=6, releaselevel='final', serial=0)
Gtk version is (2, 24, 23)
Pygtk version is (2, 24, 0)
Platform is posix
Zim revision is:
  branch: pyzim-trunk
  revision: 672 <email address hidden>
  date: 2013-04-30 19:27:20 +0200

======= Traceback =======
  File "/usr/lib/python2.7/dist-packages/zim/gui/pageview.py", line 4659, in set_page
    self.set_parsetree(tree, bool(template))
  File "/usr/lib/python2.7/dist-packages/zim/gui/pageview.py", line 4750, in set_parsetree
    buffer.set_parsetree(tree)
  File "/usr/lib/python2.7/dist-packages/zim/gui/pageview.py", line 605, in set_parsetree
    self.insert_parsetree_at_cursor(tree)
  File "/usr/lib/python2.7/dist-packages/zim/gui/pageview.py", line 672, in insert_parsetree_at_cursor
    self._insert_element_children(root, raw=raw)
  File "/usr/lib/python2.7/dist-packages/zim/gui/pageview.py", line 745, in _insert_element_children
    self._insert_element_children(element, list_level=list_level, raw=raw) # recurs
  File "/usr/lib/python2.7/dist-packages/zim/gui/pageview.py", line 786, in _insert_element_children
    self.insert_link_at_cursor(element.text, **element.attrib)
  File "/usr/lib/python2.7/dist-packages/zim/gui/pageview.py", line 846, in insert_link_at_cursor
    self.insert_at_cursor(text)
TypeError: GtkTextBuffer.insert_at_cursor() argument 1 must be string or read-only buffer, not None

The "zim -D" command's output is the following:
gtulei@otp-gtulei-l1:~$ zim -D
INFO: This is zim 0.60
DEBUG: Python version is sys.version_info(major=2, minor=7, micro=6, releaselevel='final', serial=0)
DEBUG: Platform is posix
DEBUG: Zim revision is:
  branch: pyzim-trunk
  revision: 672 <email address hidden>
  date: 2013-04-30 19:27:20 +0200
DEBUG: Not running from a source dir
DEBUG: Set XDG_DATA_HOME to /home/gtulei/.local/share
DEBUG: Set XDG_DATA_DIRS to [<Dir: /usr/share/ubuntu>, <Dir: /usr/share/gnome>, <Dir: /usr/local/share>, <Dir: /usr/share>]
DEBUG: Set XDG_CONFIG_HOME to /home/gtulei/.config
DEBUG: Set XDG_CONFIG_DIRS to [<Dir: /etc/xdg/xdg-ubuntu>, <Dir: /usr/share/upstart/xdg>, <Dir: /etc/xdg>]
DEBUG: Set XDG_CACHE_HOME to /home/gtulei/.cache
DEBUG: Running command: gui
DEBUG: Loading config from: /home/gtulei/Notebooks/Intel/notebook.zim
DEBUG: Loading config from: /home/gtulei/Notebooks/Notes/notebook.zim
DEBUG: Wrote /home/gtulei/.config/zim/notebooks.list
INFO: Opening default notebook
DEBUG: Remote call from 5476: <RemoteMethodCall: 5476: zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call returned to 5476: ('ACK', 5419)
DEBUG: Remote call from 5476: <RemoteMethodCall: 5476: zim.ipc.Server(None).has_object((<RemoteObject: zim.gui.GtkInterface(file:///home/gtulei/Notebooks/Intel)>,), {})>
DEBUG: Remote call returned to 5476: True
DEBUG: Remote call from 5476: <RemoteMethodCall: 5476: zim.gui.GtkInterface(file:///home/gtulei/Notebooks/Intel).present((None,), {})>
INFO: Index update done
DEBUG: Remote call returned to 5476: None
DEBUG:
NOTE FOR BUG REPORTS:
 At this point zim has send the command to open a notebook to a
 background process and the current process will now quit.
 If this is the end of your debug output it is probably not useful
 for bug reports. Please close all zim windows, quit the
 zim trayicon (if any), and try again.

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.