USD animation exported from Audio2face can't play after opening saved scene #94396

Closed
opened 2021-12-26 19:11:09 +01:00 by Mariano Basti · 18 comments

System Information
Operating system: Windows 10
Graphics card: Nvidia RTX2070S
Processor: AMD Ryzen 5 3600XT

Blender Version
Broken: version:3.0 stable, commit date: 2021-12-02 andversion:3.1 alpha, commit date: 2021-12-23

Short description of error
Importing an USD animation and saving the scene, when loading that scene again the "MeshSequenceCache" throws an error stating "Could not create reader for file".
Also, on the same opened scene when trying to reimport the file, the error "USD Import: unable to open stage to read XXX" appears at the bottom.

Exact steps for others to reproduce the error
• New scene
• Import attached .usd file
• Save scene and quit Blender
• Load scene

{F12776835, size=full}

file.usd

Thanks and happy holidays!

**System Information** Operating system: Windows 10 Graphics card: Nvidia RTX2070S Processor: AMD Ryzen 5 3600XT **Blender Version** Broken: version:3.0 stable, commit date: 2021-12-02 andversion:3.1 alpha, commit date: 2021-12-23 **Short description of error** Importing an USD animation and saving the scene, when loading that scene again the "MeshSequenceCache" throws an error stating "Could not create reader for file". Also, on the same opened scene when trying to reimport the file, the error "USD Import: unable to open stage to read XXX" appears at the bottom. **Exact steps for others to reproduce the error** • New scene • Import attached .usd file • Save scene and quit Blender • Load scene {[F12776835](https://archive.blender.org/developer/F12776835/error.png), size=full} [file.usd](https://archive.blender.org/developer/F12776831/file.usd) Thanks and happy holidays!
Author

Added subscriber: @marianobasti

Added subscriber: @marianobasti
Member

Added subscribers: @dr.sybren, @lichtwerk

Added subscribers: @dr.sybren, @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Can confirm.

I am getting these messages [which sounds suspicious @dr.sybren - is there something wrong with the lib?] opening the file again:

Coding Error (secondary thread): in _OpenLayerAndUnlockRegistry at line 3104 of /home/sybren/buildbot-builder/linux_glibc217_x86_64_cmake/build_deps/deps/build/usd/src/external_usd/pxr/usd/sdf/layer.cpp -- Cannot determine file format for @/T94396/file.usd:SDF_FORMAT_ARGS:target=usd@
Runtime Error (secondary thread): in Open at line 853 of /home/sybren/buildbot-builder/linux_glibc217_x86_64_cmake/build_deps/deps/build/usd/src/external_usd/pxr/usd/usd/stage.cpp -- Failed to open layer @/T94396/file.usd@
Can confirm. I am getting these messages [which sounds suspicious @dr.sybren - is there something wrong with the lib?] opening the file again: ``` Coding Error (secondary thread): in _OpenLayerAndUnlockRegistry at line 3104 of /home/sybren/buildbot-builder/linux_glibc217_x86_64_cmake/build_deps/deps/build/usd/src/external_usd/pxr/usd/sdf/layer.cpp -- Cannot determine file format for @/T94396/file.usd:SDF_FORMAT_ARGS:target=usd@ Runtime Error (secondary thread): in Open at line 853 of /home/sybren/buildbot-builder/linux_glibc217_x86_64_cmake/build_deps/deps/build/usd/src/external_usd/pxr/usd/usd/stage.cpp -- Failed to open layer @/T94396/file.usd@ ```

Added subscriber: @makowalski

Added subscriber: @makowalski

It's the call to pxr::UsdStageRefPtr stage = pxr::UsdStage::Open(filename); in USD_create_handle() that causes this error.

@makowalski could you take a look at this?

It's the call to `pxr::UsdStageRefPtr stage = pxr::UsdStage::Open(filename);` in `USD_create_handle()` that causes this error. @makowalski could you take a look at this?

@lichtwerk @dr.sybren @marianobasti I have a fix for this (one line of code) and will follow up soon with the details.

@lichtwerk @dr.sybren @marianobasti I have a fix for this (one line of code) and will follow up soon with the details.

@dr.sybren The fix is to call ensure_usd_plugin_path_registered() at the beginning of USD_create_handle(), to ensure the USD file format plugins are loaded when the USDs are opened for the modifiers/constraints. Sybren, what is the best way to submit this fix? Given that it's only one line, should I still create a patch for this so others can test and review?

@dr.sybren The fix is to call `ensure_usd_plugin_path_registered()` at the beginning of `USD_create_handle()`, to ensure the USD file format plugins are loaded when the USDs are opened for the modifiers/constraints. Sybren, what is the best way to submit this fix? Given that it's only one line, should I still create a patch for this so others can test and review?

Added subscriber: @Funnybob

Added subscriber: @Funnybob

I'm having the same issue. Here's the thing: On my computer, I can read the file perfectly. On my colleague's, he gets the message. We are both using the same version of Blender. We can't continue our work at this point. A quick release of the patch would be greatly appreciated. Cheers.

I'm having the same issue. Here's the thing: On my computer, I can read the file perfectly. On my colleague's, he gets the message. We are both using the same version of Blender. We can't continue our work at this point. A quick release of the patch would be greatly appreciated. Cheers.
Author

In #94396#1294720, @Funnybob wrote:
I'm having the same issue. Here's the thing: On my computer, I can read the file perfectly. On my colleague's, he gets the message. We are both using the same version of Blender. We can't continue our work at this point. A quick release of the patch would be greatly appreciated. Cheers.

A workaround I found for the time being is exporting the animation to collada (.abc) once loaded into blender and importing it.

> In #94396#1294720, @Funnybob wrote: > I'm having the same issue. Here's the thing: On my computer, I can read the file perfectly. On my colleague's, he gets the message. We are both using the same version of Blender. We can't continue our work at this point. A quick release of the patch would be greatly appreciated. Cheers. A workaround I found for the time being is exporting the animation to collada (.abc) once loaded into blender and importing it.

Here is another workaround: when you first launch Blender, before opening the .blend file in question, do a simple export to USD (for example, save the default cube to a throw-away USD file somewhere). This will force the USD plugins to load. You should then be able to load the blend file with the mesh sequence cache modifiers with no errors. Please let me know if this does not work for you.

@dr.sybren, please let me know how you'd like me to handle the release of this fix (or whether someone else can also do this, given the simplicity of the change).

Here is another workaround: when you first launch Blender, before opening the .blend file in question, do a simple export to USD (for example, save the default cube to a throw-away USD file somewhere). This will force the USD plugins to load. You should then be able to load the blend file with the mesh sequence cache modifiers with no errors. Please let me know if this does not work for you. @dr.sybren, please let me know how you'd like me to handle the release of this fix (or whether someone else can also do this, given the simplicity of the change).

@makowalski Yep! That worked! Thanks! (It's fun, 30 minutes ago I was listening to you on one of the omniverse clips. Small world!

@makowalski Yep! That worked! Thanks! (It's fun, 30 minutes ago I was listening to you on one of the omniverse clips. Small world!

My apologies. This simple fix has been delayed unnecessarily due to miscommunication on my part. Hopefully we can submit this very soon once revision [D14066](https://archive.blender.org/developer/D14066) has been accepted.

My apologies. This simple fix has been delayed unnecessarily due to miscommunication on my part. Hopefully we can submit this very soon once revision `[D14066](https://archive.blender.org/developer/D14066)` has been accepted.

This issue was referenced by 0a6a74bac4

This issue was referenced by 0a6a74bac41558af0ee6d3031d923470d32e767e

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Michael Kowalski self-assigned this 2022-02-25 15:28:18 +01:00

This fix is available in the 3.2 alpha builds.

This fix is available in the 3.2 alpha builds.

Added subscriber: @codeloadgame

Added subscriber: @codeloadgame
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
7 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#94396
No description provided.