zim-wiki team mailing list archive
-
zim-wiki team
-
Mailing list archive
-
Message #02078
Possible bug when restarting zim in the same desktop session
Hi,
Recently zim has begun to refuse to start after I have stopped it
earlier in the same session. A log out does not solve the problem, but a
reboot does. The logs don't shown anything special I can recognize. Nor
does ps when I try to look for hung processes or things like that.
This is what I can see as a user: I start zim (either from the CLI or
from the start menu) and it presents me with a selection screen for the
notebook I want to open. When I select a notebook (any notebook) nothing
happens anymore. The button becomes depressed and after that all things
zim stop. Anyone else experienced this problem?
I'd like to first confirm this is a new problem before I enter a bug report.
Here's the output when I start zim with "--debug":
user@system[508]: zim --debug
INFO: This is zim 0.57
DEBUG: Python version is sys.version_info(major=2, minor=7, micro=3,
releaselevel='candidate', serial=2)
DEBUG: Platform is posix
DEBUG: Zim revision is:
branch: pyzim-trunk
revision: 600
jaap.karssenberg@xxxxxxxxx-20121008191751-bdjcr9zpg9ni5mjt
date: 2012-10-08 21:17:51 +0200
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/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: Running command: gui
DEBUG: Loading config from:
/home/user/doc/notes/zim/Security_Academy/notebook.zim
DEBUG: Loading config from:
/home/user/doc/notes/zim/Business_Continuity_Academy/notebook.zim
DEBUG: Loading config from: /home/user/doc/notes/zim/Prive/notebook.zim
DEBUG: Loading config from: /home/user/doc/notes/zim/Heroth/notebook.zim
DEBUG: Wrote /home/user/.config/zim/notebooks.list
DEBUG: Loading config from:
/home/user/doc/notes/zim/Security_Academy/notebook.zim
DEBUG: Loading config from:
/home/user/doc/notes/zim/Business_Continuity_Academy/notebook.zim
DEBUG: Loading config from: /home/user/doc/notes/zim/Prive/notebook.zim
DEBUG: Loading config from: /home/user/doc/notes/zim/Heroth/notebook.zim
DEBUG: Wrote /home/user/.config/zim/notebooks.list
DEBUG: Loading config from:
/home/user/doc/notes/zim/Security_Academy/notebook.zim
DEBUG: Loading config from:
/home/user/doc/notes/zim/Business_Continuity_Academy/notebook.zim
DEBUG: Loading config from: /home/user/doc/notes/zim/Prive/notebook.zim
DEBUG: Loading config from: /home/user/doc/notes/zim/Heroth/notebook.zim
DEBUG: Wrote /home/user/.config/zim/notebooks.list
DEBUG: Opening dialog "Open Notebook - Zim"
DEBUG: Dialog response OK
DEBUG: Wrote /home/user/.config/zim/notebooks.list
DEBUG: Closed dialog "Open Notebook"
DEBUG: Remote call from 4306: <RemoteMethodCall: 4306:
zim.ipc.Server(None).ping((), {})>
DEBUG: Starting server by spawning new process
INFO: Spawning: ['/usr/bin/python', '/usr/local/bin/zim',
'--ipc-server-main', '/tmp/zim-user/zim-server-socket', '10'] (cwd:
None)
DEBUG: Process started with PID: 4315
DEBUG: Remote call from 4306: <RemoteMethodCall: 4306:
zim.ipc.Server(None).ping((), {})>
INFO: Server starting 4315 at /tmp/zim-user/zim-server-socket
Traceback (most recent call last):
File "/usr/local/bin/zim", line 73, in <module>
zim.main(argv)
File "/usr/local/lib/python2.7/dist-packages/zim/__init__.py", line
294, in main
zim.ipc.handle_argv()
File "/usr/local/lib/python2.7/dist-packages/zim/ipc.py", line 114, in
handle_argv
servermain()
File "/usr/local/lib/python2.7/dist-packages/zim/ipc.py", line 308, in
servermain
server.start()
File "/usr/local/lib/python2.7/dist-packages/zim/ipc.py", line 348, in
start
self.listener = Listener(SERVER_ADDRESS)
File "/usr/lib/python2.7/multiprocessing/connection.py", line 132, in
__init__
self._listener = SocketListener(address, family, backlog)
File "/usr/lib/python2.7/multiprocessing/connection.py", line 254, in
__init__
self._socket.bind(address)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use
DEBUG: Remote call from 4306: <RemoteMethodCall: 4306:
zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 4306: <RemoteMethodCall: 4306:
zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 4306: <RemoteMethodCall: 4306:
zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 4306: <RemoteMethodCall: 4306:
zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 4306: <RemoteMethodCall: 4306:
zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 4306: <RemoteMethodCall: 4306:
zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 4306: <RemoteMethodCall: 4306:
zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 4306: <RemoteMethodCall: 4306:
zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call from 4306: <RemoteMethodCall: 4306:
zim.ipc.Server(None).ping((), {})>
DEBUG: Cannot connect to server 4306:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/zim/ipc.py", line 261, in
start_server_if_not_running
s.ping()
File "/usr/local/lib/python2.7/dist-packages/zim/ipc.py", line 692, in
call
conn = Client(SERVER_ADDRESS, SERVER_ADDRESS_FAMILY)
File "/usr/lib/python2.7/multiprocessing/connection.py", line 169, in
Client
c = SocketClient(address)
File "/usr/lib/python2.7/multiprocessing/connection.py", line 293, in
SocketClient
s.connect(address)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 111] Connection refused
Traceback (most recent call last):
File "/usr/local/bin/zim", line 73, in <module>
zim.main(argv)
File "/usr/local/lib/python2.7/dist-packages/zim/__init__.py", line
443, in main
start_server_if_not_running()
File "/usr/local/lib/python2.7/dist-packages/zim/ipc.py", line 272, in
start_server_if_not_running
raise AssertionError, 'Failed to start server (spawning)'
AssertionError: Failed to start server (spawning)
Grx HdV
Follow ups