stride3d / stride3d/stride

Grid UI somtimes fails to SumStripAutoAndFixedSize with definitions was null

Open
#2,727 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Release Type: Official Release/GitHub (please choose appropriate option)
Official Release

Version: Version number and/or git branch
4.2.0.2381

Platform(s): Does the problem occur on Windows, Android...?
Windows

Describe the bug
When a game is started with a UI Grid added to an active page then rarely the game will crash with null exception.
Its specifically StripDefinitions for the Grid when a the SumStripAutoAndFixedSize is ran before the are set.

To Reproduce
Happens too rarely to know what exactly creates the race condition. A page with a grid in a UI . Started the project many times. Typically seen in debug mode of Visual Studio.

Expected behavior
No null exceptions crash

Screenshots
Image

Log and callstacks
GridCrashLog.txt

Additional context
I have many UI Grids loaded, but collapsed. Not sure if that is making this more likely to happen.

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 attached GridCrashLog.txt and inspect the Grid code path around SumStripAutoAndFixedSize and StripDefinitions initialization. Try reproducing the startup race with a UI Grid on an active page, including collapsed grids, and confirm completion when startup no longer produces the reported null exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
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.