AnimationMixer produces NaN where previous versions did not

So I am basically confused. My game uses Threejs and Yuka AI for much of its contents. I use Visual Code as my editor and debug in chrome. Using the most current Threejs, which I updated recently, I am generating NaN from simple operators usage in three.core.js. Commands like those below in AnimationMixer generate NaN values. It seems related to combination operators “+=” or “*=”. Any thoughts appreciated

three.core.js at line 34607. (Note: _deltaTime small float and timeScale is 1)

deltaTime *= this.timeScale; <=====produces NaN


Three.core.js is at version "173dev"

**/**

* [@license](https://github.com/license)
* Copyright 2010-2025 Three.js Authors
* SPDX-License-Identifier: MIT
<em>/
const REVISION = '173dev';</em>*

open the chrome console…

and in the code, put a “debugger;” statement before that line of code… reload the page…

when the debugger stops… hover over the this.timeScale and deltaTime and see what they contain.

They might already be NaN by the time it gets there.

If you want help debugging it, you’ll have to put the code into a codepen or some way to reproduce/isolate it and people can look at it.

(also just make sure there aren’t errors/warnings in the console in the first place!)

1 Like