Opening page before BackgroundCheck is finished causes segmentation fault
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/
self.page, HRef.new_
File "/usr/lib/
id, pagename = self._pages.
File "/usr/lib/
return self.resolve_
File "/usr/lib/
page_id = self.get_
File "/usr/lib/
'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!
See also https:/ /github. com/jaap- karssenberg/ zim-desktop- wiki/issues/ 7