Bug Report - AssetProcessor lowercases product paths, so a clean cook cannot satisfy critical assets on a case-sensitive filesystem
Bug Report - AssetProcessor lowercases product paths, so a clean cook cannot satisfy critical assets on a case-sensitive filesystem
Summary
The AssetProcessor writes product paths in lowercase, while the engine's critical-asset loaders request paths using the source casing. On a case-sensitive filesystem the catalog lookup then misses, and because these are loaded as critical assets the game aborts before anything else runs.
A clean re-cook does not fix this, so it is not obvious that the cache is at fault.
Environment
| Engine | 2605.0 release (engine.json version 2.6.0), unmodified source |
| Commit | n/a — the source tree I built from has no .git |
| Platform | Linux x86-64, ext4 (case-sensitive) |
| Build | profile, Ninja Multi-Config, clang 22, ccache |
Steps to reproduce
- Build the project (or the engine) as normal.
- Delete
Cache/and let the game cook from scratch. - Run the game.
Observed
The source asset has a capital F:
Assets/Engine/Fonts/default.fontThe cook writes it lowercased:
Cache/linux/fonts/default.fontand AtomFont requests it with the source casing:
[Error] (AtomFont) - Could not load font: Fonts/default.font
[Error] (AtomFont) - Could not load font: Fonts/default-ui.font
O3DE could not initialize correctly for the following reason(s):
Could not load font: Fonts/default.font
Could not load font: Fonts/default-ui.fontThe asset catalog is case-sensitive and its key is the lowercase path, so the lookup misses. The game then aborts during initialisation.
The same class of problem affects Shaders/SimpleTextured.azshader, which AtomFont loads as a critical asset. A case mismatch on a critical asset aborts the whole game rather than degrading, which makes this look like a much more serious failure than it is.
Workaround
Recreate the capitalised directory by hand after cooking:
cd Cache/linux && rm -rf Fonts && mkdir Fonts && cp -a fonts/. Fonts/I have also seen the same mismatch affect other top-level directories in Cache/linux (shaders, materials, textures, levels, …), so the fix may need to be applied more broadly.
Expected
Either:
- product paths preserve the source asset's casing, so
Assets/Engine/Fonts/default.fontcooks toCache/linux/Fonts/default.font; or - the critical-asset lookup is case-insensitive on case-sensitive filesystems.
Either would remove a failure mode where a successful cook produces a cache that the engine cannot then load.
Additional note
While investigating this I could not get the project to start on development (2.8.0) either. It builds with zero errors, but on start-up it hits this same font/critical-asset casing problem, and additionally four engine .streamingimage products report:
[Error] (AssetUtils) - Could not compile asset
'textures/default/default_skyboxcm.dds.streamingimage', status = 5.
[Error] (AssetUtils) - Could not compile asset
'textures/default/default_iblglobalcm_iblspecular.dds.streamingimage', status = 5.
[Error] (AssetUtils) - Could not compile asset
'textures/postprocessing/AreaTex.dds.streamingimage', status = 5.
[Error] (AssetUtils) - Could not compile asset
'textures/postprocessing/SearchTex.dds.streamingimage', status = 5....despite those products existing on disk. I don't know what status = 5 means and I am not claiming it is related to the casing problem — reporting it only because it blocks start-up on that branch and I could not find it elsewhere.
Source: o3de/o3de