Zim

ZIM freezes when auto or manual save initiated

Bug #1372839 reported by edub
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zim
Expired
Undecided
Unassigned

Bug Description

I just upgraded from Ubuntu 12.04 to 14.04 and since then I am having problems with ZIM freezing. After running in --verbose mode, I have found that this occurs when the auto save through git is initiated. After trying save manually the results are the same: freezing of the program for approx. 2 minutes.

The following is the error message:

INFO: Running: ['git', 'add', '-A'] (cwd: /home/user)
ERROR: Exception in signal handler for stored-page on <zim.notebook.Notebook object at 0x7fa2d01aec50>
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/zim/signals.py", line 156, in call_handlers
    r = callback(obj, *myargs)
  File "/usr/lib/python2.7/dist-packages/zim/plugins/versioncontrol/__init__.py", line 732, in <lambda>
    self.ui.notebook.connect_after('stored-page', lambda o, n: self.vcs.update_staging() )
  File "/usr/lib/python2.7/dist-packages/zim/plugins/versioncontrol/__init__.py", line 396, in update_staging
    self.vcs.stage()
  File "/usr/lib/python2.7/dist-packages/zim/plugins/versioncontrol/git.py", line 234, in stage
    self.run(['add', '-A'])
  File "/usr/lib/python2.7/dist-packages/zim/plugins/versioncontrol/__init__.py", line 438, in run
    self._app.run(params, self.root)
  File "/usr/lib/python2.7/dist-packages/zim/applications.py", line 184, in run
    raise ApplicationError(argv[0], argv[1:], p.returncode, p.stderr.read())
ApplicationError: Failed to run application: git

git "add" "-A"
returned non-zero exit status 128

Ubuntu 14.01.1 LTS

INFO: This is zim 0.60
DEBUG: Python version is sys.version_info(major=2, minor=7, micro=6, releaselevel='final', serial=0)
DEBUG: Platform is posix
DEBUG: Zim revision is:
  branch: pyzim-trunk
  revision: 672 <email address hidden>
  date: 2013-04-30 19:27:20 +0200

edub (e-dub)
description: updated
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 1372839] [NEW] ZIM freezes when auto or manual save initiated

From the debug log it looks like the git command failed. Can you try
running git outside of Zim and see if it works?

regards

Jaap
On Sep 23, 2014 5:25 PM, "edub" <email address hidden> wrote:

> Public bug reported:
>
> I just upgraded from Ubuntu 12.04 to 14.04 and since then I am having
> problems with ZIM freezing. After running in --verbose mode, I have
> found that this occurs when the auto save through git is initiated.
> After trying save manually the results are the same: freezing of the
> program for approx. 2 minutes.
>
> The following is the error message:
>
> INFO: Running: ['git', 'add', '-A'] (cwd: /home/user)
> ERROR: Exception in signal handler for stored-page on
> <zim.notebook.Notebook object at 0x7fa2d01aec50>
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/zim/signals.py", line 156, in
> call_handlers
> r = callback(obj, *myargs)
> File
> "/usr/lib/python2.7/dist-packages/zim/plugins/versioncontrol/__init__.py",
> line 732, in <lambda>
> self.ui.notebook.connect_after('stored-page', lambda o, n:
> self.vcs.update_staging() )
> File
> "/usr/lib/python2.7/dist-packages/zim/plugins/versioncontrol/__init__.py",
> line 396, in update_staging
> self.vcs.stage()
> File
> "/usr/lib/python2.7/dist-packages/zim/plugins/versioncontrol/git.py", line
> 234, in stage
> self.run(['add', '-A'])
> File
> "/usr/lib/python2.7/dist-packages/zim/plugins/versioncontrol/__init__.py",
> line 438, in run
> self._app.run(params, self.root)
> File "/usr/lib/python2.7/dist-packages/zim/applications.py", line 184,
> in run
> raise ApplicationError(argv[0], argv[1:], p.returncode,
> p.stderr.read())
> ApplicationError: Failed to run application: git
>
> git "add" "-A"
> returned non-zero exit status 128
>
>
> Ubuntu 14.01.1 LTS
>
> INFO: This is zim 0.60
> DEBUG: Python version is sys.version_info(major=2, minor=7, micro=6,
> releaselevel='final', serial=0)
> DEBUG: Platform is posix
> DEBUG: Zim revision is:
> branch: pyzim-trunk
> revision: 672 <email address hidden>
> date: 2013-04-30 19:27:20 +0200
>
> ** Affects: zim
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to Zim.
> https://bugs.launchpad.net/bugs/1372839
>
> Title:
> ZIM freezes when auto or manual save initiated
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zim/+bug/1372839/+subscriptions
>

Revision history for this message
edub (e-dub) wrote :

I use git (version 2.1.1) regularly and it works fine. I "resolved" the issue by turning off the git plug-in within git. Since deactivating the git plug-in, I have had no further problems with ZIM freezing.

Revision history for this message
Kaarel Mänd (kaarel-mand-7) wrote :
Download full text (6.3 KiB)

I too have this bug. Zim freezez after git add -A.
However, I don't want to turn off the git plugin. (Nor do I know how to do that).

user ~ $ zim -D
WARNING: Can not import 'xdg.Mime' - falling back to 'mimetypes'
INFO: This is zim 0.65
DEBUG: Python version is sys.version_info(major=2, minor=7, micro=11, releaselevel='final', serial=0)
DEBUG: Platform is posix
DEBUG: Zim revision is:
  branch: zim-trunk
  revision: 805 <email address hidden>
  date: 2015-11-01 15:42:45 +0100
DEBUG: Not running from a source dir
DEBUG: Set XDG_DATA_HOME to /home/user/.local/share
DEBUG: Set XDG_DATA_DIRS to [<Dir: /usr/share>, <Dir: /usr/local/share>]
DEBUG: Set XDG_CONFIG_HOME to /home/user/.config
DEBUG: Set XDG_CONFIG_DIRS to [<Dir: /etc/xdg>]
DEBUG: Set XDG_CACHE_HOME to /home/user/.cache
DEBUG: Loading config from: <zim.notebook.VirtualFile object at 0x7f8caed6e1d0>
DEBUG: Loading config from: /home/user/cloud/user/töö/workplace/notebooks/töö/notebook.zim
DEBUG: Wrote /home/user/.config/zim/notebooks.list
INFO: Using default notebook: file:///home/user/cloud/user/t%C3%B6%C3%B6/workplace/notebooks/t%C3%B6%C3%B6
DEBUG: Wrote /home/user/cloud/user/töö/workplace/notebooks/töö/.zim/tmp
INFO: Remove file: /home/user/cloud/user/töö/workplace/notebooks/töö/.zim/tmp
DEBUG: Loading config from: /home/user/cloud/user/töö/workplace/notebooks/töö/notebook.zim
DEBUG: Cache dir: /home/user/.cache/zim/notebook-home_user_cloud_user_töö_workplace_notebooks_töö
DEBUG: Index database file: /home/user/.cache/zim/notebook-home_user_cloud_user_töö_workplace_notebooks_töö/index.db
DEBUG: Remote call from 2578: <RemoteMethodCall: 2578: zim.ipc.Server(None).ping((), {})>
DEBUG: Starting server by spawning new process
INFO: Spawning: ['/usr/bin/zim', '--ipc-server-main', '/tmp/zim-user/zim-server-socket', '10'] (cwd: None)
DEBUG: Process started with PID: 2580
DEBUG: Remote call from 2578: <RemoteMethodCall: 2578: zim.ipc.Server(None).ping((), {})>
WARNING: Can not import 'xdg.Mime' - falling back to 'mimetypes'
INFO: Server starting 2580 at /tmp/zim-user/zim-server-socket
DEBUG: Remote call from 2578: <RemoteMethodCall: 2578: zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call returned to 2578: ('ACK', 2580)
DEBUG: Remote call from 2578: <RemoteMethodCall: 2578: zim.ipc.Server(None).has_object((<RemoteObject: zim.gui.GtkInterface(file:///home/user/cloud/user/t%C3%B6%C3%B6/workplace/notebooks/t%C3%B6%C3%B6)>,), {})>
DEBUG: Remote call returned to 2578: False
DEBUG: Remote call from 2578: <RemoteMethodCall: 2578: zim.ipc.Server(None).init_object((<RemoteObject: zim.gui.GtkInterface(file:///home/user/cloud/user/t%C3%B6%C3%B6/workplace/notebooks/t%C3%B6%C3%B6)>,), {})>
DEBUG: Wrote <UnixFile: /home/user/cloud/user/töö/workplace/notebooks/töö/.zim/tmp>
INFO: Remove file: <UnixFile: /home/user/cloud/user/töö/workplace/notebooks/töö/.zim/tmp>
DEBUG: Loading config from: <UnixFile: /home/user/cloud/user/töö/workplace/notebooks/töö/notebook.zim>
DEBUG: Cache dir: <Dir: /home/user/.cache/zim/notebook-home_user_cloud_user_töö_workplace_notebooks_töö>
DEBUG: Index database file: <UnixFile: /home/user/.cache/zim/notebook-home_user_cloud_user_töö_workplac...

Read more...

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

Tested here with new git based notebook. Seems "git add -A" works fine and no timeout. So still thinking that the timeout is due to specific git issue in your repository.

You can check the git repository by running "git add -A" outside zim to test what is happening.

REgards,

Jaap

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