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

Improve error message when WebP fails to load in exported project due to the module being disabled #62712

Open
Tracked by #42719
simplex-fx opened this issue Jul 4, 2022 · 3 comments

Comments

@simplex-fx
Copy link

simplex-fx commented Jul 4, 2022

Godot version

3.4.4-stable

System information

Windows 10 GLES3

Issue description

When importing png files as Texture, I get ERR_FILE_CORRUPT (texture.cpp:566) when I'm running the exported project, but it works fine from the editor.

It either runs the wrong (webp) unpacker, or the png unpacker fails for some reason, or the exported file is, indeed, corrupt.

The actual export succeeds, it only gives me error when I'm running the game exe.

Steps to reproduce

See description.

Minimal reproduction project

No response

@Calinou
Copy link
Member

Calinou commented Jul 4, 2022

@simplex-fx Please upload a minimal reproduction project to make this easier to troubleshoot.

Also, did you enable Force Png in the project settings before the texture was imported in the editor?

@simplex-fx
Copy link
Author

It seems that the webp module was disabled for the export templates build from some obscure build script of mine.

Still, some more human readable error message would help a lot, when the image codec is not present.

@Calinou Calinou changed the title Png export issues (ERR_FILE_CORRUPT) Improve error message when WebP fails to load in exported project due to the module being disabled Jul 5, 2022
@kyoz
Copy link

kyoz commented Nov 7, 2022

For more information, i'v use Godot 3.3.2 in the past and export with module_webp_enabled=no. Cause I don't use any webp images, only PNG images. And it work.

Today I update my project to 3.5.1 with the same export template and it cause the same problem as @simplex-fx .

With module_webp_enabled=yes it's now working, it's seem newer version of Godot has implement some feature that require webp_module to handle png image.

But anyway, it's work now, thanks @simplex-fx . Saved my time 😸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants