Opened 12 days ago

Last modified 9 days ago

#539 new defect

OpenLayers map on homepage may appear blank on new install

Reported by: Jeff McKenna Owned by: Jeff McKenna
Priority: critical Milestone: 5.2.1 release
Component: MS4W - Base Version: 5.2.0
Keywords: Cc: TC Haddad
Blocked By: Blocking:

Description (last modified by Jeff McKenna)

  • initially reported by @tchaddad
  • honestly I once saw this happen during the 5.2.0 release candidate process
    • in my case, it only happened on my heavily used machine, with tons of tabs open, in Firefox (that was running a long time, weeks likely, without an update)
      • by "heavily used" I mean I was running the setup.exe installer over and over again into different ports and folders and tabs, and eventually one run caused a blank map in the OpenLayers map on MS4W's homepage (127.0.0.1)
    • clearing the browser cache didn't fix it
    • magically, I closed Firefox (hard restarted it) and I have never seen this issue since

Needs more research (and hopefully steps to replicate here). From quick research I notice other OpenLayers users with somewhat similar reports:

This will be a tough one. Hmm. Any more findings @tchaddad??

Seems like some sort of memory issue.

Difficult to know yet if a change is needed inside the actual MapServer source code, or to MS4W's embedded OpenLayers code.

Change History (8)

comment:1 by Jeff McKenna, 12 days ago

Description: modified (diff)

comment:2 by Jeff McKenna, 12 days ago

Description: modified (diff)

comment:3 by Jeff McKenna, 12 days ago

Summary: OpenLayers map on homepage may appear blank on first loadOpenLayers map on homepage may appear blank on new install

comment:4 by Jeff McKenna, 12 days ago

Description: modified (diff)

comment:5 by Jeff McKenna, 12 days ago

Oh also, back when it happened, I remember checking and the embedded OpenLayers code wasn't even being called by the browser (and that absolutely confused me).

Eventually I tried a browser restart and have never hit that issue since.

comment:6 by Jeff McKenna, 11 days ago

and honestly, I can't remember exactly if I needed a browser restart, or hard reboot on that machine, that solved it. In my case it was definitely a memory/CPU issue, on a long running and over-used Firefox instance.

comment:7 by Jeff McKenna, 11 days ago

related ticket: #543 (upgrade MS4W's embedded ol.js and also make it more lightweight/only include required modules, to hopefully prevent eventual empty map canvas issue)

comment:8 by TC Haddad, 9 days ago

Agree with your first thought that this could be a resource issue and that smaller OL might help. I went back and double checked, and the server this happened on actually operates on just 4GB RAM, so perhaps under-resourced overall?

Note: See TracTickets for help on using tickets.