Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on repo open #1015

Closed
akontsevich opened this issue Nov 20, 2019 · 6 comments
Closed

Crash on repo open #1015

akontsevich opened this issue Nov 20, 2019 · 6 comments

Comments

@akontsevich
Copy link

Began to crash on repo open again: #991 (comment)

> git-cola
Traceback (most recent call last):
  File "/usr/share/git-cola/lib/cola/fsmonitor.py", line 198, in run
    self._inotify_fd = inotify.init()
  File "/usr/share/git-cola/lib/cola/inotify.py", line 44, in _errcheck
    raise OSError(err, os.strerror(err))
OSError: [Errno 24] Too many open files
Aborted (core dumped)

Workaround: https://bugzilla.opensuse.org/show_bug.cgi?id=1155700#c1

@davvid
Copy link
Member

davvid commented Dec 18, 2019

I'm going to make it so that we detect when this happens and have it temporarily disable inotify support in cola. Thanks for the heads up.

You can workaround this issue by doing git config cola.inotify false in larger repositories. I'll make it more robust shortly nonetheless.

@davvid davvid closed this as completed in 2092490 Dec 18, 2019
@akontsevich
Copy link
Author

Got crash recently on a repo with detached head for example. Again on open.

@davvid
Copy link
Member

davvid commented Dec 18, 2019

Can you post a traceback from a git checkout from master? If you clone it at ~/src/git-cola then you can go into the repo where you saw the crash and run ~/src/git-cola/bin/git-cola to make sure you're testing the latest.

I quickly tried a detached head here locally against the cola repo and it was behaving fine. Is there an easy way for me to reproduce it?

@akontsevich
Copy link
Author

Is there an easy way for me to reproduce it?

I think You can with this repo: https://github.com/PX4/Firmware.git. Steps to reproduce:

  • git clone https://github.com/PX4/Firmware.git
  • cd Firmware
  • git checkout v1.9.2
  • Now open in git-cola - crash for me
Traceback (most recent call last):
  File "/usr/share/git-cola/lib/cola/fsmonitor.py", line 198, in run
    self._inotify_fd = inotify.init()
  File "/usr/share/git-cola/lib/cola/inotify.py", line 44, in _errcheck
    raise OSError(err, os.strerror(err))
OSError: [Errno 24] Too many opened files

Will test the latest now.

@akontsevich
Copy link
Author

Latest from github seems works fine for me.

@davvid
Copy link
Member

davvid commented Dec 19, 2019

cheers, thanks for testing!

bmwiedemann added a commit to bmwiedemann/openSUSE that referenced this issue Dec 24, 2019
https://build.opensuse.org/request/show/759035
by user dimstar_suse
- Added inotify.patch
  The inotify filesystem monitor now handles
  `OSError: [Errno 24] Too many open files` errors by disabling inotify.
  git-cola/git-cola#1015
  https://bugzilla.opensuse.org/show_bug.cgi?id=1155700
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants