Shader time input stall

I don’t know what’s going on here. I’ve never had any problems with the shader before. It seems like a place in the program where there is normally a slight pause- I’m loading a new model. But the new model isn’t the one with the shader- It’s been running for a while when the program crashes and I get this error.

If a frame takes a long time (0.3 seconds) could that be the cause?

Assertion failed: Shader input time is not present.
 at line 356 of c:\p\panda3d-1.6.0-win32(2)\panda3d-1.6.0\panda\src\pgraph\shaderAttrib.cxx
Traceback (most recent call last):
  File "C:\Panda3D-1.6.0\direct\showbase\ShowBase.py", line 1561, in __igLoop
    self.graphicsEngine.renderFrame()
AssertionError: Shader input time is not present.
 at line 356 of c:\p\panda3d-1.6.0-win32(2)\panda3d-1.6.0\panda\src\pgraph\shaderAttrib.cxx
:task(error): Exception occurred in PythonTask igLoop
Traceback (most recent call last):
  File "main.py", line 2307, in <module>
    run()
  File "C:\Panda3D-1.6.0\direct\showbase\ShowBase.py", line 2420, in run
    self.taskMgr.run()
  File "C:\Panda3D-1.6.0\direct\task\TaskNew.py", line 471, in run
    self.step()
  File "C:\Panda3D-1.6.0\direct\task\TaskNew.py", line 429, in step
    self.mgr.poll()
  File "C:\Panda3D-1.6.0\direct\showbase\ShowBase.py", line 1561, in __igLoop
    self.graphicsEngine.renderFrame()
AssertionError: Shader input time is not present.
 at line 356 of c:\p\panda3d-1.6.0-win32(2)\panda3d-1.6.0\panda\src\pgraph\shaderAttrib.cxx

Hm, try setting shader inputs initially besides just setting shader inputs in your tasks.

ok, but my shader has a “time” input. I can’t just place that input anywhere can I?

You could make sure it is initially set to 0. In a task, you can keep updating it.

Thanks, that got it working.