R183 - Clock Error Notice

After updating some of my programs to r183, I am getting the following non-fatal notice in Chrome:

THREE.THREE.Clock: This module has been deprecated.  
Please use THREE.Timer instead.

However, those programs either do not call the clock routine or have switched to the timer module. I have checked the modules that they call and there are none with references to clock or timer.

I will try to figure out the difference between the programs with the error notice and those without.

In the meantime, has anyone else run into this problem or have any idea what might be causing this notice?

2 Likes

In Chrome, at least, you should be able to see the stack trace for a warning which should tell you what is instantiating the Clock. Otherwise you can set a breakpoint on the Clock warning to check, as well.

3 Likes

Thanks. Those are features which I have not used and which sound extremely useful.

Starting in the console panel, the stack trace just takes me back to the line of code within the warn function where the warning is generated. (three.core.js: 2001).

It appears that the warn function just displays errors from a master list of warnings generated while the program is running. So I would need to somehow find the place where the warning is added to the list. Any idea how I could easily do that in Chrome?

In the meantime, I can continue debugging “caveman style” by deactivating functions to see when the error disappears. I have another program that uses a lot of the same functions, but which does not generate the error. So the offending function should in the difference between those two programs.

Can you put a breakpoint at that specific warning? (The line 2001)