I am trying to extend a JS game that uses Three.js as API. A problem that has occured recently is this error:

```
TypeError: Argument 2 of WebGLRenderingContext.uniform4fv could not be converted to any of: Float32Array, UnrestrictedFloatSequence.

```

The line in the code causing this is the basic render call of the game:

```
renderer.render(scene, camera);

```

I could now paste the messy code here but thats not why I am here. I hope somebody has ever experienced that too and can tell me what the problem is.

Note:

I. The original error is from within Three.js (The internal render stuff)

```
three.min.js:7:118

```

II.The first frame can be rendered without any problem, after that the error occurs

III. The scene is made of a few simple objects, but the source of the problem is this object:

```
this.geometry = new THREE.PlaneGeometry(0.8, 0.8);
this.texture = new THREE.TextureLoader().load("graphics/racers/" + racer + ".png", function () { return;});
this.texture.generateMipmaps = false;
this.texture.minFilter = THREE.NearestFilter;
this.texture.magFilter = THREE.NearestFilter;
this.texture.repeat.set(0.25, 1);
this.material = new THREE.MeshBasicMaterial({ map: this.texture, transparent: true });
this.mesh = new THREE.Mesh(this.geometry, this.material);

scene.add(this.mesh);

```

If you need anything else feel free to ask.

Thanks in advance!

EDIT:
I found out that the error only appears when the Mesh-Object (mentioned above) is seen by the camera!