Zoom hangs when going from high level to low

5700
35
10-19-2015 11:41 AM
DanielGarcia
New Contributor III

When I execute centerAndZoom method or other method that change zoom level from high level like 19 to low level like 2, application hangs taking a lot of memory (up to 1,5 Gb).

You can test it with this simple jsfiddle... https://jsfiddle.net/dgarcrom/1dbvjqyx/

This not happend with IE, it's happend with Chrome 46.0.2490.71.

Any ideas??

Thank you.

0 Kudos
35 Replies
YannCabon
Esri Contributor

Hi Bhavin,

For my estimate, issue affects all API versions > 2.6

This issue is due to Chrome not properly handling large scaled images.

Issue 437904 - chromium - Applying opacity to element with big scale transform freezes the page - An...

I'm working on working around that issue internally for 3.15.

DanielGarcia
New Contributor III

I think you should hurry up to launch 3.15 version, because many people use this api with chrome browser.

At this moment, based in Christopher answer, I put this piece of code into my application

require(["dojo/ready", "esri/config", "dojo/has", "dojo/sniff"], function (ready, esriConfig, has, sniff) {

  ready(80, function () {

       if (has("chrome")>45) {

            esriConfig.defaults.map.zoomDuration = 0;

            esriConfig.defaults.map.zoomRate = 0;

       }

  });

});

Thanks to all

Daniel

EDIT:  Chrome version > 45

Esther_Pastor_Motrel
Esri Contributor

A bug has been created for this issue in ESRI Inc: Bug: BUG-000091559.
Actually this effects our API with versions all the way back to 3.10. Likely it is an issue specifically with Chrome 46.

0 Kudos
ChrisSmith7
Frequent Contributor

Just a heads-up, here's some info on tests I ran using version 46.0.2490.71 (64-bit)...

OSX 10.9.5 - memory leak; crash

Win 7 - memory leak; crash

Win 8 - no crash!

​I wonder why Win 8 is special...

0 Kudos
thejuskambi
Regular Contributor

because Win8 itself is bug

0 Kudos
ChrisSmith7
Frequent Contributor

Hah!

0 Kudos
BledarBirbo1
Occasional Contributor

according to Murphy's laws, things would go wrong only when they affect a large number of users.

hope that answers you Win 8 question.

0 Kudos
DanielGarcia
New Contributor III

As I said recently, If you put these lines into your application you can avoid this behavior...

esriConfig.defaults.map.zoomDuration = 0;

esriConfig.defaults.map.zoomRate = 0;

But I have found another ralated bug.

If you have a ArcGISTiledMapServiceLayer on top of a base map layer... this tile layer dont draw correctly. You can check this behaviour in this jsfiddle

Bug Navigation Mode - JSFiddle

In order to solve this, you should set mapNavigation to "classic"

map = new Map("map", {

  basemap : "gray",

  center : [-122.45, 37.75], // longitude, latitude

  zoom : 1,

  navigationMode: "classic"

});

Regards

0 Kudos
KenBuja
MVP Honored Contributor

There seems to be a couple of bugs relating to initializing the map with a basemap that has a reference layer.

Bug in Basemap Gallery dijit

DanielGarcia
New Contributor III

Thank you Ken, but in this case this only happends when you set zoomDuration and zoomRate to 0.

Regards

0 Kudos