Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8789149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:19:18+00:00 2026-06-13T22:19:18+00:00

I wish I could be more specific here, but unfortunately this might be hard.

  • 0

I wish I could be more specific here, but unfortunately this might be hard. I basically hope this is some “well”-known timeout or setup issue.

We have a website running an (JS/html – ASP.net project) website overview on a screen at a factory. This screen has no keyboard so it should keep refreshing the page forever – years perhaps (though 1 week might be okay).
(It is used by factory workers to see incoming transports etc.)

This all works perfectly; the site continuously updates itself and gets the new correct data.
Then, sometimes, in the morning this “overview” screen has no data and the workers have to manually refresh the site using the simple refresh button or F5 – which fixes everything.

I have tried a few things trying to reproduce the error myself including:

  1. Cutting the internet connection and MANY other ways of making it timeout (breakpoints, stopping services etc.).
  2. Setting the refresh time of setInterval to 100ms and letting the site run 3-5 minutes. (normal timer is 1 minute)
  3. setInterval SHOULD run forever according to the internet searching I have done.
  4. Checked that “JavaScript frequency” has not been turned down in power saving settings.

No matter what; the site resumes correct function WITHOUT a refresh as soon as I plug in the internet cable or whatever again – I can’t reproduce the error.

The website is dependent on a backend WCF service and project integration, but since the workers are fixing this with a simple refresh I am assuming this has not crashed.

EDIT: The browser I tried to reproduce the error in was IE/win7. I will ask about the factory tomorrow, but I am guessing IE/win? also.

Is setInterval in fact really infinite or is there something else wrong here?

All help much appreciated.

UPDATE:
I came in this morning after leaving the website running in debug mode with a breakpoint in the catch clause of the site updating code.
There was a 2 min. timeout error (busy server cleanup during the night likely) and THEN forever after that a null-reference error at this line:

var showHistory = (bool)Session.Contents["ShowHistory"];

I fixed it with a refresh like the workers.
I am now thinking it may be a session timeout all though we keep pinging the server..
Of course my particular session timeout may have been caused by the breakpoint making it hang forever at the first timeout – still the behavior is the same as at the factory.
I will make sure to update you guys with the final solution later.

UPDATE 2: Testing is ongoing.

UPDATE 3: The factory is IE 9, their test machine is IE 7 and my machine is IE 9. The error was seen on IE7 but NOT my IE9 after a weekends runtime.
We tried turning off ajax cache during our critical data_binding code, but it did nothing.
I tested for memory leaks and was able to create a decent leak IF I refresh 100 times per minute. I don’t think it was the problem though and a refresh cleaned the memory used.

We will try the auto-refresh thing now.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:19:19+00:00Added an answer on June 13, 2026 at 10:19 pm

    setInterval() should go on forever. But, it is possible that your script/page is leaking some sort of resource that eventually causes an error in your page script or internally to the browser.

    If this is the case, you can probably eventually track down what sort of resource is leaking and fix the real problem, but even when doing that some browsers have their own issues with very long running processes.

    It is probably worth watching resource usage to see if the browser memory usage goes up the longer the page runs. But, since an F5 fixes it, I would suggest that, as a safety measure, you just have the page reload itself every few hours. In most modern browsers a page reload, frees up all resources associated with the prior page run and gives you a clean slate from that standpoint.

    Just doing this (which triggers every six hours):

    setTimeout(function() {
        window.location.reload(true);
    }, 6 * 1000 * 60 * 60);
    

    will not only give you a clean start, but will also automatically cause your app to retrieve any server-side changes you might have made to the app every once in awhile so if you issue a bug fix, it will be automatically deployed within a few hours.

    You could also use a meta refresh tag in your page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wish I could have a more helpful title for this question, but honestly
I wish HTML could do something semantically equivalent to this; <dl class=main-list> <definitionitem> <dt>Some
Well, sad to say, but I have 2 questions, which I wish I could've
Perhaps this could be more clear. The method is returning values...but after the value
I wish I could be more descriptive in my title, but I am having
I wish I could figure this out. I need to produce a table with
Is there any good practice for this? I wish I could solve the problem
(I wish I could have come up with a more descriptive title... suggest one
I wish I could ask What libraries do i need to link but it's
I often have code based on a specific well defined algorithm. This gets well

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.