changing scene mode, 'clone' of undefined

This is not a bug with cesium but any hints on tracing this appreciated. This happens only when i change map from COLUMBUS to SCENE3D. I do have multiple morphStart/Complete listeners that do things like save camera view state and stuff.

An error occurred while rendering. Rendering has stopped.

undefined

TypeError: Cannot read property ‘clone’ of undefined

TypeError: Cannot read property ‘clone’ of undefined

at eval (eval at module.exports (http://localhost:8080/vendor.js:65830:8), :529:17597)

at Object.M.l.complete (eval at module.exports (http://localhost:8080/vendor.js:65830:8), :529:17173)

at e.Tween.update (eval at module.exports (http://localhost:8080/vendor.js:65830:8), :488:23118)

at c.update (eval at module.exports (http://localhost:8080/vendor.js:65830:8), :529:25973)

at ye.initializeFrame (eval at module.exports (http://localhost:8080/vendor.js:65830:8), :532:29949)

at P.render (eval at module.exports (http://localhost:8080/vendor.js:65830:8), :543:22836)

at t (eval at module.exports (http://localhost:8080/vendor.js:65830:8), :543:10840)

P.showErrorPanel

Also, none of my morphComplete listeners are being triggered. This is happening before morphComplete.

Hi there,

It’s difficult to help you debug without seeing your code. Any chance you can share the problematic code as a sandcastle gist? See here for instructions: http://cesiumjs.org/tutorials/Sandcastle-Tutorial/

Best,

  • Rachel

I switched to unminified cesium which provides a little more detail:

VM890:189646 An error occurred while rendering. Rendering has stopped.
undefined
TypeError: Cannot read property ‘clone’ of undefined
TypeError: Cannot read property ‘clone’ of undefined
at eval (eval at module.exports (http://localhost:8080/vendor.js:71096:8 ), :172817:50)
at Object.options.complete (eval at module.exports (http://localhost:8080/vendor.js:71096:8 ), :172791:17)
at TWEEN.Tween.update (eval at module.exports (http://localhost:8080/vendor.js:71096:8 ), :46783:45)
at TweenCollection.update (eval at module.exports (http://localhost:8080/vendor.js:71096:8 ), :173407:29)
at Scene.initializeFrame (eval at module.exports (http://localhost:8080/vendor.js:71096:8 ), :180451:22)
at CesiumWidget.render (eval at module.exports (http://localhost:8080/vendor.js:71096:8 ), :189691:25)
at render (eval at module.exports (http://localhost:8080/vendor.js:71096:8), :189089:32)

Hi there,

Unfortunately an undefined error could be a lot of things – this just means that a value isn’t being set properly somewhere, possibly because some function is being called with the wrong arguments. Looks like its coming from somewhere in your usage of the Tween library, but beyond that unfortauntely I can’t help without seeing your code.

Best,

  • Rachel