bzr explorer crashes if not ulimit > 1024 is set

Bug #1005481 reported by Anton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Explorer
Incomplete
Undecided
Unassigned

Bug Description

bzr explorer crashes in OS X if not ulimit > 1024 is set previously in command line

Revision history for this message
Martin Packman (gz) wrote :

Can you please clarify a few things:

* Is this really about `ulimit -f` rather than one of the other setting? That's normally unlimited.
* Did you manually set a lower value, or is the default setting wrong?
* Please attach the section of .bzr.log (running `bzr version` will tell you where to find it) which includes the traceback of bzr-explorer failing.

If this is about file handles rather than one of the other ulimit settings might be bug 926439 related.

affects: bzr → bzr-explorer
Changed in bzr-explorer:
status: New → Incomplete
Revision history for this message
Anton (avelo) wrote :

Sorry, it seems to be the same bug as https://bugs.launchpad.net/bugs/926439

bzr explorer opens, but dies when opening a repository with:

$ bzr explorer
QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
.... (174 lines like this)
QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
QEventDispatcherUNIXPrivate(): Unable to create thread pipe: Too many open files
QEventDispatcherUNIXPrivate(): Can not continue without a thread pipe
Abort trap
$

If I use ulimit -n 1024 (I suposse any number greater than 174- a few more should work) bzr explorer opens the repository and works ok

$ bzr version
Bazaar (bzr) 2.5.0
  Python interpreter: /usr/local/bin/python 2.7.3
  Python standard library: /usr/local/Cellar/python/2.7.3/lib/python2.7
  Platform: Darwin-10.8.0-x86_64-i386-64bit
  bzrlib: /usr/local/Cellar/bazaar/2.5.0/libexec/bzrlib

It's an installation in OS X 10.6.8 with homebrew

Revision history for this message
Martin Packman (gz) wrote :

Thanks for clarifying. Either upping the file handle limit, or disabling the filesystem watcher as per the patch in the existing bug are possible workarounds.

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 1005481] Re: bzr explorer crashes if not ulimit > 1024 is set

Anton пишет:
> Sorry, it seems to be the same bug as
> https://bugs.launchpad.net/bugs/926439
>
> bzr explorer opens, but dies when opening a repository with:
>
> $ bzr explorer
> QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
> .... (174 lines like this)
> QKqueueFileSystemWatcherEngine::addPaths: open: Too many open files
> QEventDispatcherUNIXPrivate(): Unable to create thread pipe: Too many open files
> QEventDispatcherUNIXPrivate(): Can not continue without a thread pipe
> Abort trap
> $

It looks like known problem with filesystem watcher.
Look at https://bugs.launchpad.net/bzr-explorer/+bug/926439
There is a patch that could help you. If you try this patch, tell us
whether it helps you.

--
All the dude wanted was his rug back

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.