# Sandbox: error loading model using webgpu

**URL:** <https://forum.babylonjs.com/t/sandbox-error-loading-model-using-webgpu/58820>\
**Category:** Bugs\
**Tags:** webgpu\
**Created:** [June 4, 2025, 9:02am UTC](https://forum.babylonjs.com/t/sandbox-error-loading-model-using-webgpu/58820 "2025-06-04T09:02:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kzhsw](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Post date:** [June 4, 2025, 9:02am UTC](https://forum.babylonjs.com/t/sandbox-error-loading-model-using-webgpu/58820/1 "2025-06-04T09:02:01Z")

</div>

Engine: WebGPU  
Version: 8.10.1  
Browser: Chrome 137  
OS: Windows

Steps to repro:

1. Open the webgpu sandbox: [https://sandbox.babylonjs.com/?webgpu](https://sandbox.babylonjs.com/?webgpu)
2. Load [the gltf file](https://discourse.threejs.org/uploads/short-url/aZkUl1zHllSmnvtTbV9JnK0kDqg.gltf)

Expected: It loads and renders.

Actual:  
Script error. Check the developer console.  
And in the developer console said:

```auto
logger.ts:107 BJS - [16:55:21]: WebGPU uncaptured error (1): [object GPUValidationError] - Destroyed texture [Texture (unlabeled 1114x532 px, TextureFormat::BGRA8Unorm)] used in a submit.
 - While calling [Queue].Submit([[CommandBuffer from CommandEncoder "upload"], [CommandBuffer from CommandEncoder "render"]])

e._LogEnabled @ logger.ts:107
(anonymous) @ webgpuEngine.ts:707
sandbox.babylonjs.com/:1 Destroyed texture [Texture (unlabeled 1114x532 px, TextureFormat::BGRA8Unorm)] used in a submit.
 - While calling [Queue].Submit([[CommandBuffer from CommandEncoder "upload"], [CommandBuffer from CommandEncoder "render"]])

```

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/d/7/d77d6876ad20e677f42a64a5741214d94af2b967.png)

The gltf file also attached here:  
[oval.zip](https://forum.babylonjs.com/uploads/short-url/7IDoO4udNXfWSGPscMcxmSjWE2o.zip) (385.6 KB)

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [June 4, 2025, 12:33pm UTC](https://forum.babylonjs.com/t/sandbox-error-loading-model-using-webgpu/58820/2 "2025-06-04T12:33:53Z")

</div>

I’m not sure how you get this error, because when I test the model in the Sandbox in WebGPU mode, I do have the “Script error. Check the developer console.” error, but nothing in the console log.

So, I tested in a PG, and I get the error:

```auto
Uncaught TriangleFan is an unsupported fillmode in WebGPU

```

The problem is that “triangle fan” topology is not supported by the WebGPU specification. You should re-export your glTF file by using another topology (“triangle list” for example).

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [June 4, 2025, 12:39pm UTC](https://forum.babylonjs.com/t/sandbox-error-loading-model-using-webgpu/58820/3 "2025-06-04T12:39:04Z")

</div>

I can repro with both models:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/7/1/71ee60de6e76db29de7be867ca7f76e096ac7e56.jpeg)

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [June 4, 2025, 8:32pm UTC](https://forum.babylonjs.com/t/sandbox-error-loading-model-using-webgpu/58820/4 "2025-06-04T20:32:26Z")

</div>

I think the model is way too big 🙂

---

<div class="post-metadata">

**Author:** ![kzhsw](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Post date:** [June 5, 2025, 12:31am UTC](https://forum.babylonjs.com/t/sandbox-error-loading-model-using-webgpu/58820/5 "2025-06-05T00:31:46Z")

</div>

If this is the root cause, maybe re-throw it to make it visible in the developer console

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [June 5, 2025, 8:48am UTC](https://forum.babylonjs.com/t/sandbox-error-loading-model-using-webgpu/58820/6 "2025-06-05T08:48:27Z")

</div>

So, I was able to reproduce the error in Edge, not in Chrome nor Firefox. But for some reasons, the “Uncaught TriangleFan is an unsupported fillmode in WebGPU” error only shows up in a PG… Can you export the model with another topology and see if that works?

---

<div class="post-metadata">

**Author:** ![kzhsw](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Post date:** [June 7, 2025, 3:19am UTC](https://forum.babylonjs.com/t/sandbox-error-loading-model-using-webgpu/58820/7 "2025-06-07T03:19:31Z")

</div>

Yeah it works, here is a model re-exported from blender.  
[oval.zip](https://forum.babylonjs.com/uploads/short-url/vPYhpG9pSENGUpvXq9ZbKGObTHo.zip) (389.4 KB)
