Zim

Zim 0.66 crashes on startup, Mac OS X

Bug #1687254 reported by Derek Posselt
This bug report is a duplicate of:  Bug #1687070: Python 0.66 won't start. Edit Remove
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Zim
New
Undecided
Unassigned

Bug Description

I am running zim using python 2.7 installed from macports, and have all of the necessary dependencies installed. zim 0.65 works great, but when I start 0.66, I get the following error message:

This is zim 0.66
Platform: posix
Locale: en_US UTF-8
FS encoding: utf-8
Python: (2, 7, 13, 'final', 0)
Gtk: (2, 24, 31)
Pygtk: (2, 24, 0)
Zim revision is:
  branch: zim-trunk
  revision: 871 <email address hidden>
  date: 2017-04-28 12:31:55 +0200

======= Traceback =======
  File "/Users/derekp/Source/zim-0.66/zim/main/__init__.py", line 745, in main
    ZIM_APPLICATION.run(*argv[1:])
  File "/Users/derekp/Source/zim-0.66/zim/main/__init__.py", line 554, in run
    self._run_cmd(cmd, args) # test seam
  File "/Users/derekp/Source/zim-0.66/zim/main/__init__.py", line 576, in _run_cmd
    self._run_main_loop(cmd)
  File "/Users/derekp/Source/zim-0.66/zim/main/__init__.py", line 597, in _run_main_loop
    _ipc_start_listening(self.run)
  File "/Users/derekp/Source/zim-0.66/zim/main/ipc.py", line 127, in start_listening
    raise AssertionError, 'Listener did not start'
AssertionError: Listener did not start

Revision history for this message
Derek Posselt (dposselt) wrote :

FYI, I am running Mac OS X 10.11.6 (El Capitan) with XQuartz 2.7.11

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 1687254] Re: Zim 0.66 crashes on startup, Mac OS X

Looks like a time out trying to setup the socket. Weird there is no error
message or anything. Suggests the process is working, but just taking too
long.

No idea how to troubleshoot this - will double check for relevant changes
compared to 0.65 in setting up the socket.

As a work around you can always use "--standalone" option to avoid the
socket logic.

Regards,

Jaap

On Sun, Apr 30, 2017 at 7:25 AM Derek Posselt <email address hidden> wrote:

> FYI, I am running Mac OS X 10.11.6 (El Capitan) with XQuartz 2.7.11
>
> --
> You received this bug notification because you are subscribed to Zim.
> https://bugs.launchpad.net/bugs/1687254
>
> Title:
> Zim 0.66 crashes on startup, Mac OS X
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zim/+bug/1687254/+subscriptions
>

Revision history for this message
Fabian Tröster (fabian-troester) wrote :

Seems to happen on Ubuntu 16.04 64bit, too. But in a slightly different way. Takes forever to startup and once you have attachments to a document and links to them: clicking on those links will reproducibly crash Zim 0.66. Not really usable I'm afraid to say. I will revert back to 0.65. Sorry, you must have put in a lot of work, so it must be disappointing for you. I was really excited to se a new version but unfortunately to me 0.66 is unusable ...

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

I have tracked down the root cause to the statement gobject.threads_init() in zim/main/__init__.py. After removing that line I have seen no more segfaults on my linux system.

Will push a patch and update the daily PPA this evening. Anyone who wants to test already please edit and remove the line mentioned manually.

Revision history for this message
Tim Bruce (kb0odu) wrote :

Commenting out the line identified above (line 584) did not fully solve the problem on my Mac. Now I'm receiving other (or additional?) messages (that maybe I couldn't see before:

  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
error: AF_UNIX path too long

and

    raise AssertionError, 'Listener did not start'
AssertionError: Listener did not start

Additional Information:

This is zim 0.66
Platform: posix
Locale: en_US UTF-8
FS encoding: utf-8
Python: (2, 7, 12, 'final', 0)
Gtk: (2, 24, 30)
Pygtk: (2, 24, 0)
Zim revision is:
  branch: zim-trunk
  revision: 871 <email address hidden>
  date: 2017-04-28 12:31:55 +0200

======= Traceback =======
  File "/Users/xxxxxx/Downloads/local/zim-0.66/zim/main/__init__.py", line 745, in main
    ZIM_APPLICATION.run(*argv[1:])
  File "/Users/xxxxx/Downloads/local/zim-0.66/zim/main/__init__.py", line 554, in run
    self._run_cmd(cmd, args) # test seam
  File "/Users/xxxxx/Downloads/local/zim-0.66/zim/main/__init__.py", line 576, in _run_cmd
    self._run_main_loop(cmd)
  File "/Users/xxxxx/Downloads/local/zim-0.66/zim/main/__init__.py", line 597, in _run_main_loop
    _ipc_start_listening(self.run)
  File "/Users/xxxxxx/Downloads/local/zim-0.66/zim/main/ipc.py", line 127, in start_listening
    raise AssertionError, 'Listener did not start'
AssertionError: Listener did not start

I"m starting this with:

$ python zim.py

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.