stride3d / stride3d/stride

[Android] System.DllNotFoundException: libfreetype.so.6 for new created project in Stride 4.0.1.1428

Open
#1,175 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug platform-Android
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:

  1. Create Android App
  2. 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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.