stride3d / stride3d/stride

"Build and Run" button will fail to find derived material during build

Open
#280 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Release Type: Official Release

Version: 3.0.0.6

Platform(s): Windows

Describe the bug
When using an empty project with a derived material, pressing the "Build Project and run" (Play button) will fail to build the project with the builder not being able to find the Sphere-Material. Build will complete without error when selecting the "Build"-Button (next to the Play-Button).

Trying to run the project using the Play-Button will work normally before adding the derived material.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new (empty) project, leave defaults as is
  2. Select Sphere-Material and select "Create derived asset"
  3. Assign that material to the sphere
  4. Edit the newly created material, (changed only gloss map value in attached example)
  5. Try to run the project using the Play Button, will fail

Expected behavior
"Build" and "Build and Run" button should both complete a build successfully, as "Build" will complete the entire build process without issue, subsequent runs of the "Build and Run" (Play Button) will complete normally.

Screenshots
xenko3

Log and callstacks
Build output.txt

Additional context

Eideren: Slightly edited the repro to include one more necessary step.

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

Reproduce the failure using the listed empty-project steps, then compare the attached build output with a successful Build-button run. Trace why Build and Run cannot find the derived Sphere-Material; done means both Build and Build and Run complete successfully after editing the derived material.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.