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

**URL:** https://community.cesium.com/t/v1-5-fatal-error-in-chrome-cannot-read-property-viewmodel-of-undefined/1838
**Category:** CesiumJS
**Created:** [January 6, 2015, 5:18pm UTC](https://community.cesium.com/t/v1-5-fatal-error-in-chrome-cannot-read-property-viewmodel-of-undefined/1838 "2015-01-06T17:18:38Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Matt\_Whalley](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/matt_whalley/32/2115_2.png) [@Matt\_Whalley](https://community.cesium.com/u/Matt_Whalley)
#### Post date: [January 6, 2015, 5:18pm UTC](https://community.cesium.com/t/v1-5-fatal-error-in-chrome-cannot-read-property-viewmodel-of-undefined/1838/1 "2015-01-06T17:18:38Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Matt\_Amato](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/matt_amato/32/1993_2.png) [@Matt\_Amato](https://community.cesium.com/u/Matt_Amato)
#### Post date: [January 6, 2015, 5:24pm UTC](https://community.cesium.com/t/v1-5-fatal-error-in-chrome-cannot-read-property-viewmodel-of-undefined/1838/2 "2015-01-06T17:24:50Z")

</div>

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](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.

---

<div class="post-metadata">

### Author: ![Dennis\_Wegewijs](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@Dennis\_Wegewijs](https://community.cesium.com/u/Dennis_Wegewijs)
#### Post date: [January 6, 2015, 8:06pm UTC](https://community.cesium.com/t/v1-5-fatal-error-in-chrome-cannot-read-property-viewmodel-of-undefined/1838/3 "2015-01-06T20:06:43Z")

</div>

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

Still seeing the error.

---

<div class="post-metadata">

### Author: ![patrick](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/patrick/32/2045_2.png) [@patrick](https://community.cesium.com/u/patrick)
#### Post date: [January 6, 2015, 9:27pm UTC](https://community.cesium.com/t/v1-5-fatal-error-in-chrome-cannot-read-property-viewmodel-of-undefined/1838/4 "2015-01-06T21:27:11Z")

</div>

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](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

---

<div class="post-metadata">

### Author: ![Dennis\_Wegewijs](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@Dennis\_Wegewijs](https://community.cesium.com/u/Dennis_Wegewijs)
#### Post date: [January 6, 2015, 10:15pm UTC](https://community.cesium.com/t/v1-5-fatal-error-in-chrome-cannot-read-property-viewmodel-of-undefined/1838/5 "2015-01-06T22:15:11Z")

</div>

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](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](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

---

<div class="post-metadata">

### Author: ![patrick](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/patrick/32/2045_2.png) [@patrick](https://community.cesium.com/u/patrick)
#### Post date: [January 6, 2015, 10:21pm UTC](https://community.cesium.com/t/v1-5-fatal-error-in-chrome-cannot-read-property-viewmodel-of-undefined/1838/6 "2015-01-06T22:21:04Z")

</div>

Dennis - perfect, thanks for the link! I submitted issued [#2379](https://github.com/AnalyticalGraphicsInc/cesium/issues/2379). We’ll look at it soon.

Matt - would still love to see your flight simulation? 🙂

Patrick

---

<div class="post-metadata">

### Author: ![Matt\_Amato](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/matt_amato/32/1993_2.png) [@Matt\_Amato](https://community.cesium.com/u/Matt_Amato)
#### Post date: [January 6, 2015, 10:23pm UTC](https://community.cesium.com/t/v1-5-fatal-error-in-chrome-cannot-read-property-viewmodel-of-undefined/1838/7 "2015-01-06T22:23:13Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Dennis\_Wegewijs](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@Dennis\_Wegewijs](https://community.cesium.com/u/Dennis_Wegewijs)
#### Post date: [January 9, 2015, 6:42pm UTC](https://community.cesium.com/t/v1-5-fatal-error-in-chrome-cannot-read-property-viewmodel-of-undefined/1838/8 "2015-01-09T18:42:32Z")

</div>

Hi Mattew,

Setting the selectionIndicator to true fixes the problem.

The link above now works.

Dennis

---

<div class="post-metadata">

### Author: ![Matt\_Whalley](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/matt_whalley/32/2115_2.png) [@Matt\_Whalley](https://community.cesium.com/u/Matt_Whalley)
#### Post date: [January 9, 2015, 8:56pm UTC](https://community.cesium.com/t/v1-5-fatal-error-in-chrome-cannot-read-property-viewmodel-of-undefined/1838/9 "2015-01-09T20:56:59Z")

</div>

Yes that fixes the problem. Thanks!

---

<div class="post-metadata">

### Author: ![Matt\_Amato](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/matt_amato/32/1993_2.png) [@Matt\_Amato](https://community.cesium.com/u/Matt_Amato)
#### Post date: [January 9, 2015, 8:58pm UTC](https://community.cesium.com/t/v1-5-fatal-error-in-chrome-cannot-read-property-viewmodel-of-undefined/1838/10 "2015-01-09T20:58:45Z")

</div>

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](https://github.com/AnalyticalGraphicsInc/cesium/pull/2380)
