Can't open project in GUI "Too many open files"

Bug #926439 reported by treaves on 2012-02-04
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Bazaar Explorer
Alexander Belchenko

Bug Description

I'm using (On Lion):
Bazaar Explorer — Version Control for Human Beings
Version 1.2.1 "Leif Ericson"

QBzr 0.22.0dev, bzrlib 2.5b5, PyQt 4.8.6, Qt 4.7.1, Python 2.6.7

When I double-click a an existing location to open it, I get a crash.

...(hunderds/thousands of lines of the next line)...
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: 6

Alexander Belchenko (bialix) wrote :

That looks like the error comes from Qt4 internals, I'm not sure how we can catch it properly.

In the mean time you'd better downgrade bzr-explorer to previous version 1.1.4 as a workaround.

affects: bzr → bzr-explorer
tags: added: filewatcher
Martin Packman (gz) wrote :

How many files exactly are under the location you're opening with explorer? Does this happen just with a particular location, or whenever you try and open any branch, even a freshly created one?

Changed in bzr-explorer:
status: New → Incomplete
treaves (treaves) wrote :

There are fewer than 50 files.
If you count the files that it should be ignoring (due to the .bzrignore file) there are more files, as one of the subdirectories is a Doxygen output directory.

This only happens on some projects. Not all.

Martin Packman (gz) wrote :

What's the count including ignored dirs with build artefacts? That is a known issue that needs to get fixed. The linked project certainly doesn't seem huge, so I wonder if there's something else going on too.

treaves (treaves) wrote :

4096 or so. Doxygen creates most of them.

Alexander Belchenko (bialix) wrote :

Please, test new Bazaar Explorer 1.2.2 release, and tell us whether the problem still exists.

treaves (treaves) wrote :

I'll try this out this evening (about 10 hours from now). Thanks.

treaves (treaves) wrote :

Still exists.

Alexander Belchenko (bialix) wrote :

Can you try this patch, please? Apply it to your copy of bzr-explorer 1.2.2

treaves (treaves) wrote :

That does allow it to open.

Thanks much.

Changed in bzr-explorer:
status: Incomplete → Confirmed
tags: added: macosx
Changed in bzr-explorer:
importance: Undecided → High
importance: High → Medium
tags: added: mac
removed: macosx
Arthur Mori (awsmori) wrote :

so how do we apply the patch??

i type in 'bzr patch workaround-926439.patch'

and it return an error

The text leading up to this was:
|=== modified file 'lib/'
|--- lib/ 2012-02-21 06:40:23 +0000
|+++ lib/ 2012-02-22 05:09:15 +0000
No file to patch. Skipping patch.
1 out of 1 hunk ignored
bzr: ERROR: Patch application failed

Changed in bzr-explorer:
status: Confirmed → In Progress
Changed in bzr-explorer:
importance: Medium → Critical
assignee: nobody → Alexander Belchenko (bialix)
milestone: none → 1.3.1
treaves (treaves) wrote :

This still has not made it into a release. Why?

treaves (treaves) wrote :

Guys, come on. A critical defect, with a patch that is the better part of two years old? Let's get this promoted. I'm more than willing to do it, just give me access.

Michael (michasl) wrote :

Temp fix for MAC Mavericks, update open file limit via terminal:

ulimit -S -n 8048

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions