stride3d / stride3d/stride

AssetCompiler hanged on rebuild with GraphicsApi change

Open
#1,332 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-Asset area-Build area-Graphics bug
Dominant language
C#
Stars
7.8k
Forks
1.2k
Avg merge
2d 17h
Merged PRs (30d)
49

Description

Release Type: GitHub

Version: master

Platform(s): N/A

Describe the bug
I've built a project targeting Linux with the default Stride.sln build - so AssetCompiler ran with D3D11, next I recompiled Stride runtime packages with /p:StrideGraphicsApiDependentBuildAll=true, modified target project to use Vulkan and in VS did Rebuild - the asset compiler ran and then hang - I killed it after about an hour of waiting.

To Reproduce
I haven't had time to repro it again, look above for how I got here and below for when the log stopped.

Expected behavior
Asset compiler successfully completes after rebuild with GraphicsApi change

Log and callstacks

info 0.013s: [AssetCompiler] BuildEngine arguments: --disable-auto-compile --project-configuration Release --platform=Linux --project-configuration=Release --compile-property:StrideGraphicsApi=Vulkan --output-path=D:\Stride Projects\Starbreach\Bin\Linux\Release\linux-x64\data --build-path=D:\Stride Projects\Starbreach\Starbreach.Linux\obj\stride\assetbuild\data --package-file=D:\Stride Projects\Starbreach\Starbreach.Linux\Starbreach.Linux.csproj --msbuild-uptodatecheck-filebase=D:\Stride Projects\Starbreach\Starbreach.Linux\obj\Release\linux-x64\stride\assetcompiler-uptodatecheck
info 0.014s: [AssetCompiler] Starting builder.
info 8.593s: [AssetCompiler] Processing convex hull generation, this might take a while!
info 8.593s: [AssetCompiler] Node generated 1 convex hulls
info 8.593s: [AssetCompiler] For a total of 49 vertexes
... (more convex hulls)
info 8.595s: [AssetCompiler] Processing convex hull generation, this might take a while!
info 8.595s: [AssetCompiler] Node generated 1 convex hulls
info 8.595s: [AssetCompiler] For a total of 56 vertexes
info 8.640s: [AssetCompiler] Build settings changed, doing a full rebuild
info 8.640s: [AssetCompiler] Build settings changed, doing a full rebuild
info 8.640s: [AssetCompiler] Build settings changed, doing a full rebuild

Additional context
After encountering the issue I have cleared the asset cache from obj/ and Build succeeded.

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 at the AssetCompiler entry point and compare the logged rebuild behavior when switching from D3D11 to Vulkan with the build settings change messages. Use the reproduction sequence and the paths under obj/ as investigation context, then verify that a rebuild completes without hanging and that clearing the asset cache is no longer required.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.