Zim

Search notebook fails in GUI

Bug #1134051 reported by Andreas Kugel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Expired
Undecided
Unassigned

Bug Description

ZIM version 0.59 on Fedora 17/64bit. German version.

Searching through notebook works from commandline but not in GUI.
GUI dialog stays open forever, no results. Debug (-D) gives no hints:

[kugel@pcakulap ~]$ zim -D
INFO: This is zim 0.59
DEBUG: Python version is sys.version_info(major=2, minor=7, micro=3, releaselevel='final', serial=0)
DEBUG: Platform is posix
DEBUG: Zim revision is:
  branch: pyzim-trunk
  revision: 636 <email address hidden>
  date: 2013-01-23 22:07:40 +0100
DEBUG: Not running from a source dir
DEBUG: Set XDG_DATA_HOME to /home/kugel/.local/share
DEBUG: Set XDG_DATA_DIRS to [<Dir: /usr/share/kde-settings/kde-profile/default/share>, <Dir: /usr/local/share>, <Dir: /usr/share>]
DEBUG: Set XDG_CONFIG_HOME to /home/kugel/.config
DEBUG: Set XDG_CONFIG_DIRS to [<Dir: /etc/xdg>]
DEBUG: Set XDG_CACHE_HOME to /home/kugel/.cache
DEBUG: Running command: gui
DEBUG: Loading config from: /home/kugel/daten/work/database/zim/notebook.zim
DEBUG: Wrote /home/kugel/.config/zim/notebooks.list
INFO: Opening default notebook
DEBUG: Remote call from 10317: <RemoteMethodCall: 10317: zim.ipc.Server(None).ping((), {})>
DEBUG: Starting server by spawning new process
INFO: Spawning: ['/usr/bin/python', '/usr/bin/zim', '--ipc-server-main', '/tmp/zim-kugel/zim-server-socket', '10'] (cwd: None)
DEBUG: Process started with PID: 10319
DEBUG: Remote call from 10317: <RemoteMethodCall: 10317: zim.ipc.Server(None).ping((), {})>
INFO: Server starting 10319 at /tmp/zim-kugel/zim-server-socket
DEBUG: Remote call from 10317: <RemoteMethodCall: 10317: zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call returned to 10317: ('ACK', 10319)
DEBUG: Remote call from 10317: <RemoteMethodCall: 10317: zim.ipc.Server(None).has_object((<RemoteObject: zim.gui.GtkInterface(file:///home/kugel/daten/work/database/zim)>,), {})>
DEBUG: Remote call returned to 10317: False
DEBUG: Remote call from 10317: <RemoteMethodCall: 10317: zim.ipc.Server(None).init_object((<RemoteObject: zim.gui.GtkInterface(file:///home/kugel/daten/work/database/zim)>,), {})>
DEBUG: Loading config from: <ConfigFile: /home/kugel/.config/zim/preferences.conf>
DEBUG: Gtk version is (2, 24, 13)
DEBUG: Pygtk version is (2, 24, 0)
WARNING: Could not find all icon sizes for the application icon
DEBUG: Loading config from: <ConfigFile: /home/kugel/.config/zim/style.conf>
DEBUG: Opening notebook: file:///home/kugel/daten/work/database/zim
DEBUG: Loading config from: /home/kugel/daten/work/database/zim/notebook.zim
DEBUG: Cache dir: /home/kugel/daten/work/database/zim/.zim
DEBUG: Index database file: /home/kugel/daten/work/database/zim/.zim/index.db
DEBUG: Loading config from: /home/kugel/daten/work/database/zim/.zim/state.conf
DEBUG: Loaded plugin "attachmentbrowser" (<AttachmentBrowserPlugin object at 0x2bdc410 (zim+plugins+PluginClass at 0x2cf9860)>)
DEBUG: Loaded plugin "calendar" (<CalendarPlugin object at 0x2bdc500 (zim+plugins+PluginClass at 0x2cf9aa0)>)
DEBUG: Loaded plugin "inlinecalculator" (<InlineCalculatorPlugin object at 0x2bdc640 (zim+plugins+PluginClass at 0x2d70760)>)
DEBUG: Loaded plugin "insertsymbol" (<InsertSymbolPlugin object at 0x2bdc730 (zim+plugins+PluginClass at 0x2d70580)>)
DEBUG: Loaded plugin "linesorter" (<LineSorterPlugin object at 0x2bdc8c0 (zim+plugins+PluginClass at 0x2cf9ac0)>)
DEBUG: Loaded plugin "linkmap" (<LinkMapPlugin object at 0x2bdccd0 (zim+plugins+PluginClass at 0x2cf9b40)>)
DEBUG: Loaded plugin "printtobrowser" (<PrintToBrowserPlugin object at 0x2d378c0 (zim+plugins+PluginClass at 0x2b03fa0)>)
DEBUG: Loaded plugin "screenshot" (<InsertScreenshotPlugin object at 0x2d6bc30 (zim+plugins+PluginClass at 0x2d709a0)>)
DEBUG: Loaded plugin "tableofcontents" (<ToCPlugin object at 0x2d6bd20 (zim+plugins+PluginClass at 0x2d93c40)>)
DEBUG: Loaded plugin "tags" (<TagsPlugin object at 0x2d6be60 (zim+plugins+PluginClass at 0x2d8c680)>)
DEBUG: Loaded plugin "tasklist" (<TaskListPlugin object at 0x2de4280 (zim+plugins+tasklist+TaskListPlugin at 0x2da86e0)>)
DEBUG: Loaded plugin "trayicon" (<TrayIconPlugin object at 0x2df31e0 (zim+plugins+PluginClass at 0x2da8880)>)
INFO: No VCS detected
DEBUG: Loaded plugin "versioncontrol" (<VersionControlPlugin object at 0x2df3690 (zim+plugins+PluginClass at 0x2da8860)>)
INFO: Starting async index update
DEBUG: Child process started 10320 for <RemoteObject: zim.gui.GtkInterface(file:///home/kugel/daten/work/database/zim)>
INFO: Open page: <FileStorePage: Verwaltung:Angebote> (<HistoryPath: Verwaltung:Angebote>)
DEBUG: Remote call returned to 10317: True
DEBUG: Remote call from 10317: <RemoteMethodCall: 10317: zim.gui.GtkInterface(file:///home/kugel/daten/work/database/zim).present((None,), {})>
DEBUG: Remote call from 10320: <RemoteMethodCall: 10320: zim.ipc.Server(None).has_object((<RemoteObject: zim.plugins.trayicon.DaemonTrayIcon(None)>,), {})>
DEBUG: Remote call returned to 10320: False
DEBUG: Remote call from 10320: <RemoteMethodCall: 10320: zim.ipc.Server(None).init_object((<RemoteObject: zim.plugins.trayicon.DaemonTrayIcon(None)>,), {})>
DEBUG: Child process started 10324 for <RemoteObject: zim.plugins.trayicon.DaemonTrayIcon(None)>
DEBUG: Remote call returned to 10320: True
WARNING: Could not find all icon sizes for the application icon
DEBUG: Accelmap: /home/kugel/.config/zim/accelmap
DEBUG: Wrote /home/kugel/.config/zim/preferences.conf
DEBUG: Action: toggle_fileview
DEBUG: Remote call returned to 10317: None
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 now 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.

[kugel@pcakulap ~]$ DEBUG: Action: show_search
DEBUG: Opening dialog "Suche - Zim"
INFO: Searching for: arm

... search dialog indicates active search but displays no results. After clicking on "close" =>

DEBUG: Closed dialog "Suche"

-----
Command line search results:

[kugel@pcakulap ~]$ zim --search aku arm
Infos:LinuxAlarm
Projekte:ArmFpga
Verwaltung:Bestellungen:2013
[kugel@pcakulap ~]$

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

Afraid I can not reproduce the issue. Will either need some test data or a more specific issue to reproduce.

Regards,

Jaap

Changed in zim:
status: New → Incomplete
Revision history for this message
Andreas Kugel (andreas-kugel) wrote :

What kind of of test data should I provide. Any specific instructions?
Btw, a similar problem exisst on exporting to HTML. Works from command line, but stops on first page when run from GUI.

Andreas

Revision history for this message
Andreas Kugel (andreas-kugel) wrote :

Maybe there is a relation. I observe a very high CPU load on Python and Xorg when the Zim window is open:

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
17215 kugel 20 0 712m 35m 15m S 73.3 0.5 0:12.01 python
 1667 root 20 0 277m 153m 30m S 45.1 1.9 31:41.76 Xorg

Load goes to 0 when Zim runs iconized in background

Andreas

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 1134051] Re: Search notebook fails in GUI

On Wed, Feb 27, 2013 at 9:41 AM, Andreas Kugel
<email address hidden> wrote:
> What kind of of test data should I provide. Any specific instructions?
> Btw, a similar problem exisst on exporting to HTML. Works from command line, but stops on first page when run from GUI.

I expect to see an error in the debug output if it just stops. But
export is really different from search.

If search completes without result, I would like a data set that
contains some pages and search works for specific word with
commandline but not from GUI for that set of pages. This is the
problem you report, but I can not reproduce.

If there is no error and zim just "hangs" it would help to know your
desktop environment etc. For sure in my installation it does not hang,
so I can not really debug how it is in your case without any leads.

Regards,

Jaap

Revision history for this message
Andreas Kugel (andreas-kugel) wrote :

Dear Jaap,

I will try on two other Fedora machines and with a fresh notebook. I'll get back towmorrow or so.

Thanks so far.

Andreas

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Zim because there has been no activity for 60 days.]

Changed in zim:
status: Incomplete → Expired
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.