Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Uncaught Error: EMFILE: too many open files #44

Closed
Coriou opened this issue Sep 12, 2016 · 10 comments
Closed

Uncaught Error: EMFILE: too many open files #44

Coriou opened this issue Sep 12, 2016 · 10 comments
Labels

Comments

@Coriou
Copy link

Coriou commented Sep 12, 2016

I'm so happy someone made such an app, I've been wanting something similar for a while now. So thanks a lot for that.

Now, about my issue : I want to use local tracks + Soundcloud + Spotify. So I set a directory for my local music. I log into Soundcloud. I log into Spotify. Close login window. It loads for a second and tells me my Soundcloud login has an issue. Ok. I try again. Same thing.

I try to remove Soundcloud. Now Spotify won't work.

I try to remove local tracks. Everything work.

My issue here is that if I use the local library feature, I can't use remote services. However, both features (local & Spotify for instance) work fine as long as they are not both active at the same time.

I'm using the Mac client on MacOS Sierra GM.

@vincelwt
Copy link
Owner

Weird issue :/

Could you first try making a full reset in the settings page and then login again ?

If it still doesn't works, could you try reproducing the bug, then do Alt+Cmd+I , go in the "Console" tab and copy everything that's written ? (You have to type the shortcut from the main window and not from the settings page)

@vincelwt vincelwt added the bug label Sep 12, 2016
@Coriou
Copy link
Author

Coriou commented Sep 12, 2016

Before posting the issue I did try to reset everything. Not sure where cache / settings are stored but I even removed the application and redownloaded it.

I hadn't checked the console though. Unless you require it, I'll just post an excerpt of the logs as they are huge and it's actually always the same error :

# Got a ton of those (8k +)
Uncaught Error: EMFILE: too many open files, open '/path/to/music/file' # events.js:160

# Then after that "undefined" is logged in the console (fetch.js:79)

# Finally 
Error: expected frame header but was not found # fetch.js:79
Uncaught Error: Cannot read property 'length' of undefined in "{\"action\":\"play\"}\n" # events.js:160

I think it's now pretty clear what the main problem is. My music library contains 11k tracks (75Gb).

@vincelwt
Copy link
Owner

That's what I was afraid of. Same issue as #9
I really need need to fix this.
I'll try downloading some GBs of files to see how I can fix this

@vincelwt vincelwt changed the title When I use local tracks + a remote service, nothing works Uncaught Error: EMFILE: too many open files Sep 12, 2016
@vincelwt
Copy link
Owner

Could you try opening the terminal and typing:
ulimit -n 10480

And then retry ?

From this thread

@vincelwt
Copy link
Owner

Ok I think I found a fix, I'll try to publish a build tonight

@vincelwt
Copy link
Owner

Could you try with the latest release ?
https://github.com/vincelwt/harmony/releases/latest

@Coriou
Copy link
Author

Coriou commented Sep 13, 2016

Hey thanks a lot for the quick update. Unfortunately, I'm still getting exactly the same error.

@Coriou
Copy link
Author

Coriou commented Sep 13, 2016

Oups, sorry I jumped to conclusions. For some reason, I tried it again and it worked fine this time. I'll try to reproduce the original bug see if it happens again 👍

@Coriou Coriou closed this as completed Sep 13, 2016
@vincelwt
Copy link
Owner

Awesome, can you see your full mp3 library ?

@Coriou
Copy link
Author

Coriou commented Sep 15, 2016

Yeah, I can !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants