Comment 1 for bug 504975

Revision history for this message
X (u78qir8a9-deactivatedaccount) wrote :

Thank you for reporting bugs in Kupfer!

If you quit kupfer properly (run the Quit object in Kupfer), then start kupfer anew from a terminal, in debug output mode (kupfer --debug), you will see more output that can help us understand this issue. Please do this if you can: find firefox, select the action Rescan (only available in debug mode), and paste the debug output here. Just paste all of it if you want.

I have a guess about the issue though, and it is that it is partly a firefox bug. The problem is that firefox writes JSON data to its bookmarks file that none of the two JSON modules that Kupfer supports can read. Firefox writes a new bookmarks file every day, so it might change from day to day if it's invalid or not! Here is debug output from my test setup, on an occation when it fails:

D [kupfer.plugin.firefox] BookmarksSource: Parsing /home/ulrik/.mozilla/firefox/u7ssei2l.default/bookmarkbackups/bookmarks-2010-01-09.json
Error [kupfer.plugin.firefox] BookmarksSource: unterminated array starting at position 329
D [kupfer.plugin.firefox] BookmarksSource: Parsing /home/ulrik/.mozilla/firefox/u7ssei2l.default/bookmarks.html
[kupfer.plugin.firefox] BookmarksSource: Loaded 644 items

The error 'unterminated array starting at position 329' that you see is a JSON parsing error in one of Kupfer's support libraries. I blame Firefox for this invalid data. Maybe you have almost the same kind of output on your setup.

What happens in Kupfer is that it tries to fall back to the bookmarks.html file. However, you must configure Firefox to write bookmarks to the bookmarks.html file as backup. Maybe google or Karol can tell you how to do that (I don't know off hand).