Zim crashes when deleting page
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zim |
New
|
Undecided
|
Unassigned |
Bug Description
This is a notebook that was created in perlzim and carried over to pyzim. The notebook is called "הערות ימיומיות" and the page that crashes it is called "KaddressBook", which is a subpage of "קבועים". The "KaddressBook" page is blank except for the auto-generated header and date.
Steps to reproduce:
1) Start Zim and open notebook "הערות ימיומיות"
2) Right-click on page "Kaddressbook", select Delete Page
3) Click "OK"
4) Zim crashes with this output:
✈dcl:~$ zim --debug
INFO: This is zim 0.44
DEBUG: Python version is (2, 6, 4, 'final', 0)
DEBUG: Zim revision is:
branch: pyzim-trunk
revision: 205 <email address hidden>
date: 2010-02-18 19:16:31 +0100
DEBUG: Not running from a source dir
DEBUG: Set XDG_DATA_HOME to /home/dotancohe
DEBUG: Set XDG_DATA_DIRS to [<Dir: /usr/share>, <Dir: /usr/share>, <Dir: /usr/local/share>]
DEBUG: Set XDG_CONFIG_HOME to /home/dotancohe
DEBUG: Set XDG_CONFIG_DIRS to [<Dir: /etc/xdg>]
DEBUG: Set XDG_CACHE_HOME to /home/dotancohe
DEBUG: Running command: gui
INFO: Starting UnixSocketDaemon
DEBUG: Socket address: /tmp/zim-
DEBUG: Wrote /tmp/zim-
DEBUG: Sending to daemon: ["ping",[],{}]
DEBUG: Daemon replied: "Ack"
DEBUG: Opening dialog "Open Notebook - Zim"
DEBUG: Dialog response OK
DEBUG: Wrote /home/dotancohe
DEBUG: Closed dialog "Open Notebook"
DEBUG: Sending to daemon: ["vivicate"
DEBUG: Child spawned 18217 (u'zim.
DEBUG: Daemon replied: true
DEBUG: Sending to daemon: ["relay"
DEBUG: Sending to child 18217: ["present"
DEBUG: Daemon replied: true
✈dcl:~$ DEBUG: Gtk version is (2, 18, 3)
DEBUG: Pygtk version is (2, 16, 0)
DEBUG: Registered plugin <InsertEquation
DEBUG: Loaded plugin equationeditor (<InsertEquatio
DEBUG: Loaded plugin printtobrowser (<PrintToBrowse
DEBUG: Loaded plugin spell (<SpellPlugin object at 0xa6ccacc (zim+plugins+
DEBUG: Loaded plugin tasklist (<TaskListPlugin object at 0xa6d2284 (zim+plugins+
DEBUG: Sending to daemon: ["ping",[],{}]
DEBUG: Daemon replied: "Ack"
DEBUG: Sending to daemon: ["vivicate"
DEBUG: Child spawned 18220 (u'zim.
DEBUG: Daemon replied: true
DEBUG: Loaded plugin trayicon (<TrayIconPlugin object at 0xa6d6be4 (zim+plugins+
DEBUG: Accelmap: /home/dotancohe
DEBUG: Opening notebook: file://
DEBUG: Cache dir: /home/dotancohe
DEBUG: Index database file: /home/dotancohe
INFO: Starting background index update
DEBUG: Action: toggle_statusbar
DEBUG: Action: set_pathbar_none
INFO: Open page: <FileStorePage: קבועים:
DEBUG: Found template '_New' for <FileStorePage: קבועים:
INFO: Loading template from: /usr/share/
DEBUG: Sending to daemon: ["ping",[],{}]
DEBUG: Daemon replied: "Ack"
INFO: Index update done
DEBUG: Action: delete_page
DEBUG: Pageindex has focus
DEBUG: Opening dialog "Delete Page - Zim"
DEBUG: Dialog response OK
DEBUG: Wrote /home/dotancohe
INFO: Open page: <FileStorePage: קבועים:שאלות> (<HistoryRecord: קבועים:שאלות>)
DEBUG: Closed dialog "Delete Page"
DEBUG: Child exited 18217 (u'zim.
It turns out that the "Kaddressbook" page was an automatically created page, from a link in text containing the word Kaddressbook. Removing the link removed the page with no crash. Testing with other, newly created links did not cause the same issue.
Note that while testing, twice it happened that when I right-clicked on "Kaddressbook" and confirmed the delete, a different page was deleted! The first time I assumed PBKAC however it happened a second time as well and I was careful to read the text of the confirm dialogue that mentioned the page "Kaddressbook".