Problem loading models with textures in Ubuntu 20.04 with MG 3.8

Hello,
I am trying to load some models in Ubuntu 20.04 using MG 3.8 GL project and I am having problems on models that have textures. Models without textures are fine, but if they have a texture it throws me the following error

By dotnet cli

/home/tgcito/Desktop/tgc-monogame-samples/TGC.MonoGame.Samples/Content/3D/tank/tank.fbx
  	/home/tgcito/Desktop/tgc-monogame-samples/TGC.MonoGame.Samples/Content/3D/tank/turret_alt_diff_tex.tga
  		Could not find the entry point to compress the texture. System.EntryPointNotFoundException: Unable to find an entry point named 'nvttSetOutputOptionsOutputHandler' in shared library 'nvtt'.
     at Nvidia.TextureTools.OutputOptions.nvttSetOutputOptionsOutputHandler(IntPtr outputOptions, IntPtr beginImageHandler, IntPtr outputHandler, IntPtr endImageHandler)
     at Nvidia.TextureTools.OutputOptions.SetOutputOptionsOutputHandler(BeginImageHandler beginImageHandler, OutputHandler outputHandler, EndImageHandler endImageHandler)
     at Microsoft.Xna.Framework.Content.Pipeline.Graphics.DxtBitmapContent.TryCopyFrom(BitmapContent sourceBitmap, Rectangle sourceRegion, Rectangle destinationRegion) in C:\BuildAgents\MonoGameWin1\work\f7381a85a626990\MonoGame.Framework.Content.Pipeline\Graphics\DxtBitmapContent.cs:line 200
     at Microsoft.Xna.Framework.Content.Pipeline.Graphics.BitmapContent.Copy(BitmapContent sourceBitmap, Rectangle sourceRegion, BitmapContent destinationBitmap, Rectangle destinationRegion) in C:\BuildAgents\MonoGameWin1\work\f7381a85a626990\MonoGame.Framework.Content.Pipeline\Graphics\BitmapContent.cs:line 132
     at Microsoft.Xna.Framework.Content.Pipeline.Graphics.BitmapContent.Copy(BitmapContent sourceBitmap, BitmapContent destinationBitmap) in C:\BuildAgents\MonoGameWin1\work\f7381a85a626990\MonoGame.Framework.Content.Pipeline\Graphics\BitmapContent.cs:line 88
     at Microsoft.Xna.Framework.Content.Pipeline.Graphics.TextureContent.ConvertBitmapType(Type newBitmapType) in C:\BuildAgents\MonoGameWin1\work\f7381a85a626990\MonoGame.Framework.Content.Pipeline\Graphics\TextureContent.cs:line 69
     at Microsoft.Xna.Framework.Content.Pipeline.Graphics.GraphicsUtil.CompressDxt(ContentProcessorContext context, TextureContent content, Boolean isSpriteFont) in C:\BuildAgents\MonoGameWin1\work\f7381a85a626990\MonoGame.Framework.Content.Pipeline\Graphics\GraphicsUtil.cs:line 190
     at Microsoft.Xna.Framework.Content.Pipeline.Graphics.DefaultTextureProfile.PlatformCompressTexture(ContentProcessorContext context, TextureContent content, TextureProcessorOutputFormat format, Boolean isSpriteFont) in C:\BuildAgents\MonoGameWin1\work\f7381a85a626990\MonoGame.Framework.Content.Pipeline\Graphics\DefaultTextureProfile.cs:line 131
     at Microsoft.Xna.Framework.Content.Pipeline.Graphics.TextureProfile.ConvertTexture(ContentProcessorContext context, TextureContent content, TextureProcessorOutputFormat format, Boolean isSpriteFont) in C:\BuildAgents\MonoGameWin1\work\f7381a85a626990\MonoGame.Framework.Content.Pipeline\Graphics\TextureProfile.cs:line 75
/home/tgcito/Desktop/tgc-monogame-samples/TGC.MonoGame.Samples/Content/3D/tank/tank.fbx : error : Processor 'TextureProcessor' had unexpected failure! [/home/tgcito/Desktop/tgc-monogame-samples/TGC.MonoGame.Samples/TGC.MonoGame.Samples.csproj]
  System.EntryPointNotFoundException: Unable to find an entry point named 'nvttSetOutputOptionsOutputHandler' in shared library 'nvtt'.
     at Microsoft.Xna.Framework.Content.Pipeline.Graphics.TextureProfile.ConvertTexture(ContentProcessorContext context, TextureContent content, TextureProcessorOutputFormat format, Boolean isSpriteFont) in C:\BuildAgents\MonoGameWin1\work\f7381a85a626990\MonoGame.Framework.Content.Pipeline\Graphics\TextureProfile.cs:line 80
     at Microsoft.Xna.Framework.Content.Pipeline.Processors.TextureProcessor.Process(TextureContent input, ContentProcessorContext context) in C:\BuildAgents\MonoGameWin1\work\f7381a85a626990\MonoGame.Framework.Content.Pipeline\Processors\TextureProcessor.cs:line 121
     at Microsoft.Xna.Framework.Content.Pipeline.ContentProcessor`2.Microsoft.Xna.Framework.Content.Pipeline.IContentProcessor.Process(Object input, ContentProcessorContext context) in C:\BuildAgents\MonoGameWin1\work\f7381a85a626990\MonoGame.Framework.Content.Pipeline\ContentProcessor.cs:line 60
     at MonoGame.Framework.Content.Pipeline.Builder.PipelineManager.ProcessContent(PipelineBuildEvent pipelineEvent) in C:\BuildAgents\MonoGameWin1\work\f7381a85a626990\MonoGame.Framework.Content.Pipeline\Builder\PipelineManager.cs:line 717

Any idea?
Thanks and Regards.

1 Like

Oh nvtt, it probably has some hidden dependency, for now you can compile the model by setting the texture format property to color, I’ll look into it.

1 Like

Hi!, for me the missing hidden dependency was libpng12 (not the same as libpng). Although I ended up with another problem that couldn’t solve without change the texture format to Color.

I was receiving a Null Pointer exception
System.ArgumentNullException: Value cannot be null
when calling the function TryCopyFrom from the class DxtBitmapContent.

Edit 1: Searching for the issue I stumbled with these issue

Hope that helps narrow the issue.

2 Likes