# Description

System Information
Operating system: Windows 10
Graphics card: AMD Radeon (TM) R9 Fury Series

Blender Version
Broken: version: 2.79 (sub 7), branch: blender2.7, commit date: 2019-04-09 16:45, hash: 10f724cec5e3

Submitting certain .blend files to the Flamenco manager results in an error, apparently occurring when copying associated assets from the .blend file to the Flamenco render job folder. Trying multiple files, I found that I can generate this error with an audio file in the video sequencer or when I have an external Alembic file referenced absolutely in a Mesh Sequence Cache modifier, even if that file is in an accessible location.

Exception while running task:
Traceback (most recent call last):
File "C:\Users\joel\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\blender_cloud\flamenco\__init__.py", line 369, in async_execute
outdir, outfile, missing_sources = await self.bat_pack(job_id, filepath)
File "C:\Users\joel\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\blender_cloud\flamenco\__init__.py", line 616, in bat_pack
relative_only=relative_only)
File "C:\Users\joel\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\blender_cloud\flamenco\bat_interface.py", line 168, in copy
await loop.run_in_executor(None, packer.execute)
File "C:\blender-2.79-latest\blender-2.79.0-git.10f724cec5e3-active\2.79\python\lib\concurrent\futures\thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\Users\joel\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\blender_cloud\wheels\blender_asset_tracer-1.1.2-py3-none-any.whl\blender_asset_tracer\pack\__init__.py", line 375, in execute
self._rewrite_paths()
File "C:\Users\joel\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\blender_cloud\wheels\blender_asset_tracer-1.1.2-py3-none-any.whl\blender_asset_tracer\pack\__init__.py", line 462, in _rewrite_paths
assert bfile_pp is not None
AssertionError

Sample file with WAV sound in the video sequencer and an Alembic file reference.

### Event Timeline

Which version of the Blender Cloud add-on was used?

Which version of the Blender Cloud add-on was used?

Latest version as of yesterday (1.13.4) but with the wheel file you had sent me (attached here)

.

Sybren A. Stüvel (sybren) lowered the priority of this task from 90 to 30.EditedJun 12 2019, 10:36 AM

Please give us files we can use to reproduce the issue. The blend file you uploaded packs just fine, albeit with warnings about missing files.

It would also help to know the layout of your files. What directory is set as the project directory? You're using drive R:, is that a network drive (if so, which protocol?) or a local disk?

Adding a sound file to the sequencer in an empty .blend file was enough to reproduce the error for me, but I am attaching this actual file. This file has the proprietary elements removed, including the WAV file in the sequencer. To get this to submit to Flamenco without error, I have to delete the WAV audio and both the Alembic fluid surface and the Ocean modifier fluid surface.

Joel Howe (jhowe) added a comment.EditedJun 13 2019, 8:51 AM

I have been able to successfully submit to Flamenco a version of the file that has the object with an Ocean modifier, but only when the Cache path for that modifier was empty.

UPDATE: It looks like just changing Cache path helped submit this, as I wasn't able to submit today with an empty value but then changing it to "//" a relative reference to the current folder, it submitted.

It would also help to know the layout of your files. What directory is set as the project directory? You're using drive R:, is that a network drive (if so, which protocol?) or a local disk?

As an addition to these not-yet-answered questions: what have you set as job storage and job output directories? With the Flamenco-Error.blend file you're using the D: drive, what kind of drive is that?

D:/ is a local physical data drive on my main Win 10 workstation.
R:/ is the Flamenco project.
R:/ is a network mapped folder location to D:/Flamenco, so in the case of submitting the job, R:/ points to the same hard drive. R:/ was created using Windows "Map network drive", which I don't believe allows you to specify a protocol.
All Flamenco workers have an R:/ mapped back to my workstation, which is also running Flamenco manager.
Inside R:/ are three folders:

• JobStorage - Flamenco writes its files to these folders
• SourceFiles - I save a copy of .blend files to be rendered here, as I have to be in the Flamenco project (R:) to submit.
• TempImages - Folder for the standard JPEG images being written. This is essentially for display on the Flamenco manager screen last rendered image. I purge this folder a lot, as I use the compositing node editor to generate multi-EXR files.
Bastien Montagne (mont29) raised the priority of this task from 30 to 80.Jul 23 2019, 10:06 AM

@Joel Howe (jhowe) can you try with this BAT wheel file? Just remove any exist blender_asset_tracer*.whl file from the wheels directory of the Blender Cloud add-on, then put this one in place and restart Blender.

Sybren A. Stüvel (sybren) lowered the priority of this task from 80 to 30.Sep 24 2019, 12:57 PM

