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

CompilerApp cannot build textures in OpenGLES (Android) #2520

Open
Basewq opened this issue Nov 13, 2024 · 0 comments
Open

CompilerApp cannot build textures in OpenGLES (Android) #2520

Basewq opened this issue Nov 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Basewq
Copy link
Contributor

Basewq commented Nov 13, 2024

Release Type: Official Release

Version: 4.2.0.2188+

Platform(s): Compiling for Android

Describe the bug
Building under Android, the CompilerApp throws errors like:

2>EXEC : error 11.839s: [AssetCompiler] Exception in command [Textures/stride_box_occlusion] Stride.Assets.Textures.TextureConvertParameters: System.NullReferenceException: Object reference not set to an instance of an object.
2>   at Stride.TextureConverter.TexLibraries.FITexLib.EndLibrary(TexImage image) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\tools\Stride.TextureConverter\Backend\TexLibraries\FITexLib.cs:line 101
2>   at Stride.TextureConverter.TexImage.Dispose() in C:\BuildAgent\work\b5f46e3c4829a09e\sources\tools\Stride.TextureConverter\Frontend\TexImage.cs:line 352
2>   at Stride.Assets.Textures.TextureAssetCompiler.TextureConvertCommand.DoCommandOverride(ICommandContext commandContext) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Assets\Textures\TextureAssetCompiler.cs:line 87
2>   at Stride.Core.BuildEngine.CommandBuildStep.StartCommand(IExecuteContext executeContext, ListStore`1 commandResultEntries, BuilderContext builderContext) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\buildengine\Stride.Core.BuildEngine.Common\CommandBuildStep.cs:line 304
2>EXEC : error 11.839s: [AssetCompiler] BuildStep [Textures/stride_box_occlusion] Stride.Assets.Textures.TextureConvertParameters failed.
2>EXEC : error 11.839s: [AssetCompiler] Exception in command [Textures/stride_box_occlusion] Stride.Assets.Textures.TextureConvertParameters: System.NullReferenceException: Object reference not set to an instance of an object.
2>   at Stride.TextureConverter.TexLibraries.FITexLib.EndLibrary(TexImage image) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\tools\Stride.TextureConverter\Backend\TexLibraries\FITexLib.cs:line 101
2>   at Stride.TextureConverter.TexImage.Dispose() in C:\BuildAgent\work\b5f46e3c4829a09e\sources\tools\Stride.TextureConverter\Frontend\TexImage.cs:line 352
2>   at Stride.Assets.Textures.TextureAssetCompiler.TextureConvertCommand.DoCommandOverride(ICommandContext commandContext) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\engine\Stride.Assets\Textures\TextureAssetCompiler.cs:line 87
2>   at Stride.Core.BuildEngine.CommandBuildStep.StartCommand(IExecuteContext executeContext, ListStore`1 commandResultEntries, BuilderContext builderContext) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\buildengine\Stride.Core.BuildEngine.Common\CommandBuildStep.cs:line 304
2>EXEC : error 11.839s: [AssetCompiler] BuildStep [Textures/stride_box_occlusion] Stride.Assets.Textures.TextureConvertParameters failed.
2>EXEC(1,1): error 11.840s: [AssetCompiler] Asset [Textures/stride_box_occlusion] failed to compile
2>EXEC : error 11.840s: [AssetCompiler] BuildStep Asset build steps [TextureAsset:'Textures/stride_box_occlusion'] (1 items) failed.

To Reproduce
Steps to reproduce the behavior:

  1. Create Top-Down RPG template
  2. Build for Android (must do build through Visual Studio, Game Studio is broken on detecting Android)

Expected behavior
Build

Additional context
Caused by #2342
Reverting this commit allows the texture(s) to build again

@Basewq Basewq added the bug Something isn't working label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant