# Errors

Every code Diorama prints in the console, what it means and how to fix it.

- [ASSET_ABORTED](/docs/errors/asset-aborted.md): An asset lease was released or aborted before the asset finished loading, so its ready promise rejected.
- [ASSET_DECODER](/docs/errors/asset-decoder.md): A compressed model or texture needs a Draco, KTX2 or Meshopt decoder that is blocked, missing or turned off.
- [ASSET_LOAD](/docs/errors/asset-load.md): An asset request failed on the network or with an HTTP error, so its lease rejected and nothing was cached.
- [ASSET_PARSE](/docs/errors/asset-parse.md): An asset downloaded, but its content could not be decoded or parsed, so its lease rejected.
- [ASSET_TYPE](/docs/errors/asset-type.md): Diorama cannot tell what kind of asset a URL is, most often a page address given to preload, so nothing loads for it.
- [EFFECT_COMPILE](/docs/errors/effect-compile.md): The surface material with an effect's transforms failed to compile, so the effect is dropped from the surface.
- [EFFECT_CORS](/docs/errors/effect-cors.md): The image of an effect comes from another origin whose server sends no CORS headers, so its pixels cannot be read.
- [EFFECT_DEFINITION](/docs/errors/effect-definition.md): An effect definition breaks a rule, such as a reserved param name, so the effect cannot be defined or registered.
- [EFFECT_LOAD](/docs/errors/effect-load.md): A lazy chunk did not download, either the engine with three.js or the module of one effect.
- [EFFECT_MEDIA](/docs/errors/effect-media.md): The image or video of a media effect has no usable pixels, so the instance failed until the source changes.
- [EFFECT_OVERRIDE](/docs/errors/effect-override.md): An effect of your site has the name of a built-in one, so it replaces the built-in everywhere on the page.
- [EFFECT_PARAM](/docs/errors/effect-param.md): A param value or param attribute was rejected, so the effect keeps the value from the layer below it.
- [EFFECT_SETUP](/docs/errors/effect-setup.md): The setup function of an effect threw or rejected, so that instance failed and its element shows plain DOM.
- [EFFECT_TARGET](/docs/errors/effect-target.md): An effect does not fit the element it is on, or two owners compete for one element, layer or copy.
- [EFFECT_UNKNOWN](/docs/errors/effect-unknown.md): Markup or code names an effect that is not registered, so the element stays plain DOM.
- [EFFECT_UPDATE](/docs/errors/effect-update.md): The update function of an effect threw during a frame, so that instance failed at once.
- [GLSL_PRAGMA](/docs/errors/glsl-pragma.md): A `// @diorama` line in a shader sets `when`, `reducedMotion` or `presence` to a value the effect cannot take, so the conversion fails.
- [RENDER_LOST](/docs/errors/render-lost.md): The GPU device or WebGL context was lost, or rendering was disabled, so every effect switched off and the DOM shows again.
- [RENDER_UNAVAILABLE](/docs/errors/render-unavailable.md): The browser has neither a WebGPU adapter nor WebGL 2, so effects stay off and nothing of the engine is downloaded.
- [TRANSITION_ANIMATE](/docs/errors/transition-animate.md): The animate function of a page transition threw or its promise rejected, so every copy landed at once.
- [TRANSITION_KEY](/docs/errors/transition-key.md): Several new elements share one data-dio-key, so the flight lands on the first of them in document order.
- [TRANSITION_SWAP](/docs/errors/transition-swap.md): The promise returned by the swap function of a page transition rejected, so the transition ended as failed.
- [TRANSITION_TIMEOUT](/docs/errors/transition-timeout.md): The swap promise of a page transition did not settle within the timeout, so the transition gave up its flights.
