v1.5 fatal error in Chrome: "Cannot read property 'viewModel' of undefined"

After updating from v1.4 to v1.5 my flight simulation site no longer runs in Chrome.

From Chrome:

Uncaught TypeError: Cannot read property ‘viewModel’ of undefined Cesium.js:422

V._onTick Cesium.js:378

r.raiseEvent Cesium.js:384

l.tick Cesium.js:419

P.render Cesium.js:422 V.render

In Firefox it runs OK but with lots of warnings:

mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create Cesium.js:414

Error: WebGL: Disallowing antialiased backbuffers due to blacklisting. Cesium.js:404

Error: WebGL: A texture is going to be rendered as if it were black, as per the OpenGL ES 2.0.24 spec section 3.8.2, because it is a 2D texture, with a minification filter requiring a mipmap, and is not mipmap complete (as defined in section 3.7.10). Cesium.js:396

Error: WebGL: A texture is going to be rendered as if it were black, as per the OpenGL ES 2.0.24 spec section 3.8.2, because it is a cube map texture, with a minification filter requiring a mipmap, and is not mipmap cube complete (as defined in section 3.7.10). Cesium.js:405

Error: WebGL: A texture is going to be rendered as if it were black, as per the OpenGL ES 2.0.24 spec section 3.8.2, because it is a 2D texture, with a minification filter requiring a mipmap, and is not mipmap complete (as defined in section 3.7.10). Cesium.js:396

Error: WebGL: No further warnings will be reported for this WebGL context (already reported 32 warnings) Cesium.js:396

  1. Can you try Chrome in incognito mode to make sure it’s not a caching issue with your browser or server?

  2. The Firefox "A texture is going to be rendered as " errors are actually a bug in Firefox see https://github.com/AnalyticalGraphicsInc/cesium/issues/1317 The first error about blacklisting is Firefox disabling a feature due to your video card/and or drivers and not Cesium related.

Having the same issue.
Tried incognito tab and cleared browser cache.

Still seeing the error.

Hi Dennis,

Are you using the latest version of Chrome? Does the empty Cesium Viewer for 1.5 work for you: https://cesiumjs.org/Cesium/Build/Apps/CesiumViewer/index.html

Can you add the unminified Cesium.js to your app and provide a call stack?

Your flight simulation sounds cool. Can you share a link to it?

Thanks,

Patrick

Hi Patrick,

Yes I am using the latest of Chrome.

The empty cesium Viewer works for me.

The following link is making use of 1.5 and the unminified Cesium.js

http://19.mcyclingthealps.appspot.com/cesium15/cesium.html?xStart=45.30187999999999&yStart=6.95305&xEnd=45.29968&yEnd=6.93618&cat=HC&from=Dennis&pass=ColdeMadeleine

It crashes on line 142353 of the unminified file.

The following link is making use of 1.4 and the normal cesium.js and here it works

http://19.mcyclingthealps.appspot.com/cesium/cesium.html?xStart=45.30187999999999&yStart=6.95305&xEnd=45.29968&yEnd=6.93618&cat=HC&from=Dennis&pass=ColdeMadeleine

The flight simulation is from Matt.

Dennis

Dennis - perfect, thanks for the link! I submitted issued #2379. We’ll look at it soon.

Matt - would still love to see your flight simulation? :slight_smile:

Patrick

This looks like a definite bug. Can you try setting selectionIndicator to true in the options parameter where you construct the viewer and see if it fixes the problem? You shouldn’t have to do that; but it should work around the current crash.

Hi Mattew,

Setting the selectionIndicator to true fixes the problem.

The link above now works.

Dennis

Yes that fixes the problem. Thanks!

Thanks guys. We’ve fixed the bug in master and it will go out with the next release: https://github.com/AnalyticalGraphicsInc/cesium/pull/2380