Grid UI somtimes fails to SumStripAutoAndFixedSize with definitions was null
Nobody has claimed this yet.
- 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
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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