question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crashes after a short period of time

See original GitHub issue

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

localhost refused to connect

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:

import eel
eel.init('web')
eel.start('settings.html', size=(1216, 736))

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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15

github_iconTop GitHub Comments

3reactions
munabedancommented, May 7, 2020

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

2reactions
NarutoOpcommented, May 12, 2020

@munabedan Mun Thanks this solved my problem. I also included eel library to each pages and boom it started working smoothly without crashes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows crashing every morning after a few minutes
After starting my PC for the first time in the day, it keeps crashing after a few minutes. Sometimes, it happens multiple times...
Read more >
Question - PC crashing after short periods of gaming
Hello, The problem I'm having is that whenever I am gaming for some time (usually less than 1 hour) my pc will crash....
Read more >
My Computer Freezes After 20 or 30 Minutes & Has to Be ...
When your machine freezes regularly within a short time of booting, however, it can point to a number of problems. As a first...
Read more >
Why does My PC Keep Crashing? Here're 10 Fast Fixes!
A computer crashes due to overheating, incompatibility of software and hardware, or a virus attack. It can also freeze if the internal hardware...
Read more >
10 Instant Ways to Fix Computer Keeps Crashing Windows 10
Are you troubled by the computer keeps crashing when you play games? ... system partition is too small, the computer will crash at...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found