ZimDesktop crashes on inserting an image in a table
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zim |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Hello,
if a zim-wiki file containing a table is modified in a regular text editor, ZimDesktop 0.65 on Linux crashes on opening the notebook, if the table contains a link to an image. Sample table:
| ColumnOneWithIm
|:-----
| {{../santacl.jpg}} | text |
However, a table containing an image is not a problem for Zim parser - it can be exported just fine using command line version:
/opt/zim/zim.py --export \
--format=html --template=Default \
--output=
/home/
The resulting HTML works fine and displays the image in the table.
I have included in this report a sample Notebook ("Test") with a text file containing a table with an image; I included also the correct html and shell command used to generate it in "zim-export-
Since the parser works fine from the command line I think it is a problem only for the GUI application, but I am not sure.
Thank you very much for the Zim program, I enjoy using it very much and it useful for me ( I am a teacher).
The crash dump report by ZimDesktop 0.65 on Linux AMD64 when opening that table with an image is:
This is zim 0.65
Platform: posix
Locale: en_US UTF-8
FS encoding: UTF-8
Python: (2, 7, 3, 'final', 0)
Gtk: (2, 24, 10)
Pygtk: (2, 24, 0)
Zim revision is:
branch: zim-trunk
revision: 805 <email address hidden>
date: 2015-11-01 15:42:45 +0100
======= Traceback =======
File "/opt/zim/
self.
File "/opt/zim/
buffer.
File "/opt/zim/
self.
File "/opt/zim/
self.
File "/opt/zim/
obj = ObjectManager.
File "/opt/zim/
obj = factory(attrib, text)
File "/opt/zim/
(header, rows) = self._tabledom_
File "/opt/zim/
row = [ElementTree.
File "/usr/lib/
ElementTree
File "/usr/lib/
serialize(
File "/usr/lib/
_serialize_
File "/usr/lib/
v = _escape_attrib(v, encoding)
File "/usr/lib/
_raise_
File "/usr/lib/
"cannot serialize %r (type %s)" % (text, type(text)
TypeError: cannot serialize <UnixFile: /home/user/
Changed in zim: | |
status: | New → Confirmed |
importance: | Undecided → Medium |