Zim

Comment 4 for bug 1199341

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 1199341] Re: Index rebuild takes 15 minutes with 100% CPU

Having multiple python versions in parallel should not be a problem.
Typically there are versioned executabled like "python26" each of which has
it's own libraries, e.g. "/usr/lib/python26". Using Ubuntu this is all
taken care of by the package manager - I assume debian and other distros do
the same. Just make sure that the "python" symlink goes to 2.6 or 2.7, as
python 3 is not backward compatible, and there are many applications and
scripts that are not yet ported - including zim.

So far no clue what causes the CPU load. Only thing I don't recognize is
the "AddFunction" plugin that is being loaded.

Might also help to see what zim 0.60 does on your system. Not sure if there
is any change related to this problem, as I don't understand the root cause
of the problem, but might be worth the try.

Regards,

Jaap

On Thu, Jul 11, 2013 at 7:24 PM, Robert C Watson <<email address hidden>
> wrote:

> Non-markdown paste...
>
> root@LX02:~ zim --debug Notes
> INFO: This is zim 0.56
> DEBUG: Python version is (2, 6, 5, 'final', 0)
> DEBUG: Platform is posix
> DEBUG: Zim revision is:
> branch: pyzim-trunk
> revision: 533 <email address hidden>
> date: 2012-04-02 22:07:22 +0200
> DEBUG: Not running from a source dir
> DEBUG: Set XDG_DATA_HOME to /root/.local/share
> DEBUG: Set XDG_DATA_DIRS to [<Dir: /usr/share/gnome>, <Dir:
> /usr/local/share>, <Dir: /usr/share>]
> DEBUG: Set XDG_CONFIG_HOME to /root/.config
> DEBUG: Set XDG_CONFIG_DIRS to [<Dir: /etc/xdg/xdg-gnome>, <Dir: /etc/xdg>]
> DEBUG: Set XDG_CACHE_HOME to /root/.cache
> DEBUG: Running command: gui
> DEBUG: Loading /root/Notes/notebook.zim
> DEBUG: Loading /usr/share/zim/manual/notebook.zim
> DEBUG: Loading /root/Notebooks/Code/notebook.zim
> DEBUG: Wrote /root/.config/zim/notebooks.list
> INFO: Starting UnixSocketDaemon
> DEBUG: Socket address: /tmp/zim-root/daemon-socket
> DEBUG: Wrote /tmp/zim-root/daemon.pid
> DEBUG: Sending to daemon: ["ping",[],{}]
>
> DEBUG: Daemon replied: "Ack"
> DEBUG: Sending to daemon:
> ["vivicate",["zim.gui.GtkInterface","file:///root/Notes"],{"usedaemon":true,"notebook":"file:///root/Notes"}]
>
> DEBUG: Child spawned 13540 (u'zim.gui.GtkInterface', u'file:///root/Notes')
> DEBUG: No such signal: notebook-list-changed
> DEBUG: Daemon replied: true
> DEBUG: Sending to daemon:
> ["relay",[["zim.gui.GtkInterface","file:///root/Notes"],"present",null],{"geometry":null,"fullscreen":null}]
>
> DEBUG: Sending to child 13540:
> ["present",[null],{"geometry":null,"fullscreen":null}]
>
> DEBUG: Daemon replied: true
> DEBUG:
> NOTE FOR BUG REPORTS:
> At this point zim has send the command to open a notebook to a
> background process and the current process will no quit.
> If this is the end of your debug output it is probably not useful
> for bug reports. Please close all zim windows, quit the
> zim trayicon (if any), and try again.
>
> root@LX02:~ DEBUG: Loading /root/.config/zim/preferences.conf
> DEBUG: Loaded plugin automount (<AutomountPlugin object at 0x9d593ec
> (zim+plugins+PluginClass at 0x9ac4170)>)
> DEBUG: Gtk version is (2, 20, 1)
> DEBUG: Pygtk version is (2, 17, 0)
> WARNING: Could not find all icon sizes for the application icon
> DEBUG: Loading /root/.config/zim/style.conf
> DEBUG: Loading /root/.config/zim/customtools/log-usercreated.desktop
> DEBUG: Loading /root/.config/zim/customtools/todo-usercreated.desktop
> DEBUG: Loading /root/.config/zim/customtools/gnotes-usercreated.desktop
> DEBUG: Loading /root/.config/zim/customtools/archive-usercreated.desktop
> DEBUG: Loading /root/.config/zim/customtools/manual pages
> (gman)-usercreated.desktop
> DEBUG: Loading /root/.config/zim/customtools/manual
> pages-usercreated.desktop
> DEBUG: Loading
> /root/.config/zim/customtools/documents-usercreated-1.desktop
> DEBUG: Loading /root/.config/zim/customtools/documents-usercreated.desktop
> DEBUG: Loading /root/.config/zim/customtools/secure
> notes-usercreated.desktop
> DEBUG: Loading /root/.config/zim/customtools/execute-usercreated.desktop
> DEBUG: Loading /root/.config/zim/customtools/test-usercreated.desktop
> DEBUG: Loading /root/.config/zim/customtools/code
> notebook-usercreated.desktop
> DEBUG: Accelmap: /root/.config/zim/accelmap
> DEBUG: Opening notebook: file:///root/Notes
> DEBUG: Loading /root/Notes/notebook.zim
> DEBUG: Cache dir: /root/Notes/.zim
> DEBUG: Index database file: /root/Notes/.zim/index.db
> DEBUG: Loading /root/Notes/.zim/state.conf
> DEBUG: Loaded plugin addfunction (<AddFunctionPlugin object at 0x9e0520c
> (zim+plugins+PluginClass at 0x9ed63d0)>)
> DEBUG: Loaded plugin attachmentbrowser (<AttachmentBrowserPlugin object at
> 0x9e051e4 (zim+plugins+PluginClass at 0x9eed420)>)
> INFO: Accelerator changed for
> <Actions>/PrintToBrowserPlugin/print_to_browser
> DEBUG: Loaded plugin printtobrowser (<PrintToBrowserPlugin object at
> 0x9e052ac (zim+plugins+PluginClass at 0x9eed5d0)>)
> DEBUG: Loaded plugin quicknote (<QuickNotePlugin object at 0x9e05324
> (zim+plugins+PluginClass at 0x9ef1100)>)
> INFO: Accelerator changed for <Actions>/SpellPlugin/toggle_spellcheck
> DEBUG: Loaded plugin spell (<SpellPlugin object at 0x9e053ec
> (zim+plugins+PluginClass at 0x9f06d80)>)
> DEBUG: Loaded plugin tableofcontents (<ToCPlugin object at 0x9e054b4
> (zim+plugins+PluginClass at 0x9ed63a0)>)
> DEBUG: Loaded plugin tags (<TagsPlugin object at 0x9e05554
> (zim+plugins+PluginClass at 0x9f06fd0)>)
> DEBUG: Sending to daemon: ["ping",[],{}]
>
> DEBUG: Daemon replied: "Ack"
> DEBUG: Sending to daemon:
> ["vivicate",["zim.plugins.trayicon.DaemonTrayIcon","TrayIcon"],{}]
>
> DEBUG: Child spawned 13543 (u'zim.plugins.trayicon.DaemonTrayIcon',
> u'TrayIcon')
> DEBUG: No such signal: notebook-list-changed
> DEBUG: Daemon replied: true
> DEBUG: Loaded plugin trayicon (<TrayIconPlugin object at 0xa01b48c
> (zim+plugins+PluginClass at 0x9f18f80)>)
> INFO: Starting async index update
> INFO: Open page: <FileStorePage: Zim:Linux:Yad-Zenity> (<HistoryPath:
> Zim:Linux:Yad-Zenity>)
> DEBUG: Action: toggle_fileview
> DEBUG: Wrote /root/.config/zim/preferences.conf
> DEBUG: Action: set_pathbar_history
> DEBUG: Action: set_toolbar_icons_only
> DEBUG: Sending to daemon: ["ping",[],{}]
>
> DEBUG: Daemon replied: "Ack"
> WARNING: Could not find all icon sizes for the application icon
> INFO: Accelerator changed for <Actions>/QuickNotePlugin/show_quick_note
> INFO: Accelerator changed for
> <Actions>/AttachmentBrowserPlugin/toggle_fileview
> INFO: Index update done
> DEBUG: Action: show_search
> DEBUG: Opening dialog "Search - Zim"
> INFO: Searching for: .bashrc
> /usr/lib/pymodules/python2.6/zim/gui/searchdialog.py:222: GtkWarning:
> gtk_list_store_reorder: assertion `!GTK_LIST_STORE_IS_SORTED (store)' failed
> model.reorder([x[1] for x in order]) # use second item
>
> --
> You received this bug notification because you are subscribed to Zim.
> https://bugs.launchpad.net/bugs/1199341
>
> Title:
> Index rebuild takes 15 minutes with 100% CPU
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zim/+bug/1199341/+subscriptions
>