G02 · Godot
Invalid image: null
Trigger: Godot 4.x runtime: ImageTexture.create_from_image(image) receives a null Image — for example an invalid load / ResourceLoader.load path returns empty, or a failed image decode is passed in without a null check.
Typical cause: ImageTexture::create_from_image checks p_image.is_null(); ERR_FAIL_COND_V_MSG returns an empty Ref<ImageTexture> and prints this message.
- After loading, check whether the image is is_null() / is_empty() before creating the texture.
- Verify the res:// path and that the file exists.
- When taking a path from JSON or a dictionary, load it as a Resource first with load(), then take the Image.
- https://raw.githubusercontent.com/godotengine/godot/master/scene/resources/image_texture.cpp#58
- https://docs.godotengine.org/en/stable/classes/class_imagetexture.html
- https://forum.godotengine.org/t/question-about-loading-images-through-json/142132
Per-entry sources and capture date are listed at /sources#G02.
G06 · Godot
Invalid image: image is empty
Trigger: Godot 4.x runtime: create_from_image receives an empty Image with zero dimensions — for example a failed SVG or image decode yields an empty image, or the buffer has no pixels.
Typical cause: create_from_image checks p_image->is_empty(); ERR_FAIL_COND_V_MSG refuses creation and prints this message.
- Check image.is_empty() after decoding.
- Confirm the source image is not corrupted and its format is supported by the engine.
- When loading SVG-style formats at runtime, watch availability in the exported package and the returned error code.
- https://raw.githubusercontent.com/godotengine/godot/master/scene/resources/image_texture.cpp#59
- https://docs.godotengine.org/en/stable/classes/class_imagetexture.html
- https://forum.godotengine.org/t/failing-error-code-30-when-trying-to-load-svgs-at-runtime/101615
Per-entry sources and capture date are listed at /sources#G06.
Related errors
Need an offline quick-reference checklist?
Atlas error library Pro pack: 123 error references (110 single + 13 merged) plus a quick-fix guide, $19 one-time purchase, delivered as electronic files.