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
Crashes after a short period of time #54
Comments
No need to apologize, thanks for raising issues rather than just moving on. I will try and recreate your problems tomorrow (England are playing this evening!). You don't look like you are doing anything wrong. I think the best bet will be to add a debug mode with more logging, that should help work out what's happening. |
@ChrisKnott I'm wondering if perhaps it is a problem with Chrome Canary as my app seems to run in that my default, not sure how to make it run in normal chrome. |
After uninstalling Canary, the problem still persists and the dimensions have changed to 1216x739. |
@04fsnape Can you upload your project somewhere so I can try and recreate the issue? |
@ChrisKnott Sure, take a look at https://github.com/04fsnape/eel_test. If you open it and then just click between the pages via the menu on the left a bit you should see it crash. |
@04fsnape I think the issue was that it was occasionally taking longer than 1 second to re-establish the websocket for the new page. The default behaviour when a websocket closes is wait 1 second, then see if there are any websockets open, and if there aren't, exit the Python process. In the latest version, this can be overridden by providing a callback function to Here's an example which doesn't crash for me...
Unfortunately this version also doesn't quit. It's up to you to come up with new logic for when you want to quit. One option would be to set a variable Looking at your app though (which looks great!), it might be better to just keep a single page open the whole time, with a single websocket, and use AJAX to dynamically change the contents of the right hand side. I'll close the issue, but let me know if you are still having problems |
I see. Thank you for putting the time in to have a look at the problem. Do you know if it's possible to tie the function to the close button on the title bar? Because if that is possible then it would work fine as far as I can tell. If not then I think you're right, AJAX sounds like a good solution. |
Currently there's not an easy way to do that. I will add some logic to track the actual processes as well later this week which will make this possible |
I remember know that's it's very difficult to track processes because Chrome is very flexible with how is uses process among different tabs/different windows etc. |
i have problem with ERR_CONNECTION_REFUSED i have trying every example but none of them work
|
The same here |
I found that my app was crashing while moving from one page to another, including the eel library to each page seemed to fix the problem: <script type="text/javascript" src="/eel.js"></script> I then navigate with: window.location.href="newpage.html" Hope this works for you too |
My problem is not while navigating to another page (maybe a sort of). When Chrome DevTools is open, i do Shift + F5 (without changing the main resources, just to refresh) it crashes. This suituation is happening randomly. Sometimes it crashes and sometimes (even after i repetadely Shift + F5) it doesn't. I'm creating an important application with this and i'm afraid. I need urgent help. |
@munabedan Mun |
My problem remains with this situation: I have my main html code in "web" folder and i'm changing contents of tag with remote ajax. Adding some external javascript files (from web) dynamically. It doesn't crash all the time, crashes randomly when i press SHIFT + F5. |
Sorry for all the issues but I'm just trying to get a simple GUI up and running but I'm having quite a lot of problems.
My current GUI consists of 3 .html documents and 4 .css files (one global and three individual).
When I open my GUI it works fine at the start, I can click on each item of my menu and it switches between the html documents great. However, if I start clicking on the links in fairly quick succession the program crashes with no error in the console, but the error on the GUI is
Even if I don't click very fast, the python script will end, but I can still click around for a while (it's very slow), I presume this is because it's cached or something, and then it will run into the same error as before.
Has anyone else experienced issues like this? My code is not very complicated.
Here is my python:
And my HTML on all 3 is literally just a menu with links at the moment and the CSS is just simple styling.
EDIT: I have no such problems if I go to localhost in my browser.
The text was updated successfully, but these errors were encountered: