stride3d / stride3d/stride

Static constructor of PlatformFolders crashes

Open
#680 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-Asset area-Build 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: master

Platform(s): Windows

Describe the bug
Xenko.Core.PlatformFolders tries to create directories in the directory of the executable. If the exectutable is in a protected directory like %ProgramFiles% its static constructor crashes and it's not possible to load Stride at all.

To Reproduce
Try to load Stride from an application installed in a protected directory like %ProgramFiles%

Expected behavior
A way to tell Stride where it should setup its needed folder structure. If that is too hard to do it should at least not crash so the host application can find its own workaround.

Are there any ideas already how this should be approached?

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 Xenko.Core.PlatformFolders static constructor and reproduce the failure when Stride is loaded from a protected Windows directory such as %ProgramFiles%. Trace how its required folder location is selected, then verify that the host can provide an alternative location or that loading no longer crashes when directory creation is denied.

Written by the indexing model from the issue text.

Assessment

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