stride3d / stride3d/stride

[Crash] Editor crashes on launch after installing just .NET 6 SDK on a brand new OS

Open
#1,885 11 comments 0 reactions 1 assignee View on GitHub

@JeromyWalsh is already working on this.

Since Oct 4, 2023.

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.1.0.1948

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

Windows 11 x64

Describe the bug
The editor crashes before executing when launched from a clean OS after having installed only the Installer and .NET 6.0 SDK

To Reproduce
Steps to reproduce the behavior:

  1. Create a clean, non-development environment either by VM or fresh Windows 11 x64 installer.
  2. Download & install the StrideSetup.exe
  3. Install the .NET 6.0 SDK
  4. Launch the editor, create a new Windows "New Game..." project

Expected behavior
The editor/Game Studio launches with the new project loaded, ready for game development.

Actual behavior
The editor/Game Studio crashes before even showing the below crash report, before even opening.

Screenshots

image

Log and callstacks
Application: GameStudio
UserEmail:
UserMessage:
StrideVersion: 4.1.0.1948
GameStudioVersion: 4
ThreadName: Main thread
DefaultGraphicProfile: Level_10_0
OpenedAssets:
LastActions:
CurrentDirectory: %USERPROFILE%.nuget\packages\stride.gamestudio\4.1.0.1948\tools\net6.0-windows7.0
CommandArgs: %USERPROFILE%\Documents\Stride Projects\MyGame\MyGame.sln
OsVersion: Microsoft Windows 11 Home 10.0.22621 x64
ProcessorCount: 8
Exception: InvalidOperationException: Could not load native library freetype using CPU architecture x64.
at Stride.Core.NativeLibraryHelper.PreloadLibrary(String libraryName, Type owner) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\core\Stride.Core\Native\NativeLibraryHelper.cs:line 156
at Stride.Graphics.Font.FontManager..ctor(IDatabaseFileProviderService fileProviderService)
at Stride.Graphics.Font.FontSystem.Load(GraphicsDevice graphicsDevice, IDatabaseFileProviderService fileProviderService)
at Stride.Rendering.Fonts.GameFontSystem.LoadContent() in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Rendering\Rendering\Fonts\GameFontSystem.cs:line 36
at Stride.Games.GameSystemBase.Stride.Games.IContentable.LoadContent()
at Stride.Games.GameSystemCollection.LoadContent()
at Stride.Editor.Thumbnails.ThumbnailGenerator..ctor(EffectCompilerBase effectCompiler) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\editor\Stride.Editor\Thumbnails\ThumbnailGenerator.cs:line 146
at Stride.Editor.Thumbnails.GameStudioThumbnailService..ctor(SessionViewModel session, GameSettingsProviderService settingsProvider, GameStudioBuilderService assetBuilderService) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\editor\Stride.Editor\Thumbnails\GameStudioThumbnailService.cs:line 54
at Stride.GameStudio.StrideEditorPlugin.InitializeSession(SessionViewModel session) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\editor\Stride.GameStudio\StrideEditorPlugin.cs:line 82
at Stride.GameStudio.GameStudioWindow.b__36_0(AssetsPlugin x) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\editor\Stride.GameStudio\GameStudioWindow.xaml.cs:line 251
at Stride.Core.Extensions.EnumerableExtensions.ForEach[T](IEnumerable1 source, Action1 action) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\core\Stride.Core\Extensions\EnumerableExtensions.cs:line 57
at Stride.GameStudio.GameStudioWindow.GameStudioLoaded(Object sender, RoutedEventArgs e) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\editor\Stride.GameStudio\GameStudioWindow.xaml.cs:line 251
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
at System.Windows.Interop.HwndTarget.OnResize()
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.HwndSubclass.DefWndProcWrapper(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

GPU0.AdapterCompatibility: Oracle Corporation
GPU0.AdapterDACType:
GPU0.AdapterRAM: 0
GPU0.Availability: 3
GPU0.Caption: VirtualBox Graphics Adapter (WDDM)
GPU0.ConfigManagerErrorCode: 0
GPU0.ConfigManagerUserConfig: False
GPU0.CreationClassName: Win32_VideoController
GPU0.CurrentBitsPerPixel: 32
GPU0.CurrentHorizontalResolution: 1884
GPU0.CurrentNumberOfColors: 4294967296
GPU0.CurrentNumberOfColumns: 0
GPU0.CurrentNumberOfRows: 0
GPU0.CurrentRefreshRate: 1
GPU0.CurrentScanMode: 4
GPU0.CurrentVerticalResolution: 1124
GPU0.Description: VirtualBox Graphics Adapter (WDDM)
GPU0.DeviceID: VideoController1
GPU0.DitherType: 0
GPU0.DriverDate: 20221116000000.000000-000
GPU0.DriverVersion: 7.0.4.4605
GPU0.InfFilename: oem2.inf
GPU0.InfSection: VBoxVideo
GPU0.InstalledDisplayDrivers: VBoxDispD3D.dll,VBoxDX.dll,VBoxDX.dll
GPU0.MaxRefreshRate: 64
GPU0.MinRefreshRate: 64
GPU0.Monochrome: False
GPU0.Name: VirtualBox Graphics Adapter (WDDM)
GPU0.PNPDeviceID: PCI\VEN_80EE&DEV_BEEF&SUBSYS_040515AD&REV_00\3&267A616A&0&10
GPU0.Status: OK
GPU0.SystemCreationClassName: Win32_ComputerSystem
GPU0.SystemName: WINDOWS-11
GPU0.VideoArchitecture: 5
GPU0.VideoMemoryType: 2
GPU0.VideoModeDescription: 1884 x 1124 x 4294967296 colors
GPU0.VideoProcessor:
Log: 1: BasicCameraController(0,0): []: Fatal: The asset BasicCameraController is missing or incorrectly indexed in the package. Please report this issue.
2: MyGameApp(0,0): []: Fatal: The asset MyGameApp is missing or incorrectly indexed in the package. Please report this issue.
3: [AssetsCompiler.AttributeBasedRegistry]: Error: Unable to instantiate compiler [Stride.Assets.Physics.ColliderShapeAsset, Stride.Assets, Version=4.1.0.1948, Culture=neutral, PublicKeyToken=null]. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.TypeInitializationException: The type initializer for 'Stride.Assets.Physics.ColliderShapeAssetCompiler' threw an exception.
---> System.InvalidOperationException: Could not load native library VHACD using CPU architecture x64.
at Stride.Core.NativeLibraryHelper.PreloadLibrary(String libraryName, Type owner) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\core\Stride.Core\Native\NativeLibraryHelper.cs:line 156
at Stride.Assets.Physics.ColliderShapeAssetCompiler..cctor() in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Assets\Physics\ColliderShapeAssetCompiler.cs:line 30
--- End of inner exception stack trace ---
at Stride.Assets.Physics.ColliderShapeAssetCompiler..ctor()
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
--- End of inner exception stack trace ---
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
at Stride.Core.Assets.Compiler.AssetCompilerRegistry.ProcessAttribute(AssetCompilerAttribute compilerCompilerAttribute, Type type) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\assets\Stride.Core.Assets\Compiler\AssetCompilerRegistry.cs:line 161
at Stride.Core.Assets.Compiler.AssetCompilerRegistry.RegisterCompilersFromAssembly(Assembly assembly) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\assets\Stride.Core.Assets\Compiler\AssetCompilerRegistry.cs:line 198

Additional context
Add any other context about the problem here.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.