Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Agredo opened this issue Oct 27, 2021 · 1 comment
Labels
bug Something isn't working platform-Android

Comments

@Agredo
Copy link

Agredo commented Oct 27, 2021

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.

@Agredo Agredo added the bug Something isn't working label Oct 27, 2021
@MeharDT
Copy link
Contributor

MeharDT commented Oct 28, 2021

I'm able to replicate this issue in Stride 4.0.1.1428 using .NET 4.7.2

Possibly related to this?

Robmaister/SharpFont#122

windperson added a commit to windperson/CodeOnlyStrideDemo that referenced this issue Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform-Android
Projects
None yet
Development

No branches or pull requests

3 participants