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

Non lowercase extension triggers silent error when importing FBX files #78535

Closed
noidexe opened this issue Jun 21, 2023 · 3 comments · Fixed by #78567
Closed

Non lowercase extension triggers silent error when importing FBX files #78535

noidexe opened this issue Jun 21, 2023 · 3 comments · Fixed by #78567

Comments

@noidexe
Copy link
Contributor

noidexe commented Jun 21, 2023

Godot version

v4.1.beta3.official [ada712e]

System information

Windows 10.0.22621 - Vulkan (Forward+) - dedicated AMD Radeon RX 6700S (Advanced Micro Devices, Inc.; 31.0.12024.2005) - AMD Ryzen 9 6900HS with Radeon Graphics (16 Threads)

Issue description

When importing an FBX file if the path to FBX2gltF is not set Godot normally shows a popup indicating that, together with a link to download the converter.
If the extension is uppercase (as is the case when exporting from Unreal) or anything other than lowercase, instead of the popup you get the following error.

- Could not create child process:  --pbr-metallic-roughness --input "C:/repos/FBX Import Fail/Room #1.fBx" --output "C:/repos/FBX Import Fail/.godot/imported/Room #1-408dbc91e4717f19e6488d2025606d51.glb" --binary
  modules/gltf/editor/editor_scene_importer_fbx.cpp:84 
- FBX conversion to glTF failed with error: 32758.
- Error importing 'res://Room #1.fBx'.

Steps to reproduce

  • Create a new project
  • Add an an FBX file making sure it ends with .FBX and not .fbx
  • Go back to Godot to trigger importing and getting the error
  • Rename the file to .fbx to get the popup

Any capitalization other than lowercase triggers the bug

Minimal reproduction project

The fbx file makes the mrp go over the maximum sized allowed by Github.
You can download it here https://free3d.com/3d-model/low-poly-isometric-room-1-704614.html and add it to an empty project. Make sure to rename it so the extension is uppercase

@noidexe noidexe changed the title Non lowercase extention triggers silent error when importing FBX files Non lowercase extension triggers silent error when importing FBX files Jun 21, 2023
@clayjohn clayjohn added this to the 4.x milestone Jun 21, 2023
@NiskashY
Copy link
Contributor

Hi! I found that when reimporting we look at file extension without to_lower() specifier.
After i added it popup showed for .fbx files in different letter registers.

My PR: #78567

@noidexe
Copy link
Contributor Author

noidexe commented Jun 22, 2023

Thanks a lot! I knew it had to be some to_lower() missing somewhere but couldn't find it. Seems to be something affecting files in general rather than only fbx, right?

@NiskashY
Copy link
Contributor

I guess so :)

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

Successfully merging a pull request may close this issue.

5 participants