{"record":{"id":"0d2bbd1af84871e2","repo":"bevyengine/bevy","slug":"texture-array-should-exist","errorCode":null,"errorMessage":"Texture array should exist","messagePattern":"Texture array should exist","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/bevy_render/src/material_bind_groups.rs","lineNumber":1431,"sourceCode":"                        .remove(bindless_binding);\n                    false\n                }\n                BindlessResourceType::SamplerFiltering\n                | BindlessResourceType::SamplerNonFiltering\n                | BindlessResourceType::SamplerComparison => self\n                    .samplers\n                    .get_mut(bindless_resource_type)\n                    .expect(\"Sampler array should exist\")\n                    .remove(bindless_binding),\n                BindlessResourceType::Texture1d\n                | BindlessResourceType::Texture2d\n                | BindlessResourceType::Texture2dArray\n                | BindlessResourceType::Texture3d\n                | BindlessResourceType::TextureCube\n                | BindlessResourceType::TextureCubeArray => self\n                    .textures\n                    .get_mut(bindless_resource_type)\n                    .expect(\"Texture array should exist\")\n                    .remove(bindless_binding),\n            };\n\n            // If the slot is now free, decrement the allocated resource\n            // count.\n            if decrement_allocated_resource_count {\n                self.allocated_resource_count -= 1;\n            }\n        }\n\n        // Invalidate the cached bind group.\n        self.bind_group = None;\n\n        // Release the slot ID.\n        self.free_slots.push(slot);\n        self.live_allocation_count -= 1;\n    }\n","sourceCodeStart":1413,"sourceCodeEnd":1449,"githubUrl":"https://github.com/bevyengine/bevy/blob/396ca727080776bd313bb892423b7d94e03b81b4/crates/bevy_render/src/material_bind_groups.rs#L1413-L1449","documentation":"Internal invariant panic in bindless resource cleanup: the texture array slot for the given bindless index was missing when removing a binding. Indicates bindless state bookkeeping corruption (double free or missing allocation); not expected in normal operation.","triggerScenarios":"Thrown at crates/bevy_render/src/material_bind_groups.rs:1431 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Report as a Bevy engine bug with a reproducing project","Avoid the texture-heavy material setup that triggers the mismatch"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"396ca727080776bd313bb892423b7d94e03b81b4","analyzedAt":"2026-08-20T16:12:39.808Z","contentChangedAt":"2026-08-20T16:12:39.808Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}