# \#debugging

**URL:** https://discourse.threejs.org/tag/debugging/23.md

[Latest](https://discourse.threejs.org/latest.md) · [Categories](https://discourse.threejs.org/categories.md) · [Tags](https://discourse.threejs.org/tags.md)

---

## [Tips on how to debug / avoid React-Three-Fiber race condition](https://discourse.threejs.org/t/tips-on-how-to-debug-avoid-react-three-fiber-race-condition/91170)

<div class="topic-metadata">

**Author:** [@ajp](https://discourse.threejs.org/u/ajp)\
**Replies:** 5\
**Last updated:** [May 7, 2026, 8:46am UTC](https://discourse.threejs.org/t/tips-on-how-to-debug-avoid-react-three-fiber-race-condition/91170 "2026-05-07T08:46:05Z")

</div>

Hey all, I have recently tried to use react-three-fiber and I really enjoy the productivity and simplicity for structuring code. However I ran into a racy bug and I was wondering if anyone had any tips on how to try to d…

---

## [Does three.js has some "scene debug mode" or plugin? (like babylon.js DebugLayer)](https://discourse.threejs.org/t/does-three-js-has-some-scene-debug-mode-or-plugin-like-babylon-js-debuglayer/2713)

<div class="topic-metadata">

**Author:** [@Davy\_Hawk](https://discourse.threejs.org/u/Davy_Hawk)\
**Replies:** 21\
**Last updated:** [July 14, 2025, 8:09am UTC](https://discourse.threejs.org/t/does-three-js-has-some-scene-debug-mode-or-plugin-like-babylon-js-debuglayer/2713 "2025-07-14T08:09:58Z")

</div>

I want to view the objects in scene, and there properties. or, find where is position of a object in scene. or, which object is at the position. \[Babylon DebugLayer\]

---

## [Issue with Post processing and viewport and Renderer clear flags](https://discourse.threejs.org/t/issue-with-post-processing-and-viewport-and-renderer-clear-flags/85011)

<div class="topic-metadata">

**Author:** [@x0YYYY0](https://discourse.threejs.org/u/x0YYYY0)\
**Replies:** 1\
**Last updated:** [July 11, 2025, 4:47pm UTC](https://discourse.threejs.org/t/issue-with-post-processing-and-viewport-and-renderer-clear-flags/85011 "2025-07-11T16:47:22Z")

</div>

Hello in my project I am trying to render a transparent mini map with viewport (like the ViewHelper ) in conjunction with the TSL pass and PostProcessing system (I need it for several different effects in my project). I…

---

## [Point Text Helper](https://discourse.threejs.org/t/point-text-helper/22290)

<div class="topic-metadata">

**Author:** [@jniac](https://discourse.threejs.org/u/jniac)\
**Replies:** 8\
**Last updated:** [April 22, 2024, 8:33am UTC](https://discourse.threejs.org/t/point-text-helper/22290 "2024-04-22T08:33:48Z")

</div>

May someone find useful to display (debug) texts, small texts (max chars: 12), but a lot of texts (\> 10k) ? Here is a tool i made, because i need it. Based on THREE.Points for fast drawing (instancing). Any feedback w…

---

## [Stats debug tool and materials](https://discourse.threejs.org/t/stats-debug-tool-and-materials/59904)

<div class="topic-metadata">

**Author:** [@tommhuth](https://discourse.threejs.org/u/tommhuth)\
**Replies:** 2\
**Last updated:** [January 5, 2024, 12:57am UTC](https://discourse.threejs.org/t/stats-debug-tool-and-materials/59904 "2024-01-05T00:57:42Z")

</div>

I previously used a plugin type thing that in addition to various FPS counters also could display materials as they were compiled and used. Now for the life of me I cannot seem to find it again. Neither stats.js nor stat…

---

## [THREE.WebGLProgram: Program Info Log: C:\\fakepath(53,12-96) Warning X4713](https://discourse.threejs.org/t/three-webglprogram-program-info-log-c-fakepath-53-12-96-warning-x4713/45477)

<div class="topic-metadata">

**Author:** [@Jeroen](https://discourse.threejs.org/u/Jeroen)\
**Replies:** 7\
**Last updated:** [May 20, 2023, 11:11am UTC](https://discourse.threejs.org/t/three-webglprogram-program-info-log-c-fakepath-53-12-96-warning-x4713/45477 "2023-05-20T11:11:39Z")

</div>

Hello, I’m getting the following errors in my console: THREE.WebGLProgram: Program Info Log: C:\\fakepath(53,12-96): warning X4713: Sample Bias value is limited to the range \[-16.00, 15.99\], using -16.000000 instead of -…

---

## [App doesn't load (anymore) on Apple devices](https://discourse.threejs.org/t/app-doesnt-load-anymore-on-apple-devices/45506)

<div class="topic-metadata">

**Author:** [@Jeroen](https://discourse.threejs.org/u/Jeroen)\
**Replies:** 4\
**Last updated:** [December 6, 2022, 11:54am UTC](https://discourse.threejs.org/t/app-doesnt-load-anymore-on-apple-devices/45506 "2022-12-06T11:54:34Z")

</div>

As the title states… One of the apps did load before on Apple devices not anymore. So I received the following screenshots… Is there something you can make out of this? I admit that my knowledge is not very great on thi…

---

## [Is there a decent Chrome debug alternative?](https://discourse.threejs.org/t/is-there-a-decent-chrome-debug-alternative/43450)

<div class="topic-metadata">

**Author:** [@dllb](https://discourse.threejs.org/u/dllb)\
**Replies:** 2\
**Last updated:** [October 10, 2022, 6:18pm UTC](https://discourse.threejs.org/t/is-there-a-decent-chrome-debug-alternative/43450 "2022-10-10T18:18:35Z")

</div>

(I’m trying to return to three.js after a long break with other projects, on the right foot) Win 10, VScode, esbuild, HTTPS local server. I tried to debug with Firefox VScode extension and nothing seems right, not even…

---

## [Shader breaks on Windows and M1 Mac (all black)](https://discourse.threejs.org/t/shader-breaks-on-windows-and-m1-mac-all-black/42013)

<div class="topic-metadata">

**Author:** [@Fractal](https://discourse.threejs.org/u/Fractal)\
**Replies:** 5\
**Last updated:** [August 30, 2022, 6:26pm UTC](https://discourse.threejs.org/t/shader-breaks-on-windows-and-m1-mac-all-black/42013 "2022-08-30T18:26:04Z")

</div>

This is the same issue I faced in my most recent post. Reproduction: You can see the problem in these two gifs: my intel macbook: Client’s m1 macbook / my windows pc: Last time I fixed it by clamping the glFrag…

---

## [Very high cpu and gpu consumption for simple scene](https://discourse.threejs.org/t/very-high-cpu-and-gpu-consumption-for-simple-scene/34510)

<div class="topic-metadata">

**Author:** [@bhushan6](https://discourse.threejs.org/u/bhushan6)\
**Replies:** 9\
**Last updated:** [February 5, 2022, 1:24pm UTC](https://discourse.threejs.org/t/very-high-cpu-and-gpu-consumption-for-simple-scene/34510 "2022-02-05T13:24:09Z")

</div>

I have very simple scene with react three fiber (react three cannon for physics). it has two draw calls and using mesh basic maetrial but when I open my task manager it shows really high consumption on both cpu and gpu. …

---

## [Checklist for heisenbugs in ThreeJS](https://discourse.threejs.org/t/checklist-for-heisenbugs-in-threejs/34086)

<div class="topic-metadata">

**Author:** [@michaelwowro](https://discourse.threejs.org/u/michaelwowro)\
**Replies:** 2\
**Last updated:** [January 26, 2022, 1:56pm UTC](https://discourse.threejs.org/t/checklist-for-heisenbugs-in-threejs/34086 "2022-01-26T13:56:57Z")

</div>

Hi there, you are doing a great job at ThreeJS! Really great! I’m facing a Heisenbug in our ThreeJS-based application. Most of the time an object appears when loading the scene correctly, but sometimes it’s just not th…

---

## [Three.js Cannon.js init](https://discourse.threejs.org/t/three-js-cannon-js-init/32700)

<div class="topic-metadata">

**Author:** [@Lighty](https://discourse.threejs.org/u/Lighty)\
**Replies:** 1\
**Last updated:** [December 16, 2021, 8:30am UTC](https://discourse.threejs.org/t/three-js-cannon-js-init/32700 "2021-12-16T08:30:05Z")

</div>

Hello!! When connecting the debugger, I ran into the problem that it only works locally, if everything is installed via npm, it throws errors. // let CannonDebugRenderer = new THREE.CannonDebugRenderer(scene, world)…

---

## [THREE.RenderTargetInspector](https://discourse.threejs.org/t/three-rendertargetinspector/13659)

<div class="topic-metadata">

**Author:** [@Fyrestar](https://discourse.threejs.org/u/Fyrestar)\
**Replies:** 4\
**Last updated:** [May 9, 2021, 1:58am UTC](https://discourse.threejs.org/t/three-rendertargetinspector/13659 "2021-05-09T01:58:48Z")

</div>

This is a small helper tool to view render targets and data textures, displaying thumbnails and a separate viewer window when you click on a thumb, in the viewer you can zoom in and pick the pixel values. Click on the…

---

## [Broken WebXR in latest Chrome update?](https://discourse.threejs.org/t/broken-webxr-in-latest-chrome-update/15965)

<div class="topic-metadata">

**Author:** [@Jay\_E](https://discourse.threejs.org/u/Jay_E)\
**Replies:** 20\
**Last updated:** [September 23, 2020, 11:20am UTC](https://discourse.threejs.org/t/broken-webxr-in-latest-chrome-update/15965 "2020-09-23T11:20:35Z")

</div>

@mrdoob : last time after updating SteamVR, had to enable Flags to make WEBXR work. now after updating to google Chrome Version 83.0.4103.97 The following happened: inside chrome://flags → instead of many options (see …

---

## [Slowdown after tab reload](https://discourse.threejs.org/t/slowdown-after-tab-reload/14487)

<div class="topic-metadata">

**Author:** [@kpghost](https://discourse.threejs.org/u/kpghost)\
**Replies:** 2\
**Last updated:** [April 21, 2020, 1:44pm UTC](https://discourse.threejs.org/t/slowdown-after-tab-reload/14487 "2020-04-21T13:44:14Z")

</div>

I am suspecting this is a browser bug, but just in case someone has encountered it before and knows about a workaround, I thought I’d ask here. I have a three.js app which is fine on first start, but as soon as I reload…

---

## [Swapping lines around causes different behaviour (THREE.CubeGeometry, THREE.AxesHelper ...)](https://discourse.threejs.org/t/swapping-lines-around-causes-different-behaviour-three-cubegeometry-three-axeshelper/6577)

<div class="topic-metadata">

**Author:** [@David\_Luksic](https://discourse.threejs.org/u/David_Luksic)\
**Replies:** 4\
**Last updated:** [March 15, 2019, 9:56pm UTC](https://discourse.threejs.org/t/swapping-lines-around-causes-different-behaviour-three-cubegeometry-three-axeshelper/6577 "2019-03-15T21:56:00Z")

</div>

Hi all, I just ran into a very weird bug. It will be hard for me to generate a minimal example, but maybe you have an idea how to debug this… I have these lines of code: let cube = new THREE.CylinderGeometry() let axe…

---

## [GPGPU strange behavior on different hardware](https://discourse.threejs.org/t/gpgpu-strange-behavior-on-different-hardware/1529)

<div class="topic-metadata">

**Author:** [@Mikoval](https://discourse.threejs.org/u/Mikoval)\
**Replies:** 7\
**Last updated:** [December 28, 2017, 3:31pm UTC](https://discourse.threejs.org/t/gpgpu-strange-behavior-on-different-hardware/1529 "2017-12-28T15:31:07Z")

</div>

Hi, I am trying to have a cloth simulated on the GPU. Everything works great on my computer, however when viewing from my phone I get some very strange behavior. Basically the cloth collapses into its center. I have impl…

---

## [How to repeat the same object?](https://discourse.threejs.org/t/how-to-repeat-the-same-object/148)

<div class="topic-metadata">

**Author:** [@jamster1992](https://discourse.threejs.org/u/jamster1992)\
**Replies:** 2\
**Last updated:** [April 5, 2017, 12:31am UTC](https://discourse.threejs.org/t/how-to-repeat-the-same-object/148 "2017-04-05T00:31:08Z")

</div>

It would need to loop 12 ramparts, with the y position increasing by 8 every-time. Any help would be much appreciated. var rampart6 = createMesh(new THREE.CubeGeometry(2, 4, 6),"stone.jpg"); ra…

---

## [THREE.AugmentedConsole](https://discourse.threejs.org/t/three-augmentedconsole/110)

<div class="topic-metadata">

**Author:** [@looeee](https://discourse.threejs.org/u/looeee)\
**Replies:** 0\
**Last updated:** [March 22, 2017, 2:42pm UTC](https://discourse.threejs.org/t/three-augmentedconsole/110 "2017-03-22T14:42:03Z")

</div>

THREE.AugmenteConsole.js is a small tool to make development with three.js easier. It uses chrome's console.table to format the output when using console.log to inspect objects. If the object is a known format it uses …

---

## [Object3D log function](https://discourse.threejs.org/t/object3d-log-function/109)

<div class="topic-metadata">

**Author:** [@looeee](https://discourse.threejs.org/u/looeee)\
**Replies:** 0\
**Last updated:** [March 22, 2017, 2:32pm UTC](https://discourse.threejs.org/t/object3d-log-function/109 "2017-03-22T14:32:05Z")

</div>

It was recently decided not to include logging functions in the core library. However it's useful functionality so here is a copy of the proposed log function (author: @WestLangley). function log( object3D ) { …
