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 #9

Closed
RicardoEPRodrigues opened this issue Sep 7, 2016 · 22 comments
Closed

Uncaught Error: EMFILE: too many open files #9

RicardoEPRodrigues opened this issue Sep 7, 2016 · 22 comments
Labels

Comments

@RicardoEPRodrigues
Copy link

I installed Harmony, selected my music folder and connected to Spotify, after that all I get is a White Screen where Harmony should be.

I started the app from a terminal and noticed this messages:

Failed to encode dictionary
Failed to encode reply value

How can I fix this?

@vincelwt
Copy link
Owner

vincelwt commented Sep 7, 2016

Hi,

The messages you are reporting are always showing, so they're not the problem.

Are you running a 32bits or 64bits computer ?

@RicardoEPRodrigues
Copy link
Author

64bits.

Do you need additional information? Like nodejs version or something.

@vincelwt
Copy link
Owner

vincelwt commented Sep 7, 2016

Do you see at least the window borders ? Or nothing but white where the app is ?:

Node and npm version would be great:

node -v
npm -v

Even if I doubt it as something to do with it if you installed it using the .deb .

I'm uploading a modified version with the ability to see the errors in the electron process (with devtools) .

@RicardoEPRodrigues
Copy link
Author

The borders show up.

What happens is that the window show up, I see the controls and all the layout for a millisecond and then the window goes white...

node -v
 v6.2.2
npm -v
 3.9.5

I don't know it it's important, but the music folder is in a NTFS partition.

@vincelwt
Copy link
Owner

vincelwt commented Sep 7, 2016

Could you trying resetting the app
rm ~/.config/configstore/harmony.json
and then add a folder on the main partition (doesn't matter if there is no music in it )?

Just in case the NTFS is the problem (but I doubt it)

@RicardoEPRodrigues
Copy link
Author

The NTFS is the problem...

I selected the default and empty music folder to the app and everything went fine.
Also added Spotify again and still fine.
Changed the folder to one in a NTFS partition and White Screen.

@vincelwt vincelwt changed the title White screen on Ubuntu 16.04 Adding music from NTFS partition Sep 7, 2016
@vincelwt vincelwt added the bug label Sep 7, 2016
@vincelwt
Copy link
Owner

vincelwt commented Sep 7, 2016

I'm trying to replicate the issue.

@RicardoEPRodrigues
Copy link
Author

The NTFS partition is on another disk separate from where I installed Ubuntu.
I only mount it when I need it, meaning that it is not mounted at startup.

@vincelwt
Copy link
Owner

vincelwt commented Sep 7, 2016

I tried putting an album on an NTFS partition and it worked.
Maybe it is one of your songs causing the problem ?
Could you try creating an empty folder on your NTFS drive and try to add it to see if the drive is indeed the problem ?

@RicardoEPRodrigues
Copy link
Author

It appears to be my files... I'll try to see which ones and report it here.

@vincelwt
Copy link
Owner

vincelwt commented Sep 7, 2016

Thanks! If you could upload the problematic song(s) to Dropbox or any service so I can check what's wrong, that would be great.

@RicardoEPRodrigues
Copy link
Author

News: If I select folder by folder everything works fine... Oh god.

My theory: Since the Music folder has a lot of music folders in it, it may have a problem with it. And since the .wma is not supported, having mixed files (.wma, .mp3, etc.) can create a bug.

@vincelwt
Copy link
Owner

vincelwt commented Sep 7, 2016

Weird :/

Could you try running Harmony from command line like this:

Harmony --enable-logging

And post the command line log ?

Thanks.

@RicardoEPRodrigues
Copy link
Author

Weirdest thing ever...

This is the log when the screen goes blank.
log.txt

The weird part is that, if I regularly close and open Harmony, it'll eventually work...
I have other apps using nodejs and electron, can it be related?

@vincelwt
Copy link
Owner

vincelwt commented Sep 7, 2016

Are the other electron apps open at the same time ?
The recurring error is:
Uncaught Error: EMFILE: too many open files
It seems to be a bug with the node fs module.
(Definitely not a bug caused by wma)

Not sure how to solve that :/

@vincelwt vincelwt changed the title Adding music from NTFS partition Uncaught Error: EMFILE: too many open files Sep 7, 2016
@RicardoEPRodrigues
Copy link
Author

I supposed that since the Music folder is so big it may cause those errors.

I have Nylas N1 running in the background.

Sidenote: Will Harmony support .wma?

@vincelwt
Copy link
Owner

vincelwt commented Sep 7, 2016

Could you try quitting Nylas - just in case ?

Wav support should be coming in next release (Harmony supports it, it just wasn't activated). The only problem is tag reading, which I don't know when it will work with Wav files.

Edit: Oops, I though you asked about .wav. Still didn't tried Wma

@RicardoEPRodrigues
Copy link
Author

It is working, I think I just have to close and open it a couple of times.

This is the output when it works.
log.txt
Using Harmony --enable-logging of course.

@vincelwt
Copy link
Owner

vincelwt commented Sep 7, 2016

Thats very weird, as the errors still shows.

Can you confirm tracks concerned by the issue ( not sure if it is all of them - they appear in the log) are still showing on Harmony ?

@RicardoEPRodrigues
Copy link
Author

The musics with error are not showing in Harmony.

@vincelwt
Copy link
Owner

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

@vincelwt
Copy link
Owner

Closing as I think it's fixed

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