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

When overloaded with calls, Eel dies with "eel.js:115 WebSocket connection to '...' failed: Invalid frame header" #536

Open
nosachamos opened this issue Oct 17, 2021 · 7 comments
Labels

Comments

@nosachamos
Copy link

Eel version
Eel 0.14.0

Describe the bug
I still have this issue. It happens when eel seems overloaded with messages.

eel.js:115 WebSocket connection to 'ws://localhost:8080/eel?page=index.html' failed: Invalid frame header

image

Not sure what to do with it right now as this is a total blocker, once it happens Eels just dies.

To Reproduce
I have a system in which thousands of calls are made from the Python code to JS code. After a few seconds of this, I get this issue. I don have a repro code that is standalone, but perhaps having method calls in loop would do it.

Expected behavior
Eel should not die, or should recover if this happens.

Desktop (please complete the following information):
Ubuntu, Chrome

@nosachamos
Copy link
Author

I'm wondering if this could be caused by #540

@vikramsamak
Copy link

is there any solution?? (tweaks)?

@emilioh93
Copy link

I have the same problem apparently

@nosachamos
Copy link
Author

nosachamos commented Dec 18, 2023

I made a PR to fix this but it was never merged.

#542

There is a memory leak actually. This PR fixes it and I have a system running it with billions of calls done continuously and no issues.

The project seems abandoned actually... I'm using my own fork with this fix instead. No more problems.

@emilioh93
Copy link

It's great that you found a way to fix it. It really strikes me that it stopped working suddenly, but I will look into your solution to understand more about the origin of the problem. Thank you very much for answering my message @nosachamos

@nosachamos
Copy link
Author

You bet, good luck!

@zhaoyuzhi983
Copy link

I'm also having this issue, but I don't have any issues when debugging in the IDE, the problem appears quickly after packaging, and as long as the eel is triggered frequently, I will have a similar problem

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

No branches or pull requests

4 participants