Error is still occurring for both 2.79 and 2.80, but only when a WAV file is in the video sequencer and I try to submit to Flamenco. The .blend files don't submit and get an error as below, with the display in the Flamenco Render tab reading "Found asset Narration-Audio.wav" when it stops packing. All files submit properly once the audio track has been removed, which is an acceptable workaround for me.

Exception while running task:
Traceback (most recent call last):
File "C:\Users\joel\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\blender_cloud\flamenco\__init__.py", line 369, in async_execute
outdir, outfile, missing_sources = await self.bat_pack(job_id, filepath)
File "C:\Users\joel\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\blender_cloud\flamenco\__init__.py", line 616, in bat_pack
relative_only=relative_only)
File "C:\Users\joel\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\blender_cloud\flamenco\bat_interface.py", line 168, in copy
await loop.run_in_executor(None, packer.execute)
File "C:\Blender\blender-2.79.0-git.10f724cec5e3-active\2.79\python\lib\concurrent\futures\thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\Users\joel\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\blender_cloud\wheels\blender_asset_tracer-1.2.dev1-py3-none-any.whl\blender_asset_tracer\pack\__init__.py", line 383, in execute
self._rewrite_paths()
File "C:\Users\joel\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\blender_cloud\wheels\blender_asset_tracer-1.2.dev1-py3-none-any.whl\blender_asset_tracer\pack\__init__.py", line 470, in _rewrite_paths
assert bfile_pp is not None
AssertionError
<Task finished coro=<FLAMENCO_OT_render.async_execute() done, defined at C:\Users\joel\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\blender_cloud\flamenco\__init__.py:255> exception=AssertionError()>: resulted in exception
Traceback (most recent call last):
File "C:\Users\joel\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\blender_cloud\async_loop.py", line 95, in kick_async_loop
File "C:\Users\joel\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\blender_cloud\flamenco\__init__.py", line 369, in async_execute
outdir, outfile, missing_sources = await self.bat_pack(job_id, filepath)
File "C:\Users\joel\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\blender_cloud\flamenco\__init__.py", line 616, in bat_pack
relative_only=relative_only)
File "C:\Users\joel\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\blender_cloud\flamenco\bat_interface.py", line 168, in copy
await loop.run_in_executor(None, packer.execute)
File "C:\Blender\blender-2.79.0-git.10f724cec5e3-active\2.79\python\lib\concurrent\futures\thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\Users\joel\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\blender_cloud\wheels\blender_asset_tracer-1.2.dev1-py3-none-any.whl\blender_asset_tracer\pack\__init__.py", line 383, in execute
self._rewrite_paths()
File "C:\Users\joel\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\blender_cloud\wheels\blender_asset_tracer-1.2.dev1-py3-none-any.whl\blender_asset_tracer\pack\__init__.py", line 470, in _rewrite_paths
assert bfile_pp is not None
AssertionError
Bastien Montagne (mont29) raised the priority of this task from 30 to 80.Oct 1 2019, 8:46 PM

I have discovered that the error during the job submission can be prevented if "Relative paths only" is turned on in the Blender Cloud settings. I am not sure if that will introduce other issues, or if this is on by default, but it appears that it addresses the issue.

I suspect it has to do with the behaviour of Path.resolve() (doc). AFAIK on Windows it also "resolves" mapped drive letters to their \\SERVER\share\path\to\file notation, which is a pain in the rear end.

@Joel Howe (jhowe) can you install Python 3.7, run pip install -U blender-asset-tracer and give us the output of bat list R:/project/thefile.blend ? You can also try bat pack -p R:/project R:/project/thefile.blend testpack; this will create a directory testpack in the current working directory, and put the BAT pack in there.

Testing with BAT directly will probably be easier than trying to use Blender with the Cloud add-on, and can provide us with more detailed info. If you replace bat in the above commands with bat -d you should get debug-level messages.

Sybren A. Stüvel (sybren) lowered the priority of this task from 80 to 30.Oct 29 2019, 4:09 PM

Unfortunately I won't have time to do this, but on a positive note I am unable to replicate this issue in Blender 2.81 with latest Blender Cloud plugin.

so u are saying it all works fine with 2.81? correct? that would means that we can close this as fixed/.

It is not 100% fixed, but I can confirm that I have certain .blend files with audio tracks in them that submit properly now in 2.81. I am not sure why some others don't submit to Flamenco, but there is the easy workaround of deleting the audio track before submitting the render or turning on "Relative paths only" in the Cloud plugin settings.

Sybren A. Stüvel (sybren) changed the task status from Unknown Status to Unknown Status.Nov 29 2019, 2:48 PM

I'll close this as 'Archived' then; if you know of a way for us to reproduce the issue we can always reopen.