Zim

Opening page before BackgroundCheck is finished causes segmentation fault

Bug #1686738 reported by NeLaS
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Fix Committed
Undecided
Unassigned

Bug Description

Hi Jaap,

I noticed that opening a page right after Zim starts causes it to crash. Running zim -D revealed that this happens when I open a page (in this case, clicking on a bookmark of the bookmark's plugin) before the BackgroundCheck is finished:

Open page before BackgroundCheck:

    DEBUG: BackgroundCheck started
    DEBUG: Add window: MainWindow
    INFO: Open page: Afazeres (Afazeres)
    Segmentation fault (core dumped)

Open page after BackgroundCheck:

    DEBUG: BackgroundCheck started
    DEBUG: Add window: MainWindow
    DEBUG: BackgroundCheck finished
    INFO: Open page: Afazeres (Afazeres)

When I do the same, but clicking on a regular page link, Zim does not crash but I get the error below:

This is zim 0.65
Platform: posix
Locale: en_US UTF-8
FS encoding: UTF-8
Python: (2, 7, 12, 'final', 0)
Gtk: (2, 24, 30)
Pygtk: (2, 24, 0)
No bzr version-info found

======= Traceback =======
  File "/usr/lib/python2.7/dist-packages/zim/gui/pageview.py", line 5560, in do_link_clicked
    self.page, HRef.new_from_wiki_link(href)
  File "/usr/lib/python2.7/dist-packages/zim/notebook/index/pages.py", line 646, in resolve_link
    id, pagename = self._pages.resolve_link(source, href)
  File "/usr/lib/python2.7/dist-packages/zim/notebook/index/pages.py", line 383, in resolve_link
    return self.resolve_pagename(Path(name), parts)
  File "/usr/lib/python2.7/dist-packages/zim/notebook/index/pages.py", line 404, in resolve_pagename
    page_id = self.get_page_id(parent)
  File "/usr/lib/python2.7/dist-packages/zim/notebook/index/pages.py", line 307, in get_page_id
    'SELECT id FROM pages WHERE name=?', (pagename.name,)
InterfaceError: Error binding parameter 0 - probably unsupported type.

This happens in both regular and --standalone mode. I'm running 0.65-r865.

Cheers!

NeLaS (organelas)
description: updated
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :
Changed in zim:
status: New → Fix Committed
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.