Zim

Zim crashes when deleting page

Bug #542148 reported by dotancohen
6
This bug affects 1 person
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/dotancohen/.local/share
DEBUG: Set XDG_DATA_DIRS to [<Dir: /usr/share>, <Dir: /usr/share>, <Dir: /usr/local/share>]
DEBUG: Set XDG_CONFIG_HOME to /home/dotancohen/.config
DEBUG: Set XDG_CONFIG_DIRS to [<Dir: /etc/xdg>]
DEBUG: Set XDG_CACHE_HOME to /home/dotancohen/.cache
DEBUG: Running command: gui
INFO: Starting UnixSocketDaemon
DEBUG: Socket address: /tmp/zim-dotancohen/daemon-socket
DEBUG: Wrote /tmp/zim-dotancohen/daemon.pid
DEBUG: Sending to daemon: ["ping",[],{}]

DEBUG: Daemon replied: "Ack"
DEBUG: Opening dialog "Open Notebook - Zim"
DEBUG: Dialog response OK
DEBUG: Wrote /home/dotancohen/.config/zim/notebooks.list
DEBUG: Closed dialog "Open Notebook"
DEBUG: Sending to daemon: ["vivicate",["zim.gui.GtkInterface","file:///home/dotancohen/.zim/\u05d4\u05e2\u05e8\u05d5\u05ea \u05d9\u05de\u05d9\u05d5\u05de\u05d9\u05d5\u05ea"],{"usedaemon":true,"notebook":"file:///home/dotancohen/.zim/\u05d4\u05e2\u05e8\u05d5\u05ea \u05d9\u05de\u05d9\u05d5\u05de\u05d9\u05d5\u05ea"}]

DEBUG: Child spawned 18217 (u'zim.gui.GtkInterface', u'file:///home/dotancohen/.zim/\u05d4\u05e2\u05e8\u05d5\u05ea \u05d9\u05de\u05d9\u05d5\u05de\u05d9\u05d5\u05ea')
DEBUG: Daemon replied: true
DEBUG: Sending to daemon: ["relay",[["zim.gui.GtkInterface","file:///home/dotancohen/.zim/\u05d4\u05e2\u05e8\u05d5\u05ea \u05d9\u05de\u05d9\u05d5\u05de\u05d9\u05d5\u05ea"],"present",null],{"geometry":null,"fullscreen":null}]

DEBUG: Sending to child 18217: ["present",[null],{"geometry":null,"fullscreen":null}]

DEBUG: Daemon replied: true
✈dcl:~$ DEBUG: Gtk version is (2, 18, 3)
DEBUG: Pygtk version is (2, 16, 0)
DEBUG: Registered plugin <InsertEquationPlugin object at 0xa6c5a2c (zim+plugins+PluginClass at 0xa732f00)> for image type "equation"
DEBUG: Loaded plugin equationeditor (<InsertEquationPlugin object at 0xa6c5a2c (zim+plugins+PluginClass at 0xa732f00)>)
DEBUG: Loaded plugin printtobrowser (<PrintToBrowserPlugin object at 0xa6cc4dc (zim+plugins+PluginClass at 0xa72e4a0)>)
DEBUG: Loaded plugin spell (<SpellPlugin object at 0xa6ccacc (zim+plugins+PluginClass at 0xa72e7a0)>)
DEBUG: Loaded plugin tasklist (<TaskListPlugin object at 0xa6d2284 (zim+plugins+PluginClass at 0xa736c40)>)
DEBUG: Sending to daemon: ["ping",[],{}]

DEBUG: Daemon replied: "Ack"
DEBUG: Sending to daemon: ["vivicate",["zim.plugins.trayicon.DaemonTrayIcon","TrayIcon"],{}]

DEBUG: Child spawned 18220 (u'zim.plugins.trayicon.DaemonTrayIcon', u'TrayIcon')
DEBUG: Daemon replied: true
DEBUG: Loaded plugin trayicon (<TrayIconPlugin object at 0xa6d6be4 (zim+plugins+PluginClass at 0xa736d30)>)
DEBUG: Accelmap: /home/dotancohen/.config/zim/accelmap
DEBUG: Opening notebook: file:///home/dotancohen/.zim/הערות ימיומיות
DEBUG: Cache dir: /home/dotancohen/.zim/הערות ימיומיות/.zim
DEBUG: Index database file: /home/dotancohen/.zim/הערות ימיומיות/.zim/index.db
INFO: Starting background index update
DEBUG: Action: toggle_statusbar
DEBUG: Action: set_pathbar_none
INFO: Open page: <FileStorePage: קבועים:KaddressBook> (<HistoryRecord: קבועים:KaddressBook>)
DEBUG: Found template '_New' for <FileStorePage: קבועים:KaddressBook>
INFO: Loading template from: /usr/share/zim/templates/wiki/_New.txt
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/dotancohen/.zim/הערות ימיומיות/.zim/state.conf
INFO: Open page: <FileStorePage: קבועים:שאלות> (<HistoryRecord: קבועים:שאלות>)
DEBUG: Closed dialog "Delete Page"
DEBUG: Child exited 18217 (u'zim.gui.GtkInterface', u'file:///home/dotancohen/.zim/\u05d4\u05e2\u05e8\u05d5\u05ea \u05d9\u05de\u05d9\u05d5\u05de\u05d9\u05d5\u05ea')

Revision history for this message
dotancohen (dotancohen) wrote :

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".

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

Any chance that this is a duplicate of bug #533816 ?

THere we see the wrong page disappearing from the index. (So it is not really deleted, the file is still there, it just isn't shown correctly.)

Revision history for this message
Johannes Reinhardt (johannes-reinhardt) wrote :

Deleting a 'phantom' page causing a different page to be removed from the index pane (not really be deleted, refreshing the index or starting zim again should bring it back) is described here: https://bugs.launchpad.net/zim/+bug/533816

Can you confirm that this is the same problem? Or even better, can you confirm that this error is really fixed in trunk?

Revision history for this message
dotancohen (dotancohen) wrote :

Yes, it is a dupe but I did not know that at the time I filed it. Thanks.

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

@Johannes: as stated in #533816 this is fixed in rev 212 - see http://bazaar.launchpad.net/~pardus-cpan/zim/pyzim/revision/212 . Solution does not fix root cause, but prevents you from deleting these pages from the UI.

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.