o3de / o3de

Open 3D Engine (O3DE) is an Apache 2.0-licensed multi-platform 3D engine that enables developers and content creators to build AAA games, cinema-quality 3D worlds, and high-fidelity simulations without any fees or commercial obligations.

Home Page:https://o3de.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assets with long paths fails to build on linux.

pijaro opened this issue · comments

Describe the bug
AssetProcessor on Linux (Ubuntu) returns an error when building an asset with a path longer than 260 chars.

Assets required
Any asset that has a path length > 260.

Steps to reproduce
Steps to reproduce the behavior:

  1. Create a project with a very long path.
  2. Run an asset processor for an asset that lives in the project.

Expected behavior
All assets are built correctly.

Actual behavior
Assets with long paths fail to build. The example error is:

AssetProcessor: JOB LOG: 25 Apr 2024 08:26:34 | ERROR | Cannot copy file: Product '/ver/long/path/to/asset/materialgraphname_mainpipeline_forwardpass_baselighting.azsl' path length (265) exceeds the max path length (260) allowed on disk from Error

Found in Branch
point-release/23103

Desktop/Device (please complete the following information):

  • Device: PC
  • OS: Ubuntu 22.04
  • CPU Intel 13th gen
  • GPU RTX 3070
  • Memory 32GB

Additional context
The asset processor max path length is set to 260 (source), even for OSes that should be able to handle longer paths. Maybe the limit should only exist for Windows OSes?

There is a preliminary fix here: #17719

This should be fixed with #17719

@pijaro Can you verify this is fixed with the latest from the development branch?