Pointcaches are not found when stored on disk and sending to flamenco (Missing file warning) #57672

Closed
opened 2018-11-07 10:45:40 +01:00 by Jeroen Bakker · 6 comments
Member

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

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
Author
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Author
Member

Added subscribers: @dr.sybren, @fsiddi

Added subscribers: @dr.sybren, @fsiddi

Nice analysis, thanks.

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

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:

  • Blender Cloud Add-on (BCA) still saves locally as orig.flamenco.blend
  • BAT? is told to copy orig.flamenco.blend to {job-storage-dir}/orig.blend
  • BCA uses orig.blend as filename in the Flamenco job JSON sent to the Flamenco Server.

@Jeroen-Bakker what are your thoughts on this approach?

Nice analysis, thanks. > 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 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: - Blender Cloud Add-on (BCA) still saves locally as `orig.flamenco.blend` - BAT? is told to copy `orig.flamenco.blend` to `{job-storage-dir}/orig.blend` - BCA uses `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

Added subscriber: @GaryRitchie

Changed status from 'Confirmed' to: 'Archived'

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.

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.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-asset-tracer#57672
No description provided.