[Android] System.DllNotFoundException: libfreetype.so.6 for new created project in Stride 4.0.1.1428
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.0.1.1428
Platform(s): Does the problem occur on Windows, Android...?
Android
Describe the bug
Cant Start a new created project for Android. It throws the folloing error:
[Stride] [Game]: Error: Unexpected exception. System.DllNotFoundException: libfreetype.so.6 assembly: type: member:(null)
[Stride] at (wrapper managed-to-native) SharpFont.FT.FT_Init_FreeType(intptr&)
[Stride] at SharpFont.Library..ctor () [0x00007] in :0
[Stride] at Stride.Graphics.Font.FontManager..ctor (Stride.Core.IO.IDatabaseFileProviderService fileProviderService) [0x00069] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Graphics\Font\FontManager.cs:85
[Stride] at Stride.Engine.Game.LoadContentInternal () [0x00000] in C:\BuildAgent\w10-28 01:05:03.733 E/Stride ( 8979): at Stride.Rendering.Fonts.GameFontSystem.LoadContent () [0x00006] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Rendering\Rendering\Fonts\GameFontSystem.cs:36
[Stride] at Stride.Games.GameSystemBase.Stride.Games.IContentable.LoadContent () [0x00017] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Games\GameSystemBase.cs:216
[Stride] at Stride.Games.GameSystemCollection.LoadContent () [0x0009b] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Games\GameSystemCollection.cs:165
[Stride] at Stride.Games.GameBase.LoadContentInternal () [0x00000] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Games\GameBase.cs:838
[Stride] at Stride.Engine.Game.LoadContentInternal () [0x00000] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Engine\Engine\Game.cs:458
[Stride] at Stride.Games.GameBase.InitializeBeforeRun () [0x00066] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Games\GameBase.cs:373 System.DllNotFoundException: libfreetype.so.6 assembly: type: member:(null)
[Stride] at (wrapper managed-to-native) SharpFont.FT.FT_Init_FreeType(intptr&)
[Stride] at SharpFont.Library..ctor () [0x00007] in :0
[Stride] at Stride.Graphics.Font.FontManager..ctor (Stride.Core.IO.IDatabaseFileProviderService fileProviderService) [0x00069] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Graphics\Font\FontManager.cs:85
[Stride] at Stride.Graphics.Font.FontSystem.Load (Stride.Graphics.GraphicsDevice graphicsDevice, Stride.Core.IO.IDatabaseFileProviderService fileProviderService) [0x00015] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Graphics\Font\FontSystem.cs:41
[Stride] at Stride.Rendering.Fonts.GameFontSystem.LoadContent () [0x00006] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Rendering\Rendering\Fonts\GameFontSystem.cs:36
[Stride] at Stride.Games.GameSystemBase.Stride.Games.IContentable.LoadContent () [0x00017] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Games\GameSystemBase.cs:216
[Stride] at Stride.Games.GameSystemCollection.LoadContent () [0x0009b] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Games\GameSystemCollection.cs:165
[Stride] at Stride.Games.GameBase.LoadContentInternal () [0x00000] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Games\GameBase.cs:838
[Stride] at Stride.Games.GameBase.InitializeBeforeRun () [0x00066] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Games\GameBase.cs:373
System.DllNotFoundException: 'Loading...'
To Reproduce
Steps to reproduce the behavior:
- Create Android App
- Start Android App in Debug
Expected behavior
No exeptions
Screenshots
If applicable, add screenshots to help explain your problem (use GitHub drag & drop)
Log and callstacks
[Stride] [Game]: Error: Unexpected exception. System.DllNotFoundException: libfreetype.so.6 assembly: type: member:(null)
[Stride] at (wrapper managed-to-native) SharpFont.FT.FT_Init_FreeType(intptr&)
[Stride] at SharpFont.Library..ctor () [0x00007] in :0
[Stride] at Stride.Graphics.Font.FontManager..ctor (Stride.Core.IO.IDatabaseFileProviderService fileProviderService) [0x00069] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Graphics\Font\FontManager.cs:85
[Stride] at Stride.Engine.Game.LoadContentInternal () [0x00000] in C:\BuildAgent\w10-28 01:05:03.733 E/Stride ( 8979): at Stride.Rendering.Fonts.GameFontSystem.LoadContent () [0x00006] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Rendering\Rendering\Fonts\GameFontSystem.cs:36
[Stride] at Stride.Games.GameSystemBase.Stride.Games.IContentable.LoadContent () [0x00017] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Games\GameSystemBase.cs:216
[Stride] at Stride.Games.GameSystemCollection.LoadContent () [0x0009b] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Games\GameSystemCollection.cs:165
[Stride] at Stride.Games.GameBase.LoadContentInternal () [0x00000] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Games\GameBase.cs:838
[Stride] at Stride.Engine.Game.LoadContentInternal () [0x00000] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Engine\Engine\Game.cs:458
[Stride] at Stride.Games.GameBase.InitializeBeforeRun () [0x00066] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Games\GameBase.cs:373 System.DllNotFoundException: libfreetype.so.6 assembly: type: member:(null)
[Stride] at (wrapper managed-to-native) SharpFont.FT.FT_Init_FreeType(intptr&)
[Stride] at SharpFont.Library..ctor () [0x00007] in :0
[Stride] at Stride.Graphics.Font.FontManager..ctor (Stride.Core.IO.IDatabaseFileProviderService fileProviderService) [0x00069] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Graphics\Font\FontManager.cs:85
[Stride] at Stride.Graphics.Font.FontSystem.Load (Stride.Graphics.GraphicsDevice graphicsDevice, Stride.Core.IO.IDatabaseFileProviderService fileProviderService) [0x00015] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Graphics\Font\FontSystem.cs:41
[Stride] at Stride.Rendering.Fonts.GameFontSystem.LoadContent () [0x00006] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Rendering\Rendering\Fonts\GameFontSystem.cs:36
[Stride] at Stride.Games.GameSystemBase.Stride.Games.IContentable.LoadContent () [0x00017] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Games\GameSystemBase.cs:216
[Stride] at Stride.Games.GameSystemCollection.LoadContent () [0x0009b] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Games\GameSystemCollection.cs:165
[Stride] at Stride.Games.GameBase.LoadContentInternal () [0x00000] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Games\GameBase.cs:838
[Stride] at Stride.Games.GameBase.InitializeBeforeRun () [0x00066] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Games\GameBase.cs:373
System.DllNotFoundException: 'Loading...'
Additional context
Add any other context about the problem here.
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
Reproduce the Android App startup failure in Debug and begin at Stride.Graphics/Font/FontManager.cs:85, where SharpFont reports the missing libfreetype.so.6. Trace the font-loading calls through Stride.Graphics/Font/FontSystem.cs:41 and Stride.Rendering/Rendering/Fonts/GameFontSystem.cs:36. Done means a newly created Android project starts without the DllNotFoundException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, csharp
- Domain
- game-dev, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100