stride3d / stride3d/stride

Asset Compiler race condition at build time

Open
#937 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-Build bug priority-high work-estimate-XS
Dominant language
C#
Stars
7.8k
Forks
1.2k
Avg merge
2d 17h
Merged PRs (30d)
49

Description

Release Type: Official Release

Version: 4.0.0.1-beta04-1317

Platform(s): Windows

Describe the bug
When compiling assets the build can frequently fail due to probable race condition.

EXEC : error 2.071s: [AssetCompiler] Commands EffectCompile [MyCustomShader] and EffectCompile [StrideForwardShadingEffect.ShadowMapCaster] are both writing __shaders_bytecode__/7c10098595489c56b8d175d4548ba7d3 at the same time
EXEC : error 2.082s: [AssetCompiler] Exception in command Asset build steps [EffectLogAsset:'EffectCompileLog'] (21 items): System.InvalidOperationException: Commands EffectCompile [MyCustomShader] and EffectCompile [StrideForwardShadingEffect.ShadowMapCaster] are both writing __shaders_bytecode__/7c10098595489c56b8d175d4548ba7d3 at the same time

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the AssetCompiler build path and the concurrent EffectCompile commands shown in the failure. Reproduce the asset build on Windows and trace how both commands write the same shader-bytecode path. Done means the build no longer reports simultaneous writes for that path.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.