Pointcaches are not found when stored on disk and sending to flamenco (Missing file warning) #57672
Labels
No Label
legacy module
Platforms, Builds, Tests & Devices
legacy project
Blender Asset Tracer
legacy project
Platform: Windows
Priority::Normal
Status::Archived
Status::Confirmed
Status::Needs Triage
Status::Resolved
Type::Design
Type::Report
Type::To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-asset-tracer#57672
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
disk caches are stored in blendcache_<blendfilename_no_ext> folder.
when sending a file to flamenco the filename is changed from orig.blend to orig.flamenco.blend
See https://git.blender.org/gitweb/gitweb.cgi/blender-cloud-addon.git/blob/HEAD:/blender_cloud/flamenco/init.py#l314
But caches still remain in original location: //blendcache_orig/
When using a disk cache (PTCACHE_DISK_CACHE) the point cache location is reconstructed using the new filename resulting in the wrong location
In https://git.blender.org/gitweb/gitweb.cgi/blender-asset-tracer.git/blob/HEAD:/blender_asset_tracer/trace/modifier_walkers.py#l149
BAT wants to load the caches from //blendcache_orig.flamenco/ which is incorrect. As this folder does not exist the file sequence expander yields an empty list
https://git.blender.org/gitweb/gitweb.cgi/blender-asset-tracer.git/blob/HEAD:/blender_asset_tracer/trace/file_sequence.py#l45
Best way to solve it is not to use .flamenco.blend, but .flame or something similar. As PathLib.stem only removes the last extension. Btw blender strips the last 6 characters so use an extension of exactly 5 chars :-)
Or rename the extension back to .blend on the server
Something to think about
Added subscriber: @Jeroen-Bakker
Added subscribers: @dr.sybren, @fsiddi
Nice analysis, thanks.
Adding an option to BAT? to rename the blend file while creating the BAT Pack shouldn't be too hard. That way we can keep the
.blend
suffix for blend files. The approach would then be:orig.flamenco.blend
orig.flamenco.blend
to{job-storage-dir}/orig.blend
orig.blend
as filename in the Flamenco job JSON sent to the Flamenco Server.@Jeroen-Bakker what are your thoughts on this approach?
Added subscriber: @GaryRitchie
Changed status from 'Confirmed' to: 'Archived'
A new generation of Flamenco (version 3.0) is in development (in the
main
branch at https://developer.blender.org/diffusion/F/), so all issues with Flamenco version 2 or older will be archived.