# Error: WebGL warning: drawArrays: Vertex fetch requires 1380, but attribs only supply 1290

**URL:** <https://discourse.threejs.org/t/error-webgl-warning-drawarrays-vertex-fetch-requires-1380-but-attribs-only-supply-1290/7919>\
**Category:** Questions\
**Tags:** obj-loader, mtl-loader\
**Created:** [June 4, 2019, 3:24am UTC](https://discourse.threejs.org/t/error-webgl-warning-drawarrays-vertex-fetch-requires-1380-but-attribs-only-supply-1290/7919 "2019-06-04T03:24:24Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![waldrus](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/waldrus/32/5876_2.png) [@waldrus](https://discourse.threejs.org/u/waldrus)\
**Post date:** [June 4, 2019, 3:24am UTC](https://discourse.threejs.org/t/error-webgl-warning-drawarrays-vertex-fetch-requires-1380-but-attribs-only-supply-1290/7919/1 "2019-06-04T03:24:25Z")

</div>

Hello Everybody!

I am working to figure out .mtl texturing with Three.js and have been experiencing some issues with little documentation (that I can find).

I am working with two separate objects, both of which appear entirely black with the loaded .mtl files.  
attached below are copies of these files, both with the .mtl file attached and removed.

While uploading the iPhone .obj files, I receive the following error message: Error: WebGL warning: drawArrays: Vertex fetch requires 1380, but attribs only supply 1290.

I’ve been unable to find documentation as it pertains to this error, so if you can - please offer some direction.

Additionally, here’s an example of my code with and without the .mtl files:

```
// var phoneMTL = new THREE.MTLLoader();
// phoneMTL.load("../models/phone/Iphone.mtl", function(materials){
// materials.preload();
    var phoneOBJ = new THREE.OBJLoader();
    // phoneOBJ.setMaterials(materials);
    phoneOBJ.load("../models/phone/Iphone.obj", function(mesh){
        scene.add(mesh)
    });
// });

```

Is there something I’m overlooking here? Or is this related to the error message, referenced above?

 ![21%20PM](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/d/d271686cf542b1a15163887ca6e7a1e81a28f2cf.png) ![43%20PM](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/b/b9989cc4e9a72da0159bebaf92e058d2f5768dec.png) ![50%20PM](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/b/bd0528165c8ea0d00500d60aec8877645a05197f.png) ![06%20PM](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/a/a43f191baa7da903812bd2f2d679caf1401da239.png)

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [June 4, 2019, 8:28am UTC](https://discourse.threejs.org/t/error-webgl-warning-drawarrays-vertex-fetch-requires-1380-but-attribs-only-supply-1290/7919/2 "2019-06-04T08:28:07Z")

</div>

Can you please share the `OBJ/MTL` file of the iPhone model in this thread?

---

<div class="post-metadata">

**Author:** ![pailhead](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/pailhead/32/85_2.png) [@pailhead](https://discourse.threejs.org/u/pailhead)\
**Post date:** [June 4, 2019, 3:51pm UTC](https://discourse.threejs.org/t/error-webgl-warning-drawarrays-vertex-fetch-requires-1380-but-attribs-only-supply-1290/7919/3 "2019-06-04T15:51:01Z")

</div>

This can happen when webgl expects 1380 vertices to be drawn, but you’ve provided only 1290. Most of the time these buffers in WebGL that represent memory have to have matching sizes and be properly formatted.

---

<div class="post-metadata">

**Author:** ![waldrus](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/waldrus/32/5876_2.png) [@waldrus](https://discourse.threejs.org/u/waldrus)\
**Post date:** [June 4, 2019, 6:46pm UTC](https://discourse.threejs.org/t/error-webgl-warning-drawarrays-vertex-fetch-requires-1380-but-attribs-only-supply-1290/7919/4 "2019-06-04T18:46:27Z")

</div>

Hey @Mugen87  
Here are both sets of files for the phone. [phone.zip (2.3 MB)](https://discourse.threejs.org/uploads/short-url/gOshrjgxDxM0DYQHIv3LCiBS50r.zip)

---

<div class="post-metadata">

**Author:** ![waldrus](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/waldrus/32/5876_2.png) [@waldrus](https://discourse.threejs.org/u/waldrus)\
**Post date:** [June 4, 2019, 6:52pm UTC](https://discourse.threejs.org/t/error-webgl-warning-drawarrays-vertex-fetch-requires-1380-but-attribs-only-supply-1290/7919/5 "2019-06-04T18:52:06Z")

</div>

Additionally, here are the files for the plant too[plant.zip (3.9 MB)](https://discourse.threejs.org/uploads/short-url/uSJCFWX2ORGI9UTHiQrBjcWbQjQ.zip)

---

<div class="post-metadata">

**Author:** ![waldrus](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/waldrus/32/5876_2.png) [@waldrus](https://discourse.threejs.org/u/waldrus)\
**Post date:** [June 4, 2019, 6:54pm UTC](https://discourse.threejs.org/t/error-webgl-warning-drawarrays-vertex-fetch-requires-1380-but-attribs-only-supply-1290/7919/6 "2019-06-04T18:54:24Z")

</div>

Thanks, @pailhead!  
Though, forgive my ignorance. Is this the fault of my model? Or is it likely that have I overlooked something during the page set up?

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [June 4, 2019, 7:29pm UTC](https://discourse.threejs.org/t/error-webgl-warning-drawarrays-vertex-fetch-requires-1380-but-attribs-only-supply-1290/7919/7 "2019-06-04T19:29:06Z")

</div>

> [@waldrus](#):
>
> Is this the fault of my model?

I can reproduce the warnings in the [three.js editor](https://threejs.org/editor/) so it’s not a problem in your app. However, the `OBJ` looks suspicious since the amount of vertex normals for certain mesh geometries does not match the amount of vertices (this circumstance causes the WebGL warnings). Such definitions are unusual and exporters should actually not allow such corrupt exports.

---

<div class="post-metadata">

**Author:** ![waldrus](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/waldrus/32/5876_2.png) [@waldrus](https://discourse.threejs.org/u/waldrus)\
**Post date:** [June 4, 2019, 7:46pm UTC](https://discourse.threejs.org/t/error-webgl-warning-drawarrays-vertex-fetch-requires-1380-but-attribs-only-supply-1290/7919/8 "2019-06-04T19:46:19Z")

</div>

That is really great to know, thank you! I’ll disregard the iPhone for any future projects.  
Though, as the warning does not appear the plant (in addition to my other objects); is there something wrong with my script that is resulting in the models to appear entirely black?

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [June 4, 2019, 7:57pm UTC](https://discourse.threejs.org/t/error-webgl-warning-drawarrays-vertex-fetch-requires-1380-but-attribs-only-supply-1290/7919/9 "2019-06-04T19:57:18Z")

</div>

> [@waldrus](#):
>
> is there something wrong with my script that is resulting in the models to appear entirely black?

In most cases, users forget to add light sources to their scene.

---

<div class="post-metadata">

**Author:** ![pailhead](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/pailhead/32/85_2.png) [@pailhead](https://discourse.threejs.org/u/pailhead)\
**Post date:** [June 5, 2019, 3:54am UTC](https://discourse.threejs.org/t/error-webgl-warning-drawarrays-vertex-fetch-requires-1380-but-attribs-only-supply-1290/7919/10 "2019-06-05T03:54:54Z")

</div>

As mugen has explained, this is most likely a fault with the obj itself. Can you verify that it works in a modeling app? Can you re-export?
