[GIS] A script on this page may be busy, or it may have stopped responding

javascriptopen-source-gisopenlayers-2

I'm using OpenLayers – 2.11,GeoServer 2.13, ExtJS 3.4, and Java for developing GIS based web applications.

Recently i'm getting below error message in my application

"A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete." Mostly it showing OpenLayers.js file.

I've done"about:config" and set "dom.max_script_run_time" to 20 and more and nothing seems to work.

Please guide me to solve this issue..

Best Answer

You probably have an infinite loop in your code or you are trying to do something too heavy for your processor to handle like loading to many vector in your map. We can't help you if you don't provide some code, but even with an example, I suspect your code is really complex so it won't help much...

Solution

  1. Check for infinite loop (or really long loop).
  2. Check for big object cloning (maybe inside a loop).
  3. Check for multiple object creation that may use all your RAM or CPU.
  4. Try to remove some code or part of your application one by one until it start working again to find the problematic part
  5. Build a small example that you can share through jsfiddle.net that reproduce the problem outside of your environment.
  6. Ask again, if you didn't find the problem yet, by showing us your small example.