stride3d / stride3d/stride

Avalonia editor crashes when reopening a solution

Open
#2,928 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Release Type: Github
Version: xplat-editor
Platform(s): Linux (but probably also Windows)

Describe the bug
When reopening a solution PluginService.EnsureInitialized is called again re-adding the already added template providers creating duplicates and throwing an exception.

To Reproduce
Steps to reproduce the behavior:

  1. Open up the Avalonia editor
  2. Open a solution (it can even be an empty one)
  3. Open the solution again
  4. Observe result

Expected behavior
The solution is reloaded with no problems.

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 PluginService.EnsureInitialized and trace the template-provider registration triggered when a solution is opened. Reproduce by opening the same solution twice in the Avalonia editor, then verify that reopening succeeds without duplicate providers or an exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.