xenko icon indicating copy to clipboard operation
xenko copied to clipboard

Unable to run new project

Open jayrulez opened this issue 7 years ago • 6 comments

Exception in command SiliconStudio.Xenko.Assets.Textures.TextureConvertParameters: System.TypeInitializationException: The type initializer for 'SiliconStudio.TextureConverter.TextureTool' threw an exception. ---> System.InvalidOperationException: Could not load native library DxtWrapper.dll from path [C:\Program Files\Silicon Studio\Xenko\Bin\Windows\x64\DxtWrapper.dll] using CPU architecture x64.
   at SiliconStudio.Core.NativeLibrary.PreloadLibrary(String libraryName) in C:\TeamCity\work\80a49494ba341a6a\sources\common\core\SiliconStudio.Core\Native\NativeLibrary.cs:line 70
   at SiliconStudio.TextureConverter.TextureTool..cctor() in C:\TeamCity\work\80a49494ba341a6a\sources\tools\SiliconStudio.TextureConverter\Frontend\TextureTool.cs:line 41
   --- End of inner exception stack trace ---
   at SiliconStudio.TextureConverter.TextureTool..ctor()
   at SiliconStudio.Xenko.Assets.Textures.TextureAssetCompiler.TextureConvertCommand.DoCommandOverride(ICommandContext commandContext) in C:\TeamCity\work\80a49494ba341a6a\sources\engine\SiliconStudio.Xenko.Assets\Textures\TextureAssetCompiler.cs:line 63
   at SiliconStudio.BuildEngine.CommandBuildStep.<StartCommand>d__21.MoveNext() in C:\TeamCity\work\80a49494ba341a6a\sources\common\buildengine\SiliconStudio.BuildEngine.Common\CommandBuildStep.cs:line 0

It seems these files are not in the expected folder. Something must be wonky with the installer.

jayrulez avatar Nov 11 '17 22:11 jayrulez

Judging from C:\Program Files\Silicon Studio\Xenko\Bin\Windows\x64\DxtWrapper.dll and C:\TeamCity\work\80a49494ba341a6a\sources\common\core\SiliconStudio.Core\Native\NativeLibrary.cs I assume that you chose to install Xenko in some non-default location.

stefnotch avatar Nov 30 '17 17:11 stefnotch

No, this is just that some assemblies have .pdb (build server paths) and some other don't (user path).

xen2 avatar Dec 01 '17 01:12 xen2

How do I get around this @xen2 ?

jayrulez avatar Feb 16 '18 04:02 jayrulez

@jayrulez if DxtWrapper.dll doesn't load, it could be because of missing Visual C++ runtime. To understand better, please let me know:

  • Do you have Visual Studio installed?
  • Did you have any issue when installing Xenko (specifically the prerequisites)?

(note: my previous answer was concerning @stefnotch remark)

xen2 avatar Feb 16 '18 07:02 xen2

I do have visual studio installed (Community 2017).

I have various versions of VS C++ runtime installed.

I didn't have any issue intalling Xenko.

I have .NET 4.7.1 installed while Xenko requires 4.6.2 but that shouldn't be a problem.

jayrulez avatar Feb 16 '18 19:02 jayrulez

Could you try to open DxtWrapper.dll with Dependency Walker x64? http://www.dependencywalker.com/

You could then take a look at top level .dll and see if any is missing. Here is what it look like on my computer:

image

xen2 avatar Feb 19 '18 01:02 xen2