X Tutup
Skip to content

Fix shader baker freezing if there are errors in the shader compilation process.#112803

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
jitspoe:master.pr_bake_shaders_freeze_fix
Nov 19, 2025
Merged

Fix shader baker freezing if there are errors in the shader compilation process.#112803
Repiteo merged 1 commit intogodotengine:masterfrom
jitspoe:master.pr_bake_shaders_freeze_fix

Conversation

@jitspoe
Copy link
Contributor

@jitspoe jitspoe commented Nov 15, 2025

Previously, if there was an error compiling the shader, tasks_processed was incrementing, so the packing was never considered "done".

Fix #112794

@jitspoe jitspoe requested a review from a team November 15, 2025 08:02
@clayjohn clayjohn requested a review from DarioSamo November 16, 2025 07:26
@clayjohn clayjohn added this to the 4.6 milestone Nov 16, 2025
@clayjohn clayjohn added the cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release label Nov 16, 2025
@akien-mga akien-mga changed the title Fix for shader_baker freezing if there are errors in the shader compilation process. Fix shader baker freezing if there are errors in the shader compilation process. Nov 17, 2025
Copy link
Contributor

@DarioSamo DarioSamo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix makes sense to me. The alternative here would be to move the code to a separate function to preserve the "Godot" style of early return error handling, but I think this is perfectly fine.

Thanks for finding the issue!

…on process.

`tasks_processed` was not incrementing previously, so the packing was never considered "done".
@akien-mga akien-mga force-pushed the master.pr_bake_shaders_freeze_fix branch from 5e317ce to b9d5c3e Compare November 19, 2025 11:43
@Repiteo Repiteo merged commit 0382d7d into godotengine:master Nov 19, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Nov 19, 2025

Thanks!

@wavedev101
Copy link

Had the same problem on 4.5.1 #112560 forward+

@AThousandShips
Copy link
Member

The original but was also present in 4.5 so that's probably the same issue, will be cherry picked to 4.5.x

@akien-mga
Copy link
Member

Cherry-picked for 4.5.2.

@akien-mga akien-mga removed the cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release label Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enabling shader baker causes build to never finish exporting.

7 participants

X Tutup